Modeling_Simulation_Lecture4
Modeling_Simulation_Lecture4
Ali M. Sahlodin
Department of Chemical Engineering
AmirKabir University of Technology
1397 S.H
1
10/8/2019
x
mxT 0
L
y
my mg T 0
L
x 2 y 2 L2 0
2
10/8/2019
What is sparsity?
2 8 0 0 1
0 5 0 3 0 •9 nonzero elements
•16 zero elements
0 0 6 0 0 •64% sparse
0 0 0 4 1
0 0 0 0 5
3
10/8/2019
F, C1
Index 2 DAE Index reduction
dC2 F dC2 F
(t ) C1 (t ) C2 (t ) 0 (t ) C1 (t ) C2 (t ) 0
dt V dt V
C2 (t ) (t ) 0 dC1 F V
(t ) C1 (t ) C2 (t ) (t ) 0 F, C2
dt V F
Before After
F F
f F F V V
V V
x F
0 1 1
V
Copyright © Ali M. Sahlodin, Dept. of Chemical Engineering, AmirKabir Univ. of Tech. 8
4
10/8/2019
X2+y2=L2
5
10/8/2019
Index reduction
f (t , x, x ) 0 x f ( x, t )
Introduce
x f ( x, t ) new variables
x f ( x, t ) g Tx
0 g ( x, t )
0 g ( x, t )
Over-determined
x f ( x, t ) g Tx
0 g ( x, t )