Find the form and index of the dae model

Assignment Help Chemical Engineering
Reference no: EM133067645

Assignment: Process Modeling and Simulation

Question 1. The exothermic reaction A→B takes place in a jacketed CSTR. The dynamic model of the reactor is given below.

VdcA/dt = q(cAi - CA) - VkcA                           k = k0e-E/RT

VρCdT/dt = wC(Ti - T) + (-ΔHR)VkcA + UA(Tc - T)

q=100

CAi=1

V=100

C=0.239

ρ=1000

ΔHR=-5×104

E/R=8750

K0=7.2×1010

UA=5×104

T(0)=Ti=350

Tc=305

CA(0)=0.5

a) Simulate the above process until t=20 using the forward Euler method with a fixed step size of h=0.1. Plots the solution (concentration and temperature profiles). Is the solution stable?

b) Using the eigenvalue technique discussed in the class, find out if the process is stable. Also, try to find the maximum step size for which the forward Euler method is stable for this process. Use the initial conditions at the linearization point.

c) Repeat Part (a) with half of the maximum step size obtained above and plot the solution. Is the solution stable now? If not, comment on the possible reason(s).

d) Now, simulate the process using ode15s with the 'BDF' option 'on', and absolute and relative tolerances of 10-6 and 10-3, respectively. Plot the solution. Is it stable now?

e) For comparison, plot on the same figure the profiles obtained in Part (d) together with those obtained from the forward Euler method with a stabilizing step size of your choice. Comment on the accuracy of forward Euler.

f) Try to find a step size that would make forward Euler as accurate as the BDF method in ode15s (or at least close enough). Compare the computational times of both solvers when their solutions are satisfactorily close.

g) (Bonus) Simulate the process with the user-supplied Jacobian option of ode15s enabled. Provide the Jacobian matrix using automatic differentiation (use ADiMat for example). Compare the results in terms of computational time and number of function evaluations

with and without using the user-supplied Jacobian (see the odeset option Stats). Plot solution profiles from both cases on the same figure.

Question 2. Consider the large-scale model x·i (t) = λx2i(t), i = 1, ........ n expressed as

538_Process Modeling and Simulation1.jpg

where λ = -104 and n = 5000. All the state variables start from 1.

a) Simulate the system with ode15s until t=1 with and without a user-supplied Jacobian (the analytical Jacobian matrix is easily obtained in this case). Leave other solver options to default. Compare the two simulations in terms of computational time and number of function evaluations. Which case is solved more efficiently and why?

b) Now, solve the system using ode45 using the default options. Compare the number of steps and computational time with those from ode15s. Explain possible reasons for the difference if it is significant.

Question 3. The dynamic model of two constant-volume CSTRs in series with the reaction A→B is given below. It is desired to have a cyclic steady state for the concentration of the product B exiting the second CSTR. You are asked to find the right profile for the inlet concentration to make that happen.

1436_Process Modeling and Simulation2.jpg

a) Find the form and index of the DAE model using the Pantelides approach.

b) Form the system of consistent initialization, and find degrees of freedom for initialization using the Pantelides approach.

c) Solve the initialization problem (e.g., using fsolve), and report initial conditions for all the state variables and their derivatives, if applicable.

d) Can the model be simulated as is? Try it out. Use the initial conditions calculated in the previous part.

e) Convert the model to an explicit ODE system and solve it using ode15s. For the state variables, use the initial conditions calculated in Part (c). Plot all the state variables. Does the solution exhibit the desired cyclic behavior for CB,2? If not, why?

f) Now, use Gear's method to stabilize the constraints that have been lost during the index reduction procedure. Write the resulting index-2 DAE system.

g) Simulate the process again with the constraints stabilized. Plot all the state variables. Does the solution exhibit the desired cyclic behavior for CB,2 this time?

Reference no: EM133067645

Questions Cloud

Case of natural monopolies : Natural monopolies like electricity networks are regulated private entities. Why is economic regulation necessary in the case of natural monopolies?
Prepare a differential analysis as of april : Prepare a differential analysis as of April 30 comparing operations using the present machine (Alternative 1) with operations using the new machine
Characterize inefficiency that results from asymmetric : What equilibrium interest rate will be charged and who will borrow? Explain. Characterize the inefficiency that results from asymmetric information.
Centralization and decentralization : Centralization and decentralization: What functions should be centralized? Where should decision making be decentralized?
Find the form and index of the dae model : Find the form and index of the DAE model using the Pantelides approach and Form the system of consistent initialization, and find degrees of freedom
What is marginal utility : What is marginal utility? Give an example.
Bank of canada overnight rate and us federal funds rate : a. Distinguish between Bank of Canada's overnight rate and the US federal funds rate. How frequently these rates are announced? Answer in five bullet points.
Prepare entry for receival of cash by abc : Two months have passed while the tenants are using the rent facility. Prepare entry for receival of cash by ABC and service provided by ABC
Determining the total cost of producing : 1. State whether each of the following statements are TRUE or FALSE. For each statement, give a brief explanation.

Reviews

Write a Review

Chemical Engineering Questions & Answers

  Why a substance heated at a fast rate

Why a substance is being heated at a fast rate the temperature of decomposition

  Design variables necessary for sizing equipment

Assist with the setting of design variables necessary for sizing equipment

  Solve the initial value problem

Use Laplace transformation to solve the initial value problem

  Baffled tank with a six blade turbine agitator

Equal rates of mass transfer for the production of the fine chemical are required. This is often required for certain types of organic synthesis.

  Adsorption and membranes processes

Application of reverse osmosis principles for the desalination of sea water

  Evaluation of a new chemical manufacturing process

Prepare the design and evaluation of a new chemical manufacturing process.

  Adsorption and membrane processes

Adsorption and Membrane Processes

  Draw t-s diagram of the cycle

Draw T-S diagram of the cycle.

  Materials chemistry find potential energy between two atoms

The potential energy between two atoms A and B are constants and r the interatomic separation distance.

  Implications of the future of fabrication for international

Implications of the future of fabrication for international trade, transportation, and logistics

  Evaluate the work done by the gas

The atmospheric pressure of 100k Pa acts on the other side of the piston. The gas is heated until the volume is doubled and the final pressure is 500 kPa. Calculate the work done by the gas.

  Evaluate particle diameter at different gas velocities

Evaluate particle diameter at different terminal gas velocities

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd