SlideShare a Scribd company logo
1 of 35
Download to read offline
Lecture Two
A Review of Fundamental Process …
Feb. 2019
Goitom Tadesse (M/Tech)
Defence Engineering College
Process Control Fundamentals
EP-5512
• Solution of Ordinary Differential
Equations
 Analytical solutions: Eigenvalues, time
constants, damping coefficients
 Numerical solutions: Euler Method, Runge
- Kutta Method
Solution of Ordinary Differential
Equations
There are analytical and numerical methods of solving
Ordinary differential equation.
The engineer would like to use the solution method
that gives the most insight into the system.
Therefore, analytical solutions are preferred in most
cases, because they can be used to:
1) Calculate specific numerical values,
2) Determine important functional relationships among
design and operating variables and system behavior,
3
Solution of ODEs …
3) Give insight into the sensitivity of the result to
changes in data.
These results are so highly prized that we often make
assumptions to enable us to obtain analytical
solutions; the most frequently used approximation is
linearizing nonlinear terms.
It is often cumbersome to obtain an analytical
expression for the response of a linearized system
when the system has more than one input and output.
4
Solution of ODEs …
It is not possible to derive analytical expression for
the response of a nonlinear system.
Numerical solution methods do not obtain analytic
solution.
Numerical solution methods provide a response that
is close to the true solution of the differential
equation.
The major drawback to numerical solutions is loss of
insight.
5
Solution of ODEs …
Analytical solutions: The analytical solution of linear
differential equations can be obtained using the
Laplace transform method.
The Laplace transform provides the engineer with a
powerful method for analyzing process control s/ms
Laplace transform changes ODEs into a set of
algebraic equations which are easier to solve &
analyze.
6
0
[ ( )] ( ) ( ) st
L f t F s f t e dt


  
1
( ) ( )
2
j
st
j
f t F s e ds
j


 
 
 
Solution of ODEs …
7
Solution of ODEs …
8
Solution of ODEs …
9
Solution of ODEs …
Since the Laplace transform is defined only for
single-valued functions, the transform and its inverse
are unique.
Example the fundamental model for deviation
variable of the CST: for C’A0 =∆CA0/s
Its solution from the table:
10
0 0
0
0
( ) ( ) ( ( ) ( ))
1 1 1
( ) ( ) ( ) (s)
1
A
A A A A A
A
A A A A
dC
V F C C VsC s F C s C s
dt
C
sC s C s C s C
s s  

        

      

/
0( ) [1 ]t
A AC t C e 
   
Solution of ODEs …
A nonlinear term can be approximated by a Taylor
series expansion to the nth order about a point if
derivatives up to nth order exist at the point:
Taylor series for functions of one and two variables:
- Function of one variable about xs
- Function of two variables about x1s , x2s
11
2
2
2
1
( ) ( ) ( ) ( ) ...
2!s s
s s s
x x
dF d F
F x F x x x x x
dx dx
     
Higher order
ignored
1 2 1 2
1 2 1 2 1 1 2 2
1 2, ,
( , ) ( , ) ( ) ( )
s s s s
s s s s
x x x x
F F
F x x F x x x x x x HO
x x
 
     
 
Deviation variable: (x - xs) = x' with xs = steady-state value
Solution of ODEs …
Example 2: Isothermal CSTR with a second-order
chemical reaction.
Goal: Determine the transient response of the tank
concentration in response to a step in the inlet
concentration for the nonlinear and linearized models.
Information: The process equipment and flow are
the same as shown in Figure of e.g. 1. The important
variable is the reactant concentration in the reactor.
Assumptions: The same as in Example 1.
12
Solution of ODEs …
Data: the chemical reaction rate is second order, with
rA = -kCA
2 and k = 0.5[(mole/m3) min]-1.
• F= 0.085 m3/min; V = 2.1 m3; CA0init = 0.925
mole/m3; ΔCA0 = 0.925 mole/m3; CAinit = 0.236
mole/m3;
• The reactor is isothermal.
Formulation:
13
0
2
0
( )
( )
A
A A A
A
A A A
dC
V F C C Vr
dt
dC
V F C C VkC
dt
  
  
Solution of ODEs …
Linearization of CA
2 using Tailor series:
Subtracting (2) from (1) gives
14
2
2 2 2 2C
(C ) (C ) ( ) (C ) (C ) 2 ( )
As
A
A As A As A As As A As
C
d
F F C C F F C C C
dx
      
2 2
2
0
C C 2 ( )
( ) [ 2 ( )]
A As As A As
A
A A As As A As
C C C
dC
V F C C VkC VkC C C
dt
  
    
Substituting CA
2 yields:
1
2
00 ( ) [ 2 ( )]As
A s As As As As As
dC
V F C C VkC VkC C C
dt
      2
0( ) 2A
A A As A
dC
V F C C VkC C
dt

    
Solution of ODEs …
The resulting model is a first-order, linear ordinary
differential equation, which can be rearranged into
the standard form:
Then its Laplace transform is
The solution is
15
0
1
2
A
A A
As
dC F V
C C with
dt V F VkC



   

0
0
( )( 1) ( )
2
( )
( 1)
A p A p
As
p A
A
F
C s s k C s with k
F VkC
k C
C s
s s


   


 

/
0[1 ]t
A p AC k C e 
   
Solution of ODEs …
For τ=3.62 min, kp=0.146 and ∆CA0= 0.925 mole/m3
Results Analysis: The linearized solution is plotted
in comparison with the solution to the original
nonlinear differential equation. The linear solution
can be seen to give a good semi quantitative
description of the true process response.
An important advantage of the linearized solution is
in the analytical relationships.
16
/3.62
0.135[1 ]t
AC e
  
Solution of ODEs …
17
Solution of ODEs …
The time constant (τ) and gain (kp) can be used to
learn how process equipment design and process
operating conditions affect the dynamic responses.
Clearly, the analytical solutions provide a great deal
of useful information on the relationship between
design and operating conditions and dynamic
behavior.
18
Solution of ODEs …
Numerical solutions: A first order initial value
problem of ODE may be written in the form
Example:
Numerical methods for ordinary differential
equations calculate solution on the points,
where h is the steps size
19
0( ) ( , ), (0)y t f y t y y 
( ) 3 5, (0) 1
( ) 1, (0) 0
y t y y
y t ty y
  
  
htt nn  1
Solution of ODEs …
Euler Methods
 Forward Euler Methods
 Backward Euler Method
 Modified Euler Method
Runge-Kutta Methods
 Second Order
 Third Order
 Fourth Order
20
Solution of ODEs …
Forward Euler Method: Consider the forward
difference approximation for first derivative
Rewriting the above equation we have
So, is recursively calculated as
21
1
1,n n
n n n
y y
y h t t
h



  
1 , ( , )n n n n n ny y hy y f y t   
1 0 0 0 0 0
2 1 1 1
1 1 1
( , )
( , )
( , )n n n n
y y hy y h f y t
y y h f y t
y y h f y t  
   
 
 
ny
Solution of ODEs …
Example: solve
Solution:
etc
22
01, (0) 1, 0 1, 0.25y ty y y t h      
1)0(,0for 00  yyt
1 1 0 0
0 0 0
for 0.25,
( 1)
1 0.25(0*1 1) 1.25
t y y hy
y h t y
  
  
   
2 2 1 1
1 1 1
for 0.5,
( 1)
1.25 0.25(0.25*1.25 1) 1.5781
t y y hy
y h t y
  
  
   
Solution of ODEs …
Backward Euler Method: Consider the backward
difference approximation for first derivative
Rewriting the above equation we have
So, is recursively calculated as
23
1
1,n n
n n n
y y
y h t t
h



  
1 , ( , )n n n n n ny y hy y f y t  
1 0 1 0 1 1
2 1 2 2
1
( , )
( , )
( , )n n n n
y y hy y h f y t
y y h f y t
y y h f y t
   
 
 
ny
Solution of ODEs …
Example: solve
Solution:
Solving the problem using backward Euler method for
, yields
So, we have
24
01, (0) 1, 0 1, 0.25y ty y y t h      
1 1
1
1
( 1)
1
n n n n n n
n n n n
n
n
n
y y hy y h t y
y ht y y h
y h
y
ht
 


    
   

 

333.1
25.0*25.01
25.01
1
,25.0for
1
0
11 






ht
hy
yt
ny
Solution of ODEs …
25
8091.1
5.0*25.01
25.0333.1
1
,5.0for
2
1
22 






ht
hy
yt
5343.2
75.0*25.01
25.08091.1
1
,75.0for
3
2
33 






ht
hy
yt
7142.3
1*25.01
25.05343.2
1
,1for
4
3
44 






ht
hy
yt
Solution of ODEs …
Modified Euler method is derived by applying the
trapezoidal rule to integrating ; So, we have
If f is linear in y, we can solved for similar as
backward Euler method
If f is nonlinear in y, we necessary to used the method
for solving nonlinear equations i.e. successive
substitution method (fixed point)
26
( , )ny f y t
1 12 ( ), ( , )h
n n n n n n ny y y y y f y t    
1ny
Solution of ODEs …
Example: solve
Solution:
f is linear in y. So, solving the problem using modified
Euler method for yields
27
01, (0) 1, 0 1, 0.25y ty y y t h      
1 1 1 1 12 2
1 12 2
12
1
2
( ) ( 1 1)
(1 ) (1 )
(1 )
(1 )
h h
n n n n n n n n n
h h
n n n n
h
n
n nh
n
y y y y y t y t y
y t y t h
t
y y h
t
    
 


       
    

  

ny
Solution of ODEs …
For example 2 which is solved in the analytically, the
Euler method can be used, which involves the
solution of the following equation at each step, n:
An appropriate h was found by trial and error to be
0.05.
The numerical solution is shown in figure above
(dashes) as the result from the nonlinear model.
28
2
1 0[ ( ) k ]An An A n An An
F
C C h C C C
V
    
Solution of ODEs …
The second order Runge-Kutta (RK-2) method is
derived by applying the trapezoidal rule to integrating
over the interval . So, we have
We estimate by the forward Euler method.
29
( , )y f y t ],[ 1nn tt
 ),(),(
2
),(
11
1
1



 

nnnnn
t
t
nn
tyftyf
h
y
dttyfyy
n
n
1ny
Solution of ODEs …
So, we have
Or in a more standard form as
30
 )),,((),(
2
11   nnnnnnnn ttyhfyftyf
h
yy
 
),(
),(where
2
1
112
1
211





nn
nn
nn
tkyhfk
tyhfk
kkyy
Solution of ODEs …
The third order Runge-Kutta (RK-3) method is
derived by applying the Simpson’s 1/3 rule to
integrating over the interval . So,
we have
We estimate by the forward Euler method.
31
( , )y f y t ],[ 1nn tt
 
1
1 1
2 2
1
1 16
( , )
( , ) 4 ( , ) ( , )
n
n
t
n n
t
h
n n n n n n n
y y f y t dt
y f y t f y t f y t


   
 
   

2
1ny
Solution of ODEs …
The estimate may be obtained by forward
difference method, central difference method for h/2,
or linear combination both forward and central
difference method. One of RK-3 scheme is written as
32
1ny
 1
1 1 2 36
1
1
2 12 2
3 1 2 1
4
where ( , )
( , )
( 2 , )
n n
n n
h
n n
n n
y y k k k
k hf y t
k hf y k t
k hf y k k t


   

  
  
Solution of ODEs …
The fourth order Runge-Kutta (RK-4) method is
derived by applying the Simpson’s 1/3 or Simpson’s
3/8 rule to integrating over the interval
The formula of RK-4 based on the Simpson’s 1/3 is
written as
33
 1
1 1 2 3 46
1
1
2 12
1
3 22
4 3
2 2
where ( , )
( , )
2
( , )
2
( , )
n n
n n
n n
n n
n n
y y k k k k
k hf y t
hk hf y k t
hk hf y k t
k hf y k t h
     

  
  
  
( , )y f y t ],[ 1nn tt
Solution of ODEs …
The fourth order Runge-Kutta (RK-4) method is
derived based on Simpson’s 3/8 rule is written as
34
 1
1 1 2 3 48
1
1
2 13
1 1
3 1 23 3
4 1 2 3
3 3
where ( , )
( , )
3
2( , )
3
( 3 3 , )
n n
n n
n n
n n
n n
y y k k k k
k hf y t
hk hf y k t
hk hf y k k t
k hf y k k k t h
     

  
   
    
35

More Related Content

What's hot

Table of transformation of laplace & z
Table of transformation of laplace & zTable of transformation of laplace & z
Table of transformation of laplace & zcairo university
 
Complex Numbers 1 - Math Academy - JC H2 maths A levels
Complex Numbers 1 - Math Academy - JC H2 maths A levelsComplex Numbers 1 - Math Academy - JC H2 maths A levels
Complex Numbers 1 - Math Academy - JC H2 maths A levelsMath Academy Singapore
 
Differential Equations
Differential EquationsDifferential Equations
Differential EquationsKrupaSuthar3
 
System of linear equations
System of linear equationsSystem of linear equations
System of linear equationsDiler4
 
A brief introduction to finite difference method
A brief introduction to finite difference methodA brief introduction to finite difference method
A brief introduction to finite difference methodPrateek Jha
 
Indices and laws of logarithms
Indices and laws of logarithmsIndices and laws of logarithms
Indices and laws of logarithmsJJkedst
 
Linear transformations and matrices
Linear transformations and matricesLinear transformations and matrices
Linear transformations and matricesEasyStudy3
 
first order ode with its application
 first order ode with its application first order ode with its application
first order ode with its applicationKrishna Peshivadiya
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference InterpolationVARUN KUMAR
 
Calculus of variation problems
Calculus of variation   problemsCalculus of variation   problems
Calculus of variation problemsSolo Hermelin
 
First order linear differential equation
First order linear differential equationFirst order linear differential equation
First order linear differential equationNofal Umair
 
19 min max-saddle-points
19 min max-saddle-points19 min max-saddle-points
19 min max-saddle-pointsmath267
 

What's hot (20)

Jacobi method
Jacobi methodJacobi method
Jacobi method
 
Dyadics
DyadicsDyadics
Dyadics
 
Properties of Fourier transform
Properties of Fourier transformProperties of Fourier transform
Properties of Fourier transform
 
Table of transformation of laplace & z
Table of transformation of laplace & zTable of transformation of laplace & z
Table of transformation of laplace & z
 
Complex Numbers 1 - Math Academy - JC H2 maths A levels
Complex Numbers 1 - Math Academy - JC H2 maths A levelsComplex Numbers 1 - Math Academy - JC H2 maths A levels
Complex Numbers 1 - Math Academy - JC H2 maths A levels
 
P1 . norm vector space
P1 . norm vector spaceP1 . norm vector space
P1 . norm vector space
 
Differential Equations
Differential EquationsDifferential Equations
Differential Equations
 
Finite Difference Method
Finite Difference MethodFinite Difference Method
Finite Difference Method
 
Vector space
Vector spaceVector space
Vector space
 
System of linear equations
System of linear equationsSystem of linear equations
System of linear equations
 
A brief introduction to finite difference method
A brief introduction to finite difference methodA brief introduction to finite difference method
A brief introduction to finite difference method
 
Indices and laws of logarithms
Indices and laws of logarithmsIndices and laws of logarithms
Indices and laws of logarithms
 
Linear transformations and matrices
Linear transformations and matricesLinear transformations and matrices
Linear transformations and matrices
 
FPDE presentation
FPDE presentationFPDE presentation
FPDE presentation
 
Lesson 19: Related Rates
Lesson 19: Related RatesLesson 19: Related Rates
Lesson 19: Related Rates
 
first order ode with its application
 first order ode with its application first order ode with its application
first order ode with its application
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
 
Calculus of variation problems
Calculus of variation   problemsCalculus of variation   problems
Calculus of variation problems
 
First order linear differential equation
First order linear differential equationFirst order linear differential equation
First order linear differential equation
 
19 min max-saddle-points
19 min max-saddle-points19 min max-saddle-points
19 min max-saddle-points
 

Similar to Ep 5512 lecture-02

SUCCESSIVE LINEARIZATION SOLUTION OF A BOUNDARY LAYER CONVECTIVE HEAT TRANSFE...
SUCCESSIVE LINEARIZATION SOLUTION OF A BOUNDARY LAYER CONVECTIVE HEAT TRANSFE...SUCCESSIVE LINEARIZATION SOLUTION OF A BOUNDARY LAYER CONVECTIVE HEAT TRANSFE...
SUCCESSIVE LINEARIZATION SOLUTION OF A BOUNDARY LAYER CONVECTIVE HEAT TRANSFE...ijcsa
 
MATLAB ODE
MATLAB ODEMATLAB ODE
MATLAB ODEKris014
 
A (  )-Stable Order Ten Second Derivative Block Multistep Method for Stiff I...
A (  )-Stable Order Ten Second Derivative Block Multistep Method for Stiff I...A (  )-Stable Order Ten Second Derivative Block Multistep Method for Stiff I...
A (  )-Stable Order Ten Second Derivative Block Multistep Method for Stiff I...inventionjournals
 
The_variational_iteration_method_for_solving_linea.pdf
The_variational_iteration_method_for_solving_linea.pdfThe_variational_iteration_method_for_solving_linea.pdf
The_variational_iteration_method_for_solving_linea.pdfP Ramana
 
transformada de lapalace universidaqd ppt para find eaño
transformada de lapalace universidaqd ppt para find eañotransformada de lapalace universidaqd ppt para find eaño
transformada de lapalace universidaqd ppt para find eañoluis506251
 
On Laplace Transform.ppt
On Laplace Transform.pptOn Laplace Transform.ppt
On Laplace Transform.pptAwaisAsghar31
 
Numerical Solution of Diffusion Equation by Finite Difference Method
Numerical Solution of Diffusion Equation by Finite Difference MethodNumerical Solution of Diffusion Equation by Finite Difference Method
Numerical Solution of Diffusion Equation by Finite Difference Methodiosrjce
 
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Chyi-Tsong Chen
 
optimal solution method of integro-differential equaitions under laplace tran...
optimal solution method of integro-differential equaitions under laplace tran...optimal solution method of integro-differential equaitions under laplace tran...
optimal solution method of integro-differential equaitions under laplace tran...INFOGAIN PUBLICATION
 
impulse(GreensFn), Principle of Superposition
impulse(GreensFn), Principle of Superpositionimpulse(GreensFn), Principle of Superposition
impulse(GreensFn), Principle of SuperpositionSc Pattar
 
Assignment grouping 2(bungee jumping) (edit)
Assignment grouping 2(bungee jumping) (edit)Assignment grouping 2(bungee jumping) (edit)
Assignment grouping 2(bungee jumping) (edit)Eqah Ihah
 
Decay Property for Solutions to Plate Type Equations with Variable Coefficients
Decay Property for Solutions to Plate Type Equations with Variable CoefficientsDecay Property for Solutions to Plate Type Equations with Variable Coefficients
Decay Property for Solutions to Plate Type Equations with Variable CoefficientsEditor IJCATR
 
Formal expansion method for solving an electrical circuit model
Formal expansion method for solving an electrical circuit modelFormal expansion method for solving an electrical circuit model
Formal expansion method for solving an electrical circuit modelTELKOMNIKA JOURNAL
 
Applied numerical methods lec14
Applied numerical methods lec14Applied numerical methods lec14
Applied numerical methods lec14Yasser Ahmed
 
Mathematical models for a chemical reactor
Mathematical models for a chemical reactorMathematical models for a chemical reactor
Mathematical models for a chemical reactorLuis Rodríguez
 

Similar to Ep 5512 lecture-02 (20)

SUCCESSIVE LINEARIZATION SOLUTION OF A BOUNDARY LAYER CONVECTIVE HEAT TRANSFE...
SUCCESSIVE LINEARIZATION SOLUTION OF A BOUNDARY LAYER CONVECTIVE HEAT TRANSFE...SUCCESSIVE LINEARIZATION SOLUTION OF A BOUNDARY LAYER CONVECTIVE HEAT TRANSFE...
SUCCESSIVE LINEARIZATION SOLUTION OF A BOUNDARY LAYER CONVECTIVE HEAT TRANSFE...
 
MATLAB ODE
MATLAB ODEMATLAB ODE
MATLAB ODE
 
02_AJMS_297_21.pdf
02_AJMS_297_21.pdf02_AJMS_297_21.pdf
02_AJMS_297_21.pdf
 
numerical.ppt
numerical.pptnumerical.ppt
numerical.ppt
 
A (  )-Stable Order Ten Second Derivative Block Multistep Method for Stiff I...
A (  )-Stable Order Ten Second Derivative Block Multistep Method for Stiff I...A (  )-Stable Order Ten Second Derivative Block Multistep Method for Stiff I...
A (  )-Stable Order Ten Second Derivative Block Multistep Method for Stiff I...
 
ODE.pdf
ODE.pdfODE.pdf
ODE.pdf
 
The_variational_iteration_method_for_solving_linea.pdf
The_variational_iteration_method_for_solving_linea.pdfThe_variational_iteration_method_for_solving_linea.pdf
The_variational_iteration_method_for_solving_linea.pdf
 
transformada de lapalace universidaqd ppt para find eaño
transformada de lapalace universidaqd ppt para find eañotransformada de lapalace universidaqd ppt para find eaño
transformada de lapalace universidaqd ppt para find eaño
 
On Laplace Transform.ppt
On Laplace Transform.pptOn Laplace Transform.ppt
On Laplace Transform.ppt
 
Numerical Solution of Diffusion Equation by Finite Difference Method
Numerical Solution of Diffusion Equation by Finite Difference MethodNumerical Solution of Diffusion Equation by Finite Difference Method
Numerical Solution of Diffusion Equation by Finite Difference Method
 
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
 
optimal solution method of integro-differential equaitions under laplace tran...
optimal solution method of integro-differential equaitions under laplace tran...optimal solution method of integro-differential equaitions under laplace tran...
optimal solution method of integro-differential equaitions under laplace tran...
 
Presentation03 ss
Presentation03 ssPresentation03 ss
Presentation03 ss
 
impulse(GreensFn), Principle of Superposition
impulse(GreensFn), Principle of Superpositionimpulse(GreensFn), Principle of Superposition
impulse(GreensFn), Principle of Superposition
 
Assignment grouping 2(bungee jumping) (edit)
Assignment grouping 2(bungee jumping) (edit)Assignment grouping 2(bungee jumping) (edit)
Assignment grouping 2(bungee jumping) (edit)
 
Conference ppt
Conference pptConference ppt
Conference ppt
 
Decay Property for Solutions to Plate Type Equations with Variable Coefficients
Decay Property for Solutions to Plate Type Equations with Variable CoefficientsDecay Property for Solutions to Plate Type Equations with Variable Coefficients
Decay Property for Solutions to Plate Type Equations with Variable Coefficients
 
Formal expansion method for solving an electrical circuit model
Formal expansion method for solving an electrical circuit modelFormal expansion method for solving an electrical circuit model
Formal expansion method for solving an electrical circuit model
 
Applied numerical methods lec14
Applied numerical methods lec14Applied numerical methods lec14
Applied numerical methods lec14
 
Mathematical models for a chemical reactor
Mathematical models for a chemical reactorMathematical models for a chemical reactor
Mathematical models for a chemical reactor
 

Recently uploaded

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

Ep 5512 lecture-02

  • 1. Lecture Two A Review of Fundamental Process … Feb. 2019 Goitom Tadesse (M/Tech) Defence Engineering College Process Control Fundamentals EP-5512
  • 2. • Solution of Ordinary Differential Equations  Analytical solutions: Eigenvalues, time constants, damping coefficients  Numerical solutions: Euler Method, Runge - Kutta Method
  • 3. Solution of Ordinary Differential Equations There are analytical and numerical methods of solving Ordinary differential equation. The engineer would like to use the solution method that gives the most insight into the system. Therefore, analytical solutions are preferred in most cases, because they can be used to: 1) Calculate specific numerical values, 2) Determine important functional relationships among design and operating variables and system behavior, 3
  • 4. Solution of ODEs … 3) Give insight into the sensitivity of the result to changes in data. These results are so highly prized that we often make assumptions to enable us to obtain analytical solutions; the most frequently used approximation is linearizing nonlinear terms. It is often cumbersome to obtain an analytical expression for the response of a linearized system when the system has more than one input and output. 4
  • 5. Solution of ODEs … It is not possible to derive analytical expression for the response of a nonlinear system. Numerical solution methods do not obtain analytic solution. Numerical solution methods provide a response that is close to the true solution of the differential equation. The major drawback to numerical solutions is loss of insight. 5
  • 6. Solution of ODEs … Analytical solutions: The analytical solution of linear differential equations can be obtained using the Laplace transform method. The Laplace transform provides the engineer with a powerful method for analyzing process control s/ms Laplace transform changes ODEs into a set of algebraic equations which are easier to solve & analyze. 6 0 [ ( )] ( ) ( ) st L f t F s f t e dt      1 ( ) ( ) 2 j st j f t F s e ds j        
  • 10. Solution of ODEs … Since the Laplace transform is defined only for single-valued functions, the transform and its inverse are unique. Example the fundamental model for deviation variable of the CST: for C’A0 =∆CA0/s Its solution from the table: 10 0 0 0 0 ( ) ( ) ( ( ) ( )) 1 1 1 ( ) ( ) ( ) (s) 1 A A A A A A A A A A A dC V F C C VsC s F C s C s dt C sC s C s C s C s s                      / 0( ) [1 ]t A AC t C e     
  • 11. Solution of ODEs … A nonlinear term can be approximated by a Taylor series expansion to the nth order about a point if derivatives up to nth order exist at the point: Taylor series for functions of one and two variables: - Function of one variable about xs - Function of two variables about x1s , x2s 11 2 2 2 1 ( ) ( ) ( ) ( ) ... 2!s s s s s x x dF d F F x F x x x x x dx dx       Higher order ignored 1 2 1 2 1 2 1 2 1 1 2 2 1 2, , ( , ) ( , ) ( ) ( ) s s s s s s s s x x x x F F F x x F x x x x x x HO x x           Deviation variable: (x - xs) = x' with xs = steady-state value
  • 12. Solution of ODEs … Example 2: Isothermal CSTR with a second-order chemical reaction. Goal: Determine the transient response of the tank concentration in response to a step in the inlet concentration for the nonlinear and linearized models. Information: The process equipment and flow are the same as shown in Figure of e.g. 1. The important variable is the reactant concentration in the reactor. Assumptions: The same as in Example 1. 12
  • 13. Solution of ODEs … Data: the chemical reaction rate is second order, with rA = -kCA 2 and k = 0.5[(mole/m3) min]-1. • F= 0.085 m3/min; V = 2.1 m3; CA0init = 0.925 mole/m3; ΔCA0 = 0.925 mole/m3; CAinit = 0.236 mole/m3; • The reactor is isothermal. Formulation: 13 0 2 0 ( ) ( ) A A A A A A A A dC V F C C Vr dt dC V F C C VkC dt      
  • 14. Solution of ODEs … Linearization of CA 2 using Tailor series: Subtracting (2) from (1) gives 14 2 2 2 2 2C (C ) (C ) ( ) (C ) (C ) 2 ( ) As A A As A As A As As A As C d F F C C F F C C C dx        2 2 2 0 C C 2 ( ) ( ) [ 2 ( )] A As As A As A A A As As A As C C C dC V F C C VkC VkC C C dt         Substituting CA 2 yields: 1 2 00 ( ) [ 2 ( )]As A s As As As As As dC V F C C VkC VkC C C dt       2 0( ) 2A A A As A dC V F C C VkC C dt      
  • 15. Solution of ODEs … The resulting model is a first-order, linear ordinary differential equation, which can be rearranged into the standard form: Then its Laplace transform is The solution is 15 0 1 2 A A A As dC F V C C with dt V F VkC         0 0 ( )( 1) ( ) 2 ( ) ( 1) A p A p As p A A F C s s k C s with k F VkC k C C s s s            / 0[1 ]t A p AC k C e     
  • 16. Solution of ODEs … For τ=3.62 min, kp=0.146 and ∆CA0= 0.925 mole/m3 Results Analysis: The linearized solution is plotted in comparison with the solution to the original nonlinear differential equation. The linear solution can be seen to give a good semi quantitative description of the true process response. An important advantage of the linearized solution is in the analytical relationships. 16 /3.62 0.135[1 ]t AC e   
  • 18. Solution of ODEs … The time constant (τ) and gain (kp) can be used to learn how process equipment design and process operating conditions affect the dynamic responses. Clearly, the analytical solutions provide a great deal of useful information on the relationship between design and operating conditions and dynamic behavior. 18
  • 19. Solution of ODEs … Numerical solutions: A first order initial value problem of ODE may be written in the form Example: Numerical methods for ordinary differential equations calculate solution on the points, where h is the steps size 19 0( ) ( , ), (0)y t f y t y y  ( ) 3 5, (0) 1 ( ) 1, (0) 0 y t y y y t ty y       htt nn  1
  • 20. Solution of ODEs … Euler Methods  Forward Euler Methods  Backward Euler Method  Modified Euler Method Runge-Kutta Methods  Second Order  Third Order  Fourth Order 20
  • 21. Solution of ODEs … Forward Euler Method: Consider the forward difference approximation for first derivative Rewriting the above equation we have So, is recursively calculated as 21 1 1,n n n n n y y y h t t h       1 , ( , )n n n n n ny y hy y f y t    1 0 0 0 0 0 2 1 1 1 1 1 1 ( , ) ( , ) ( , )n n n n y y hy y h f y t y y h f y t y y h f y t           ny
  • 22. Solution of ODEs … Example: solve Solution: etc 22 01, (0) 1, 0 1, 0.25y ty y y t h       1)0(,0for 00  yyt 1 1 0 0 0 0 0 for 0.25, ( 1) 1 0.25(0*1 1) 1.25 t y y hy y h t y           2 2 1 1 1 1 1 for 0.5, ( 1) 1.25 0.25(0.25*1.25 1) 1.5781 t y y hy y h t y          
  • 23. Solution of ODEs … Backward Euler Method: Consider the backward difference approximation for first derivative Rewriting the above equation we have So, is recursively calculated as 23 1 1,n n n n n y y y h t t h       1 , ( , )n n n n n ny y hy y f y t   1 0 1 0 1 1 2 1 2 2 1 ( , ) ( , ) ( , )n n n n y y hy y h f y t y y h f y t y y h f y t         ny
  • 24. Solution of ODEs … Example: solve Solution: Solving the problem using backward Euler method for , yields So, we have 24 01, (0) 1, 0 1, 0.25y ty y y t h       1 1 1 1 ( 1) 1 n n n n n n n n n n n n n y y hy y h t y y ht y y h y h y ht                  333.1 25.0*25.01 25.01 1 ,25.0for 1 0 11        ht hy yt ny
  • 25. Solution of ODEs … 25 8091.1 5.0*25.01 25.0333.1 1 ,5.0for 2 1 22        ht hy yt 5343.2 75.0*25.01 25.08091.1 1 ,75.0for 3 2 33        ht hy yt 7142.3 1*25.01 25.05343.2 1 ,1for 4 3 44        ht hy yt
  • 26. Solution of ODEs … Modified Euler method is derived by applying the trapezoidal rule to integrating ; So, we have If f is linear in y, we can solved for similar as backward Euler method If f is nonlinear in y, we necessary to used the method for solving nonlinear equations i.e. successive substitution method (fixed point) 26 ( , )ny f y t 1 12 ( ), ( , )h n n n n n n ny y y y y f y t     1ny
  • 27. Solution of ODEs … Example: solve Solution: f is linear in y. So, solving the problem using modified Euler method for yields 27 01, (0) 1, 0 1, 0.25y ty y y t h       1 1 1 1 12 2 1 12 2 12 1 2 ( ) ( 1 1) (1 ) (1 ) (1 ) (1 ) h h n n n n n n n n n h h n n n n h n n nh n y y y y y t y t y y t y t h t y y h t                            ny
  • 28. Solution of ODEs … For example 2 which is solved in the analytically, the Euler method can be used, which involves the solution of the following equation at each step, n: An appropriate h was found by trial and error to be 0.05. The numerical solution is shown in figure above (dashes) as the result from the nonlinear model. 28 2 1 0[ ( ) k ]An An A n An An F C C h C C C V     
  • 29. Solution of ODEs … The second order Runge-Kutta (RK-2) method is derived by applying the trapezoidal rule to integrating over the interval . So, we have We estimate by the forward Euler method. 29 ( , )y f y t ],[ 1nn tt  ),(),( 2 ),( 11 1 1       nnnnn t t nn tyftyf h y dttyfyy n n 1ny
  • 30. Solution of ODEs … So, we have Or in a more standard form as 30  )),,((),( 2 11   nnnnnnnn ttyhfyftyf h yy   ),( ),(where 2 1 112 1 211      nn nn nn tkyhfk tyhfk kkyy
  • 31. Solution of ODEs … The third order Runge-Kutta (RK-3) method is derived by applying the Simpson’s 1/3 rule to integrating over the interval . So, we have We estimate by the forward Euler method. 31 ( , )y f y t ],[ 1nn tt   1 1 1 2 2 1 1 16 ( , ) ( , ) 4 ( , ) ( , ) n n t n n t h n n n n n n n y y f y t dt y f y t f y t f y t              2 1ny
  • 32. Solution of ODEs … The estimate may be obtained by forward difference method, central difference method for h/2, or linear combination both forward and central difference method. One of RK-3 scheme is written as 32 1ny  1 1 1 2 36 1 1 2 12 2 3 1 2 1 4 where ( , ) ( , ) ( 2 , ) n n n n h n n n n y y k k k k hf y t k hf y k t k hf y k k t             
  • 33. Solution of ODEs … The fourth order Runge-Kutta (RK-4) method is derived by applying the Simpson’s 1/3 or Simpson’s 3/8 rule to integrating over the interval The formula of RK-4 based on the Simpson’s 1/3 is written as 33  1 1 1 2 3 46 1 1 2 12 1 3 22 4 3 2 2 where ( , ) ( , ) 2 ( , ) 2 ( , ) n n n n n n n n n n y y k k k k k hf y t hk hf y k t hk hf y k t k hf y k t h                 ( , )y f y t ],[ 1nn tt
  • 34. Solution of ODEs … The fourth order Runge-Kutta (RK-4) method is derived based on Simpson’s 3/8 rule is written as 34  1 1 1 2 3 48 1 1 2 13 1 1 3 1 23 3 4 1 2 3 3 3 where ( , ) ( , ) 3 2( , ) 3 ( 3 3 , ) n n n n n n n n n n y y k k k k k hf y t hk hf y k t hk hf y k k t k hf y k k k t h                   
  • 35. 35