Beruflich Dokumente
Kultur Dokumente
Review
Define Residual and Relaxation
SIMPLE CFD Algorithm
SIMPLE Semi-Implicit Method for Pressure-Linked Equations
Review
Conservation equations
Turbulent flow and turbulence modeling
RANS Equation
Discretization
System of equation and solution methods
Accuracy
Numerical stability of solution procedure (new)
Residual
Example:
x-exp(1/x)-2=0
Find x using iteration
Explicit form 1:
Explicit form 2:
x=exp(1/x)+2
x=1/(ln(x)-ln(2))
Solution process:
Guess x0
Not all iteration
process converge!
Iteration :
x1=exp(1/x0)+2 ,
X2=exp(1/x1)+2 ,
..
.
R1=x1-x0
R2=x2-x1
Convergence example
Explicit form 2:
x=1/(ln(x)-ln(2)
iteration
ijk
cell position
Variable: p,V,T,
Relaxation
Relaxation with iterative solvers:
variable
divergence
solution
convergence
Solution is Under-Relaxation:
iteration
Y*=fY(n)+(1-f)Y(n-1)
Example of relaxation
(example from homework 3 assignment)
Example: Advection diffusion equation, 1-D, steady-state, 4 nodes
a N TN -1 b N TN c N TN 1 f N
1) Explicit format:
TN 1 / b N f N a N /b N TN-1 c N /b N TN 1
T 13 1 / b 3 f 3 a 3 /b 3 T 1 2 c 3 /b 3 T 0 4
T 1 4 1 / b 4 f 4 a 4 /b 4 T 13
4) Substitute and calculate:
Substitute and calculate:
.
v x v y v z
0
x
y
z
Momentum x
v x
v x
v x
v x
p
2vx
2vx
2vx
(
vx
vy
vz
) 2 2 2 SM x
x
y
z
x
x
y
z
Momentum y
v y
v y
v y
v y
2vy
2vy
2vy
p
(
vx
vy
vz
) 2 2 2 SM y g (T T )
x
y
z
y
x
y
z
Momentum z
v z
v z
v z
v z
p
2vz
2vz
2vz
(
vx
vy
vz
) 2 2 2 SM z
x
y
z
z
x
y
z
Pressure is in momentum equations
which already has one unknown
2 SM x
2
2
x
y
z
x
x
y
z
aP 6 2
x
x
aE 2 x , aW 2
x
x
x
................................
2 SM x
x
y
z
x
x 2
y 2
z
x
x
x
x
a P Vx P a E Vx E a W Vx W a S Vx S a N Vx N a H Vx H a L Vx L f
We have two additional equations for y and x directions
Aw
P
x
Ae
Aw=Ae=Aside
(PW PE )/2
Aside
x
The momentum equations can be solved only when the pressure field is given or is
somehow estimated. Use * for estimated pressure and the corresponding velocities
SIMPLE algorithm
Guess pressure field: P*W , P*P, P*E, P*N , P*S, P*H, P*L
1) For this pressure field solve system of equations:
x:
a P Vx P a E Vx E a W Vx W a S Vx S a N Vx N a H Vx H a L Vx L f
y:
..
..
z:
Solution is:
(PW PE )/2
Aside
x
V *x P , V *x E , V *x W , V *x S , V *x N , V *x H , V *x L
P pressure correction
V velocity correction
V = V* + f(P)
SIMPLE algorithm
start
p=p*
Guess p*
Converged
(residual check)
yes
end
Other methods
SIMPLER
SIMPLEC
PISO
variation of SIMPLE