Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Differential Equations

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 6

Differential equations using

Microsoft Excel
Back to the beginning 

Equations

Algebraic Differential

Does not have differential term Has the differential term


Algebraic Equations
 a
Van der Wall’s equation  P  2 v  b   RT
 v 

Material balance  F   F  r
Out
i
in
i

Enthalpy
ˆ 
b 2
 
c 3
 
d 4
H  a (T  Tref )  T  Tref  T  Tref  T  Tref4
2
2

3
3

4

P v2
Bernoulli equation   Z  const
g 2 g

Solved by direct substitution or by iteration


(solver or goal seek)
Algebraic vs. Differential
For n order reaction
th r  k .C i
n

Continuous Stirred Tank Plug Flow Reactor (PFR)


F Reactor (CSTR)
F L F
Cif
Cif Ci Ci+DCi
Cip
Feed Prod
V Z dZ

Cip
F F .dCi   .r.dV   .r. A.dZ
Cip
F .dCi   .k .Cin . A.dZ
F .Cip  F .Cif   .V .r
dCi  .k .Cin . A
F .Cip  F .Cif   .V .k .C n 
ip dZ F
Solving Differential Equations
y2 x2
dy
 2xy 2

1
2
dy   2 xdx
1 1

y1 y2

 2 x22  x12 
dx y1
y x1

This is called “Analytical Solution” which is simply converting


the differential form into algebraic form

In other cases it is not that easy !!!

dy
 y 2  sin x
dx
Long analytical
steps (not always
NUMERICAL
applicable) SOLUTION
Numerical Solution of Ordinary
Differential Equations (ODE’s)
Consider a very simple differential equation
dy
y'   e x  2 x3
dx
500

400

300
y’=dy/dx

200

100

0 x
0 1 2 3 4 5 6 7 8
-100

-200

You might also like