Professional Documents
Culture Documents
Flux Limiters
Implementation Issues
Boundary Conditions for Convection-
Diffusion Problems
Last Time…
∆x (φP − φW )
φe = φ P + Ψ (re )
2 ∆x
φE − φP
z Recall: re =
φP − φW
Ψ=2r
Physical Interpretation
ww
Case (a): Linear φ Variation
r=1 z Since:
φE − φP
r=
φP − φW
z If variation is a straight
line, on a uniform mesh,
r=1
z From our limiter function
range,Ψ=1 for r=1
z Can use either gradient
and get the right value at e
Case (b): 2>r>1
z r>1 means
z If we used Ψ=1, we
would not create
overshoot
z In fact we can use Ψ
up to r and not create
φe > φ E
Case (b): 2>r>1 (Cont’d)
= φP +
( φE − φP )
re
⎛ 1⎞ ⎛1⎞
= ⎜1 − ⎟ φP + ⎜ ⎟ φE
⎝ re ⎠ ⎝ re ⎠
≤ φE
Case (c): 0< r<1
z If r<1:
φe = φ P
Defaults to first
order upwind
scheme
Unstructured Meshes
φ f = φ0 + Ψ (rf )∆r0 f ⋅ ( ∇φ )0
z No easy way to define rf
U ∆r
0f f
∆r C1
01 C0 ∆r
01
Unstructured Meshes
∆r
φ1 − φ0
U
0f f
rf = ∆r C1
− ( ∇φ )0 ⋅ ∆r0 f
01 C0 ∆r
01
Implementation Issues
( )
*
φHO ,e = φP + φ HO ,e
− φP
z Put starred terms in b
z Coefficient matrix contains upwind coefficients
Implementation (Cont’d)
Upwind
QUICK - Upwind
z Here
b = Sc ∆VP − Fe ∆φho
*
,e + Fw ∆ φ *
ho , w − Fn ∆ φ *
ho , n + Fs ∆ φ *
ho , s
Higher-order contribution –
needs iteration
Boundary Conditions: Inflow BC
Diffusion term
Known
same as for
values
Dirichlet BC
Outflow BC
» No convective flux
z Boundary flux has only diffusion:
z Can have Dirichlet/Neumann/mixed bc just as in pure
diffusion problems
Closure
In this lecture, we
z Considered the physical meaning of the limiter
function
z Saw that it was an adaptive way to choose either an
upwind or a downwind gradient to find face value
z Looked at difficulties in implementing for unstructured
meshes
z Looked at implementation issues