solution of a system of odes with polymath and excel, parametric studies with excel the canonical...

10
Solution of a System of ODEs with POLYMATH and Excel, Parametric Studies with Excel x y y y f dx dy x y y y f dx dy x y y y f dx dy n n n n n , , , , , , , , , 2 1 2 1 2 2 2 1 1 1 0 , 0 0 , 2 0 2 0 , 1 0 1 ) ( ) ( ) ( n n y x y y x y y x y The canonical form of a system of n simultaneous first-order ordinary differential equations ODE with specified initial values (initial value problem) is: where x is the independent variable and y 1 , y 2 , . . . y n are dependent variables

Upload: walter-lewis

Post on 16-Jan-2016

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Solution of a System of ODEs with POLYMATH and Excel, Parametric Studies with Excel The canonical form of a system of n simultaneous first-order ordinary

Solution of a System of ODEs with POLYMATH and Excel, Parametric Studies with Excel

xyyyfdx

dy

xyyyfdx

dy

xyyyfdx

dy

nnn

n

n

,,,

,,,

,,,

21

2122

2111

0,0

0,202

0,101

)(

)(

)(

nn yxy

yxy

yxy

The canonical form of a system of n simultaneous first-order ordinary differential equations ODE with specified initial values (initial value problem) is:

where x is the independent variable and y1, y2, . . . yn are dependent variables

Page 2: Solution of a System of ODEs with POLYMATH and Excel, Parametric Studies with Excel The canonical form of a system of n simultaneous first-order ordinary

Adiabatic Operation of a Tubular Reactor for Cracking of Acetone

The irreversible, vapor-phase cracking of acetone (A) to ketene (B) and methane (C) that is given by the reaction:

CH3COCH3→CH2CO + CH4

is carried out adiabatically in a tubular reactor. The reaction is first order with respect to acetone and the specific reaction rate can be expressed by

Tk

3422234.34ln

The acetone feed flow rate to the reactor is FA mol/s, the inlet temperature is T = 1150 K and the reactor operates at the constant pressure of P = 162 kPa (1.6 atm). The volume of the reactor is V = 4 m3. Inert gas (nitrogen) is fed at the rate of FN mol/s.

Page 3: Solution of a System of ODEs with POLYMATH and Excel, Parametric Studies with Excel The canonical form of a system of n simultaneous first-order ordinary

Adiabatic Operation of a Tubular Reactor for Cracking of Acetone - Assignments

(a) Calculate the flow-rates (in mol/s) and the mole fractions of acetone, ketene and methane along the reactor for the case where pure toluene is being fed at the rate of FA = 38.3 g-mol/s. Use Polymath to calculate and plot the conversion and reactor temperature (in K) versus volume.(b) The conversion in the reactor in part (a) is very low in adiabatic operation because the reactor content cools down very quickly. It is suggested that feeding nitrogen along with the acetone might be beneficial in maintaining a higher temperature. Compare the final conversions and temperatures for the cases where 28.3, 18.3, 8.3, 3.3 and 0.0 mol/s nitrogen is fed into the reactor (the total molar feed rate is 38.3 mol/s in all the cases).

Page 4: Solution of a System of ODEs with POLYMATH and Excel, Parametric Studies with Excel The canonical form of a system of n simultaneous first-order ordinary

Adiabatic Operation of a Tubular Reactor for Cracking of Acetone – Model Equations

The POLYMATH code provides complete and clear documentation

Export to Excel

Page 5: Solution of a System of ODEs with POLYMATH and Excel, Parametric Studies with Excel The canonical form of a system of n simultaneous first-order ordinary

Adiabatic Operation of a Tubular Reactor for Cracking of Acetone – Solution for FA = 38.3 mol/s

Drop of ~120 K in the temperature reduces the reaction rate by two orders of magnitude

Low conversion of the reactant

Page 6: Solution of a System of ODEs with POLYMATH and Excel, Parametric Studies with Excel The canonical form of a system of n simultaneous first-order ordinary

Adiabatic Operation of a Tubular Reactor – Exporting to Excel and Adding the ODE Solver

Solver Add-In should be removed

Separate Worksheets are Prepared for the Various Cases

Page 7: Solution of a System of ODEs with POLYMATH and Excel, Parametric Studies with Excel The canonical form of a system of n simultaneous first-order ordinary

Adiabatic Operation of a Tubular Reactor – ODE Solver Add In Communication Box

Page 8: Solution of a System of ODEs with POLYMATH and Excel, Parametric Studies with Excel The canonical form of a system of n simultaneous first-order ordinary

Adiabatic Operation of a Tubular Reactor – Comparison of results for FN = 0 and FN = 28.3

Value0.257272258

-0.43721328538.3

0162

12.689587320.5907453520.2046273240.2046273240.03445449279773.92861154.9084155

80.311299567.86057679

14.200923828.446472539.8535274689.853527468907.5421516

-0.4372132850.4372132850.437213285

-5.9452051144

No significant change in the temperature profile and the conversion occurs because of the addition of the inert gas.

Page 9: Solution of a System of ODEs with POLYMATH and Excel, Parametric Studies with Excel The canonical form of a system of n simultaneous first-order ordinary

Adiabatic Operation of a Tubular Reactor – Comparison of results for FN = 0 and FN = 28.3

900

920

940

960

980

1000

1020

1040

1060

0 1 2 3 4

Volume (m^3)

Te

mp

era

ture

(K

)

T (FN=0) T(FN=28.3)

Page 10: Solution of a System of ODEs with POLYMATH and Excel, Parametric Studies with Excel The canonical form of a system of n simultaneous first-order ordinary

Adiabatic Operation of a Tubular Reactor – Comparison of results for FN = 0 and FN = 28.3

0

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0 1 2 3 4

Volume (m^3)

Co

nve

rsio

n o

f A

X ((FN=0) X5(FN=28.3)