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

  Melting point at standard conditions for ammonia

What is the melting point at standard conditions for ammonia? Boling point is given -33.4C.

  Flow rate the rate of flow to an ammonia synthesis reactor

the rate of flow to an ammonia synthesis reactor contains 25 mole ltbrgtnitrogen and the balance hydrogen. the flow

  Calculate the new quality

A rigid container has water of 2 kg at 120 C with a quality of 25%. The container is heated to the temperature of 140 Celsius, calculate the new quality?

  Calculate the induced voltage in an air-filled

Current transformer with air core. Calculate the induced voltage in an air-filled, uniformly wound toroidal coil of n turns and cross sectional area as shown in Figure 10.51. The central wire is very long and carries a current 1(t) = I0 sin ωt.

  Determine the y-parameters

The circuit shown in Figure P3.4.19 is the equivalent circuit of a field-effect transistor (FET) amplifier stage.

  Derive a steady flow entropy equation

ENG2122: Chemical Engineering Thermodynamics Assignment - Applied Thermodynamics. Derive a 'steady flow entropy equation' which describes the Second Law

  Pourbaix diagrams for nickel and silver

Draw another diagram overlaying the Pourbaix diagrams for nickel and silver and Use this diagram to explain the likely outcome of holding a solution

  Write the free-body diagrams for each of three orientations

Write the free-body diagrams for each of the three orientations of the humerus in Figure 3.36. For a particular load and fixed position, write and solve the equations of static equilibrium.

  Determine the rotor current frequency in hz

The speed of the rotor rotating magnetic field with respect to the stator rotating magnetic field in r/min.

  Calculate the required rate of heat transfer

The effluent liquid is analyzed and is found to contain 1.5 moles (NH4)2SO3 per mole of NH4HSO3. The heat of formation of (NH4)2SO3 (aq) at 25°C is -890.0 kJ/mol, and that of NH4HSO3 (aq) is -760 kJ/mol. The heat capacities of all liquid solutions..

  Calculate the amount of u-235 in metric tonnes

Calculate the amount of U-235 in Metric Tonnes consumed in a GWe-yr. Assume the Q-value for a U-235 fission reaction is 200 MeV

  Compute the full-load speed

At full load and rated voltage, the line current is 40 A, and the flux is 5% less than its no-load value because of armature reaction. Compute the full-load speed.

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