
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















MacCormack’s method (6.3)
Original (1969) method is 2 nd^ order accurate (in space and time)
explicit method. It is a modified form of the Lax-Wendroff scheme.
Using MacCormack’s method we write
1
n n i j i j avg
Predictor step
1, , 1, , , , ,
n n n n n n i^ j^ i j^ n i^ j^ i j i j i j i j
ρ ρ^ ρ ρ
Corrector step
First obtain a predicted value of the time derivative using backward
difference for the space derivatives
(^1 1 1 1 )
1 ,^ 1,^1 ,^ 1, , ,
,
n (^) n n n n
n i j^ i^ j^ n i j^ i^ j i j i j
i j
(^) + + + +
−^ + −
Now find average value of the time derivative as
1
, (^) ,
1 .........(6.22) 2
n^ n
t (^) avg t (^) i j t i j
ρ ρ ρ
(^) ∂^ ∂^ ∂ =^ ^ + ^ ∂^ ∂^ ∂
Now use Eq. (6.13) to calculate the variable at (n+1)
1
n n i j i j avg
Repeat the procedure to get the variable at all the grid points shown
In Figure 6.
The same procedure can be used for all the other variables of the
solution vector U_bar, using forward difference for the predictor
step and backward difference for the corrector step.
Because of using forward difference for the predictor and backward
differnce for the corrector step, the method can be shown to be 2 nd^ order
accurate.
Consists of a high pressure chamber and a low pressure chamberThis image cannot currently be displayed.This image cannot currently be displayed.This image cannot currently be displayed.This image cannot currently be displayed.This image cannot currently be displayed.
separated by a diaphragm
When the diaphragm is broken a wave pattern is established as shown
In the figure
Figure shows the flow at a certain time t1, when the waves haven’t
Started reflecting from the tube ends
Insert Figure 11.
This image cannot currently be displayed.This image cannot currently be displayed.This image cannot currently be displayed.This image cannot currently be displayed.This image cannot currently be displayed.
2
2
................(2.95)
2
xx
xy
xz
xx xy xz
u
u p
F vu
wu
V T e u pu k u v w x
ρ
ρ τ
ρ τ
ρ τ
ρ τ τ τ
(^) + − = (^) − − (^) (^) ∂ (^) + (^) + − − − − (^) ∂
2
2
................(2.96)
2
yx
yy
yz
yx yy yz
v
uv
G v p
wv
V T e w pv k u v w y
ρ
ρ τ
ρ τ
ρ τ
ρ τ τ τ
(^) − = (^) + − − (^) (^) ∂ (^) + (^) + − − − − (^) ∂
2
2
................(2.97)
2
zx
zy
zz
zx zy zz
w
uw
H vw
w p
V T e w pw k u v w z
ρ
ρ τ
ρ τ
ρ τ
ρ τ τ τ
(^) − = (^) − +^ − (^) (^) ∂ (^) + (^) + − − − − (^) ∂
The above vectors can be modified for the shock tube problem.
Since only one space dimension is present, the vectors can be
shortened as follows
..................( )
U F J A t x
∂ ∂
2
............( )
2
U u B
u e
ρ
ρ
ρ
= (^) + (^)
2
2
................( )
2
xx
xx
u
E u p C
u T e u pu k u x
ρ
ρ τ
ρ τ
= (^) + −
(^) ∂ (^) + + − − (^) ∂
3
1
3
1
2 2 1 2 2 2 3
v
v
xx
x xx
u U c T U
U (^) u
T
c U
E u
E u p
u E u e pu q u
2 2
u E u p x
Also recall that
xx
u u u u V x x x x
Therefore
Also recall
v
p
p RT
e c T
h c T
Auxiliary relations for a perfect gas
1 1
n n n n U (^) i U (^) i Ei Ei
t x
− (^) + − = − ∆ ∆
1 1 1 (^11 )
n n n n n n U (^) i U (^) i Ei Ei Ei Ei
t x x
− ^ + − − − = − (^) + ∆ (^) ∆ ∆
Calculate (^) E n +^1 from U n +^1