SlideShare a Scribd company logo
SAJJAD KHUDHUR ABBAS
Ceo , Founder & Head of SHacademy
Chemical Engineering , Al-Muthanna University, Iraq
Oil & Gas Safety and Health Professional – OSHACADEMY
Trainer of Trainers (TOT) - Canadian Center of Human
Development
Episode 50 : Simulation
Problem Solution Approaches
Convergence Techniques
Simulation Strategies
2
Convergence Techniques
Atypical algorithm for Newton's method
i.Choose initial vector x(0)
ii. Set iteration counter i = 0
iii.Check convergence  f (xi)
iv.
v.
vi.
vii.
  , if so stop
Solve linear system J(xi) i = -f (xi ), for i
Update step x i+l = xi + i
i = i + 1
return to (iii)
3
3.2.3.3. Quasi-Newton (QN) Methods
These methods represent a very important class of techniques because of their
extensive use in practical alqorithms. They attempt to use an approximation to the
Jacobian and then update this at each step thus reducing the overall computational
work.
The QN method uses an approximation Hk
to the true Jacobian i and computes the
step via a Newton-like iteration. That is,
Hk
sk
= -fk
; x k+l
= xk
+ k
sk
(3.11)
or for the inverse
Sk
= (Hk
) –1
We have, sk
= -f k
(3.12)
We wish to update Sk
or Hk
in each iteration so that they approach the true Jacobian
(or inverse). The type of updating formula determines the various QN methods. As
previously defined we have,
(3.13)
and
sk
= p k+l
= xk+1
-xk
q k+1
= f k+l
- f k
For the QN process, p k+l
and
The Taylor series would give,
q k+l
= J k
p k+l
+ ………
qk+1
can only be calculated after the step calculation.
(3.14)
However, the matrix Hk
generally does not quantities correctly. That is,
q k+1
 H k
pk+1
or
sk
p k+l
 pk+1
(3.15)
Thus we want to update H k
to H k+1
so that, q k+1
= H k
p k+1
. This is
Newton (QN) condition.
the Quasi-
Main steps of a QN-method
A typical Broyden algorithm
1. Estimate H(O)
by differencing and invert to S(O)
. Choose initial starting point x(o)
.
2. Evaluate E(O)
= f(x(o)
)T
f(x(o)
). If E(O)
< , exit with solution x(o)
.
3. Estimate p (1)
= - S(o)
f(o)
. Set i = 0
4. Let x (i+l)
= x (i)
+ p (i+l)
. Evaluate f (i+l)
. Check Error E (i+l)
.
5. Evaluate denominator in update formula [(p k+l
) T
S k
q k+l
]. If equal to 10 -6
go to step 7.
6. Update inverse: Si+1
= Si
+ (p i +l
- S i
q i+1
)(p i+l
) T
/ [(p i+l
) T
S i
q i+l
]
7. Estimate new step. Set i = i + 1, then, set p i+l
= -s i
f i
.
8. Return to step 4.
Sparse Matrix Methods
Definition: A sparse matrix is a matrix in which zero components dominate.
Aim: To eliminate operations on the zeros and so increase computation
speed and reduce storage requirements.
Structured Matrices: Tridiagonal systems where, A x = b
Example of an Unstructured matrix
1 




1 

f5
1 1 1
f3 1 1 1
f 4 1 1
1
A  
f
1
2
In order to solve the problem Ax = b,
first we need to convert A into the structured form
 x1 x 2 x 3 x 4 x 5 

f1
1 1 

x = Q y (3.28)
Solving Sparse Linear Systems: A x = b
The general approach is to reduce A to block lower triangular form, although
the matrix A could be treated directly using sparse elimination techniques. For
the block lower triangular form we have permutation matrices P and Q such
that we write our original system of equations as:
PA Q y = b` = P b (3.26)
and PA Q has the form:






ANN

AN1



 A11
 A21 A22

. .
.
.
.
.
Matrices Aii ; i = 1(1)N are square diagonal block matrices. The above system of
equations given by (3.26) can then be solved for y via a series of block forward
substitutions,
A11 y 1 = b` 1
(3.27)
Aii y i = b i -  Aik y k ; i = 2(1)N
The solution of the original system is found from the vector y by a simple
permutation.
x4 x5 
1 

1 1 1 1 
1 1 1


1 1 

1 1 1 

f5
f4
A  
2
f3
f
x1 x2 x3
f1 1


We can regard this as permuting rows of A such that
B = R A R = 1, 3, 5, 4, 2
That is, we have,
0 0 1
1 1 1 
1 0 1 0A
  
 1 0 0 1 0
 1 0 1 0 1
1 
x1 x2 x3 x4
f1 1 1
1 1 1 1 
B  
2
f3 1 1 1
1 1
1
1
0
  1

0
1
x5 


 4
f5
f
f


1
Note the corrections for the lecture notes !
We can now associate the permutation matrix D with the output variable order, ie.,
D = 1 4 2 5 3. We can apply these permutations to B such that M = D B D T
to get,
0
0
1 0 0 0 0
 
0 0 1 0 0
DT
 0 0 0 0 1

1 0 0 1 0
 
1 1 0 1 0
B  1 0 1 0 1
1 0 0 0 0
 
0 0 0 1 0
D  0 1 0 0 0
 
2
We solve M y = D R b for y
and then, x = D y (3.34)
Note the corrections for the lecture notes !

0 0
0 0 1



1 0 0 1 0
 
0 1
0 0
0 0 1 0 0 0 1 1 1 1 0 0 0 1
 x1 x2 x3 x4 x5 

f1 1 1 0 0 0 

f 1 1 0 0 0 
f3 1 1 1 0 0


f4

0 1 1 1 1 

f5 1 0 0 1 1 
Simulation Strategy: What to select?
E-1
E-2
E-3
R-1
SP-1
D-1
C-1
variables Solve
x
M-1
x
x
Equation Oriented
x
equations
x
x represents variables of
the connecting streamsx
x
x
M-1 E-1 E-2 R-1 E-3 D-1 SP-1 C-1
What is Simulation Strategy ?
* Determine appropriate solution method by
analyzing the needs of the problem being solved
- Which approach to use ?
- Only one approach ?
- Choice of numerical method
- Initialization
What is Simulation Strategy ?
* Determine appropriate solution method by
analyzing the needs of the problem being solved
- Which approach to use ? Depends on the problem
- Only one approach ? Depends on the problem
- Choice of numerical method Depends on choices
made above
- Initialization
Selection of Simulation Approach
*Recycle-loops: How many are present ?
* Process Model: Linear or non-linear ?
*Type of simulation problem: Identify type
* Process information: What is known ?
*Robustness: Must always give a result?
* Computational efficiency: Must be very fast?
Modular approachversus equation orientedapproach
Strategy: Start with SM and switch to EO or
Two-Tier approach (simultaneous modular)
Sequential ModularApproach EquationOrientedApproach
Simulateone unit model at a time Solveall unit models together
Decompose flowsheet Order equations
Iteratein tear streams Update all unknown variables
simultaneously
Less flexible but morerobust Moreflexible but less robust
Initializationis important Initializationis veryimportant
Storage requirement not high Storagerequirement can be veryhigh
Convergence Techniques (Modular)
Table3.1:Theformof Jthat canbeusedinequations3.35–3.36for different convergencetechniques.
h (y) = y - w = 0
y i+l = y i – J h (y i)
Equation for tear-
stream convergence
Update method
Choice of the method defines J
Flowsheeting problem, use SS and then
WM, for specification problem, use Broydon
Method J
Successivesubstitution I
Wegstein D=diag{d}; djj =(yi
–yi-1
)/(hi
–hi-1
)j j j j
Dominant Eigen-value 1/(1-)I; =(wi
–wi -1
)/(yi
–yi-1
)
Broydon’srule Full matrixQN–update(see3.2.3.3)
Newton [F(yi
)/ y]–1
Table3.1:Theformof Jthat canbeusedinequations3.35–3.36fordifferentconvergencetechniques.
Convergence Techniques (Equation Oriented)
F  A y - b = 0
y i+l = y i – J h (y i)
Mathematical model
of process flowsheet
Update method
NM or QN-methods
solve EO &
optimization problems
Choice of the method defines J
Method J
Successivesubstitution I
Wegstein D=diag{d};djj =(yi
–yi-1
)/(hi
–hi-1
)j j j j
Dominant Eigen-value 1/(1-)I;=(wi
–wi-1
)/(yi
–yi-1
)
Broydon’srule FullmatrixQN–update(see3.2.3.3)
Newton [F(yi
)/y]–1
Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques Simulation Strategies
Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques Simulation Strategies
Thanks for Watching
Please follow me / SAJJAD KHUDHUR ABBAS

More Related Content

PPTX
Episode 54 : CAPE Problem Formulations
PDF
Lecture notes chem2002-lecture-5-2013-2014
PDF
PPTX
ESCC2018, Mykonos, Greece, June 4-8, 2018, presentation by Fragkogios A., Sah...
PDF
Avinash_PPT
DOC
Transportation and assignment_problem
PPT
Analysis of Algorithum
PPT
Use of cfd in aerodynamic performance of race car
Episode 54 : CAPE Problem Formulations
Lecture notes chem2002-lecture-5-2013-2014
ESCC2018, Mykonos, Greece, June 4-8, 2018, presentation by Fragkogios A., Sah...
Avinash_PPT
Transportation and assignment_problem
Analysis of Algorithum
Use of cfd in aerodynamic performance of race car

What's hot (19)

PDF
ANSYS Project
PDF
Selectionmec6 (1)
PDF
Pipeline engineering gas
PPTX
Fluid Mechanics in CFD Perspective
PPT
Degradation Kinetics Of A Pharmaceutical Dosage Form
PPTX
PDF
141031_Lagrange Relaxation Based Method for the QoS Routing Problem
PDF
Cpnm lect 2-4
PPT
Cfd notes 1
PPTX
Temperature Correlation With Atmospheric Variables
PDF
1999 actual paper q
DOCX
Project final control
PDF
CFD Cornell Energy Workshop - M.F. Campuzano Ochoa
PDF
Computational fluid dynamics (cfd)
PDF
V8N3-6.PDF
PPTX
Time series Modelling Basics
PDF
steady state CFD simulation on basic shapes and calculate Cd value
PDF
Calibration of A Five-Hole Probe in Null and Non-Null Technique
ANSYS Project
Selectionmec6 (1)
Pipeline engineering gas
Fluid Mechanics in CFD Perspective
Degradation Kinetics Of A Pharmaceutical Dosage Form
141031_Lagrange Relaxation Based Method for the QoS Routing Problem
Cpnm lect 2-4
Cfd notes 1
Temperature Correlation With Atmospheric Variables
1999 actual paper q
Project final control
CFD Cornell Energy Workshop - M.F. Campuzano Ochoa
Computational fluid dynamics (cfd)
V8N3-6.PDF
Time series Modelling Basics
steady state CFD simulation on basic shapes and calculate Cd value
Calibration of A Five-Hole Probe in Null and Non-Null Technique
Ad

Viewers also liked (20)

PPT
Chp. 2 simulation examples
PPTX
Adult learning and simulation
PDF
Seminar on computer simulation and modeling The Activity Approach By:Asamene.K
PPT
Queue Management System
KEY
Games Based Learning Presentation
PPS
Simulation Games And Education
PPT
PDF
Controversial product
PPTX
Episode 33 : Project Execution Part (4)
PDF
Falsification of data
PDF
Methodology - Statistic
PPT
Episode 45 : 4 Stages Of Solid Liquid Separations
PDF
Introdução à programação em Android e iOS - Android
PDF
For vals reading
PDF
A Computational Framework for Sound Segregation in Music Signals using Marsyas
PDF
Extended case studies
PDF
Justifying price rise
PPTX
Episode 51 : Integrated Process Simulation
PPT
Speaker Segmentation (2006)
Chp. 2 simulation examples
Adult learning and simulation
Seminar on computer simulation and modeling The Activity Approach By:Asamene.K
Queue Management System
Games Based Learning Presentation
Simulation Games And Education
Controversial product
Episode 33 : Project Execution Part (4)
Falsification of data
Methodology - Statistic
Episode 45 : 4 Stages Of Solid Liquid Separations
Introdução à programação em Android e iOS - Android
For vals reading
A Computational Framework for Sound Segregation in Music Signals using Marsyas
Extended case studies
Justifying price rise
Episode 51 : Integrated Process Simulation
Speaker Segmentation (2006)
Ad

Similar to Episode 50 : Simulation Problem Solution Approaches Convergence Techniques Simulation Strategies (20)

PPT
Qualifier
PDF
Numerical Solution of Linear algebraic Equation
PPTX
Iterative methods
PDF
Optimum engineering design - Day 5. Clasical optimization methods
PDF
Barret templates
PPT
Solution of linear system of equations
DOCX
Matlab lab manual
PDF
02 newton-raphson
PPTX
Solving Poisson Equation using Conjugate Gradient Method and its implementation
PDF
Research Inventy : International Journal of Engineering and Science
PPT
Convergence Criteria
PDF
Ma2002 1.19 rm
PDF
Chapter 3 solving systems of linear equations
PPT
ch06-03-30-2018.ppt aaaaaaaaaaaaaaaaaaaaaa
PPT
Optimization
DOCX
Metodos jacobi y gauss seidel
DOCX
Metodos jacobi y gauss seidel
PDF
Presentation solving fk pparallelrobots mun rose 2014
PDF
Numerical Methods: Solution of system of equations
PPTX
Are there trends, changes in the mi.pptx
Qualifier
Numerical Solution of Linear algebraic Equation
Iterative methods
Optimum engineering design - Day 5. Clasical optimization methods
Barret templates
Solution of linear system of equations
Matlab lab manual
02 newton-raphson
Solving Poisson Equation using Conjugate Gradient Method and its implementation
Research Inventy : International Journal of Engineering and Science
Convergence Criteria
Ma2002 1.19 rm
Chapter 3 solving systems of linear equations
ch06-03-30-2018.ppt aaaaaaaaaaaaaaaaaaaaaa
Optimization
Metodos jacobi y gauss seidel
Metodos jacobi y gauss seidel
Presentation solving fk pparallelrobots mun rose 2014
Numerical Methods: Solution of system of equations
Are there trends, changes in the mi.pptx

More from SAJJAD KHUDHUR ABBAS (20)

PPTX
PROJECT MANAGEMENT PLAN OF WHITE PORTLAND CEMENT PLANT PROJECT
PPTX
Electric cars
PPTX
DRYING PROCESS OF BERRY FRUIT BY VACUUM DRYING EQUIPMENT (SIMULATION PROCE...
PPTX
DRYING PROCESS OF BERRY FRUIT BY VACUUM DRYING EQUIPMENT (SIMULATION PROCE...
PPTX
‘Sustainable Approach Of Recycling Palm Oil Mill Effluent Using Integrated Bi...
PPTX
Sustainable Approach Of Recycling Palm Oil Mill Effluent Using Integrated Bio...
PPTX
Sustainable Approach Of Recycling Palm Oil Mill Effluent Using Integrated Bio...
PPTX
SUSTAINABLE APPROACH OF RECYCLING PALM OIL MILL EFFLUENT USING INTEGRATED BIO...
PPTX
Production of 100 mt distilled monoglyceride (dmg)
PPTX
Episode 66 : Renewable Energy Technologies
PPTX
Episode 65 : Membrane separation processes
PPTX
SUSTAINABLE APPROACH OF RECYCLING PALM OIL MILL EFFLUENT USING INTEGRATED BIO...
PPTX
Episode 62 : MATERIAL BALANCE FOR REACTING SYSTEM
PPTX
Episode 61 : MATERIAL BALANCE FOR REACTING SYSTEM
PPTX
Episode 60 : Pinch Diagram and Heat Integration
PPTX
Episode 59 : Introduction of Process Integration
PPTX
Episode 58 : Tools Integration Examples
PPTX
Episode 57 : Simulation for Design and Analysis
PPTX
Episode 56 : Simulation for design and analysis
PPTX
Episode 55 : Conceptual Process Synthesis-Design
PROJECT MANAGEMENT PLAN OF WHITE PORTLAND CEMENT PLANT PROJECT
Electric cars
DRYING PROCESS OF BERRY FRUIT BY VACUUM DRYING EQUIPMENT (SIMULATION PROCE...
DRYING PROCESS OF BERRY FRUIT BY VACUUM DRYING EQUIPMENT (SIMULATION PROCE...
‘Sustainable Approach Of Recycling Palm Oil Mill Effluent Using Integrated Bi...
Sustainable Approach Of Recycling Palm Oil Mill Effluent Using Integrated Bio...
Sustainable Approach Of Recycling Palm Oil Mill Effluent Using Integrated Bio...
SUSTAINABLE APPROACH OF RECYCLING PALM OIL MILL EFFLUENT USING INTEGRATED BIO...
Production of 100 mt distilled monoglyceride (dmg)
Episode 66 : Renewable Energy Technologies
Episode 65 : Membrane separation processes
SUSTAINABLE APPROACH OF RECYCLING PALM OIL MILL EFFLUENT USING INTEGRATED BIO...
Episode 62 : MATERIAL BALANCE FOR REACTING SYSTEM
Episode 61 : MATERIAL BALANCE FOR REACTING SYSTEM
Episode 60 : Pinch Diagram and Heat Integration
Episode 59 : Introduction of Process Integration
Episode 58 : Tools Integration Examples
Episode 57 : Simulation for Design and Analysis
Episode 56 : Simulation for design and analysis
Episode 55 : Conceptual Process Synthesis-Design

Recently uploaded (20)

PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
composite construction of structures.pdf
PDF
Digital Logic Computer Design lecture notes
DOCX
573137875-Attendance-Management-System-original
PPTX
Sustainable Sites - Green Building Construction
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Welding lecture in detail for understanding
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
PPT on Performance Review to get promotions
PDF
Well-logging-methods_new................
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
composite construction of structures.pdf
Digital Logic Computer Design lecture notes
573137875-Attendance-Management-System-original
Sustainable Sites - Green Building Construction
Automation-in-Manufacturing-Chapter-Introduction.pdf
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Welding lecture in detail for understanding
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT on Performance Review to get promotions
Well-logging-methods_new................
CYBER-CRIMES AND SECURITY A guide to understanding
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Foundation to blockchain - A guide to Blockchain Tech
Model Code of Practice - Construction Work - 21102022 .pdf
bas. eng. economics group 4 presentation 1.pptx

Episode 50 : Simulation Problem Solution Approaches Convergence Techniques Simulation Strategies

  • 1. SAJJAD KHUDHUR ABBAS Ceo , Founder & Head of SHacademy Chemical Engineering , Al-Muthanna University, Iraq Oil & Gas Safety and Health Professional – OSHACADEMY Trainer of Trainers (TOT) - Canadian Center of Human Development Episode 50 : Simulation Problem Solution Approaches Convergence Techniques Simulation Strategies
  • 2. 2 Convergence Techniques Atypical algorithm for Newton's method i.Choose initial vector x(0) ii. Set iteration counter i = 0 iii.Check convergence  f (xi) iv. v. vi. vii.   , if so stop Solve linear system J(xi) i = -f (xi ), for i Update step x i+l = xi + i i = i + 1 return to (iii)
  • 3. 3 3.2.3.3. Quasi-Newton (QN) Methods These methods represent a very important class of techniques because of their extensive use in practical alqorithms. They attempt to use an approximation to the Jacobian and then update this at each step thus reducing the overall computational work. The QN method uses an approximation Hk to the true Jacobian i and computes the step via a Newton-like iteration. That is, Hk sk = -fk ; x k+l = xk + k sk (3.11) or for the inverse Sk = (Hk ) –1 We have, sk = -f k (3.12) We wish to update Sk or Hk in each iteration so that they approach the true Jacobian (or inverse). The type of updating formula determines the various QN methods. As previously defined we have, (3.13) and sk = p k+l = xk+1 -xk q k+1 = f k+l - f k For the QN process, p k+l and The Taylor series would give, q k+l = J k p k+l + ……… qk+1 can only be calculated after the step calculation. (3.14) However, the matrix Hk generally does not quantities correctly. That is, q k+1  H k pk+1 or sk p k+l  pk+1 (3.15) Thus we want to update H k to H k+1 so that, q k+1 = H k p k+1 . This is Newton (QN) condition. the Quasi-
  • 4. Main steps of a QN-method A typical Broyden algorithm 1. Estimate H(O) by differencing and invert to S(O) . Choose initial starting point x(o) . 2. Evaluate E(O) = f(x(o) )T f(x(o) ). If E(O) < , exit with solution x(o) . 3. Estimate p (1) = - S(o) f(o) . Set i = 0 4. Let x (i+l) = x (i) + p (i+l) . Evaluate f (i+l) . Check Error E (i+l) . 5. Evaluate denominator in update formula [(p k+l ) T S k q k+l ]. If equal to 10 -6 go to step 7. 6. Update inverse: Si+1 = Si + (p i +l - S i q i+1 )(p i+l ) T / [(p i+l ) T S i q i+l ] 7. Estimate new step. Set i = i + 1, then, set p i+l = -s i f i . 8. Return to step 4.
  • 5. Sparse Matrix Methods Definition: A sparse matrix is a matrix in which zero components dominate. Aim: To eliminate operations on the zeros and so increase computation speed and reduce storage requirements. Structured Matrices: Tridiagonal systems where, A x = b
  • 6. Example of an Unstructured matrix 1      1   f5 1 1 1 f3 1 1 1 f 4 1 1 1 A   f 1 2 In order to solve the problem Ax = b, first we need to convert A into the structured form  x1 x 2 x 3 x 4 x 5   f1 1 1  
  • 7. x = Q y (3.28) Solving Sparse Linear Systems: A x = b The general approach is to reduce A to block lower triangular form, although the matrix A could be treated directly using sparse elimination techniques. For the block lower triangular form we have permutation matrices P and Q such that we write our original system of equations as: PA Q y = b` = P b (3.26) and PA Q has the form:       ANN  AN1     A11  A21 A22  . . . . . . Matrices Aii ; i = 1(1)N are square diagonal block matrices. The above system of equations given by (3.26) can then be solved for y via a series of block forward substitutions, A11 y 1 = b` 1 (3.27) Aii y i = b i -  Aik y k ; i = 2(1)N The solution of the original system is found from the vector y by a simple permutation.
  • 8. x4 x5  1   1 1 1 1  1 1 1   1 1   1 1 1   f5 f4 A   2 f3 f x1 x2 x3 f1 1   We can regard this as permuting rows of A such that B = R A R = 1, 3, 5, 4, 2 That is, we have, 0 0 1 1 1 1  1 0 1 0A     1 0 0 1 0  1 0 1 0 1 1  x1 x2 x3 x4 f1 1 1 1 1 1 1  B   2 f3 1 1 1 1 1 1 1 0   1  0 1 x5     4 f5 f f   1 Note the corrections for the lecture notes !
  • 9. We can now associate the permutation matrix D with the output variable order, ie., D = 1 4 2 5 3. We can apply these permutations to B such that M = D B D T to get, 0 0 1 0 0 0 0   0 0 1 0 0 DT  0 0 0 0 1  1 0 0 1 0   1 1 0 1 0 B  1 0 1 0 1 1 0 0 0 0   0 0 0 1 0 D  0 1 0 0 0   2 We solve M y = D R b for y and then, x = D y (3.34) Note the corrections for the lecture notes !  0 0 0 0 1    1 0 0 1 0   0 1 0 0 0 0 1 0 0 0 1 1 1 1 0 0 0 1  x1 x2 x3 x4 x5   f1 1 1 0 0 0   f 1 1 0 0 0  f3 1 1 1 0 0   f4  0 1 1 1 1   f5 1 0 0 1 1 
  • 10. Simulation Strategy: What to select? E-1 E-2 E-3 R-1 SP-1 D-1 C-1 variables Solve x M-1 x x Equation Oriented x equations x x represents variables of the connecting streamsx x x M-1 E-1 E-2 R-1 E-3 D-1 SP-1 C-1
  • 11. What is Simulation Strategy ? * Determine appropriate solution method by analyzing the needs of the problem being solved - Which approach to use ? - Only one approach ? - Choice of numerical method - Initialization
  • 12. What is Simulation Strategy ? * Determine appropriate solution method by analyzing the needs of the problem being solved - Which approach to use ? Depends on the problem - Only one approach ? Depends on the problem - Choice of numerical method Depends on choices made above - Initialization
  • 13. Selection of Simulation Approach *Recycle-loops: How many are present ? * Process Model: Linear or non-linear ? *Type of simulation problem: Identify type * Process information: What is known ? *Robustness: Must always give a result? * Computational efficiency: Must be very fast?
  • 14. Modular approachversus equation orientedapproach Strategy: Start with SM and switch to EO or Two-Tier approach (simultaneous modular) Sequential ModularApproach EquationOrientedApproach Simulateone unit model at a time Solveall unit models together Decompose flowsheet Order equations Iteratein tear streams Update all unknown variables simultaneously Less flexible but morerobust Moreflexible but less robust Initializationis important Initializationis veryimportant Storage requirement not high Storagerequirement can be veryhigh
  • 15. Convergence Techniques (Modular) Table3.1:Theformof Jthat canbeusedinequations3.35–3.36for different convergencetechniques. h (y) = y - w = 0 y i+l = y i – J h (y i) Equation for tear- stream convergence Update method Choice of the method defines J Flowsheeting problem, use SS and then WM, for specification problem, use Broydon Method J Successivesubstitution I Wegstein D=diag{d}; djj =(yi –yi-1 )/(hi –hi-1 )j j j j Dominant Eigen-value 1/(1-)I; =(wi –wi -1 )/(yi –yi-1 ) Broydon’srule Full matrixQN–update(see3.2.3.3) Newton [F(yi )/ y]–1
  • 16. Table3.1:Theformof Jthat canbeusedinequations3.35–3.36fordifferentconvergencetechniques. Convergence Techniques (Equation Oriented) F  A y - b = 0 y i+l = y i – J h (y i) Mathematical model of process flowsheet Update method NM or QN-methods solve EO & optimization problems Choice of the method defines J Method J Successivesubstitution I Wegstein D=diag{d};djj =(yi –yi-1 )/(hi –hi-1 )j j j j Dominant Eigen-value 1/(1-)I;=(wi –wi-1 )/(yi –yi-1 ) Broydon’srule FullmatrixQN–update(see3.2.3.3) Newton [F(yi )/y]–1
  • 19. Thanks for Watching Please follow me / SAJJAD KHUDHUR ABBAS