K.Kitamura, A.Hashimoto Simple a posteriori limiter towards flow

JAPAN‐RUSSIA WORKSHOP ON SUPERCOMPUTER MODELING, INSTABILITY AND TURBULENCE IN FLUID DYNAMICS (JR SMIT2015)
March 04, 2015, Keldysh Institute for Applied Mathematics RAS, Moscow, Russia
SIMPLE A POSTERIORI LIMITER TOWARDS FLOW
SIMULATIONS WITH 64 TIMES HIGHER RESOLUTION
K. Kitamura (Yokohama National University, Japan)
and
A. Hashimoto (JAXA, Japan)
Present (Compressible) CFD
0.01
0.1
0.7 1.0 1.2
1.5
5
M
Transonic
Incompressible
Hypersonic
Supersonic
Subsonic
Low-Speed
‐
‐
Anomalous Solutions due to Excess Dissipation
Degraded Convergence
High-Speed
Almost Matured
Current interests:
- Error Reduction
- Convergence Acceleration
‐
Shock Anomalies (e.g., Carbuncle)
‐
Difficulties in Heating Prediction
M=8.1
M=0.01
Kitamura et al.,
CiCP, 2011.
Kitamura & Shima,
JCP, 2013.
2
Recent Aerodynamic Simulations
Ares I: Cart3D – Cartesian,
Automated (NASA Ames)
Ballute: FUN3D – Tetra,
Unstructured (NASA
Langley)
Gnoffo et al., AIAA-20063771, 2006.
Pandya et al., NAS-06005, 2006; AIAA 2006-90
Epsilon Launch Vehicle: LS-GRID/
FLOW – Body-Fitted Cartesian
(JAXA)
Kitamura et al.,
JSR, 2013.
Brazilian Satellite Launch Vehicle:
Unstructured
Bigarella et al.,
JSR, 2007.
Unstructured, spatially 2nd-order:
Still in the “mainstream”
3
Schematic of One Timestep in Finite Volume Method:
Spatially 2nd‐order (or higher)
Qn+1=Qn+ΔQ (Time Evolution)
i
Cell
Interface
i, j
j
Reconstruction Slope Limiter
MUSCL,
U-MUSCL,
Green-Gauss
minmod,
Venkatakrishnan,
MLP
Inviscid Flux
Viscous Flux
(Numerical Flux)
SLAU2, Roe,
AUSM+-up, etc.
Central
Difference,
Wang, etc.
If Slope is Steep (e.g. Shocks)
-> Zero Slope (1st-order)
Distribution of Variables over Surrounding Cells
-> Inner Cell Distribution: Linear, Quadratic, etc.
Omitted if 1st-order
4
Computational Methods
• Governing Eqs.: 2D compressible Euler/N-S Eqs.
• Spatial Discretization: Cell-centered FVM
– Gradient: MUSCL (= -1 or 1/3: 2nd order) or Green-Gauss
– Slope Limiter: minmod, MLP, or none
– Inviscid Term (Numerical Flux): SLAU2 or AUSM+-up
– Viscous Term: Central Difference (2nd order)
• Temporal Evolution: Runge-Kutta (2 or 4)
Time Evolution
Q in 1  Q in 
Variable Vector at
(n+1)-th Timestep
t i
Vi
 (Fi , j  Fv i, j )S i, j
q i , j  q i  q i  ri , j  ri 
Slope
Limiter [0,1]
j
Inviscid
Flux
Viscous
Flux
5
(Conventional, a priori) Limiter
• Spatial Accuracy: usually 2nd‐order or higher
 At Discontinuities (e.g. Shocks): Over/Undershoot
 “Limiter  ” lowers the order of accuracy a priori, where the computation is “likely” to get unstable
= Too much Limiting ? (=0)
Shock
Q in 1  Q in 
Variable Vector at
(n+1)-th Timestep
t i
Vi
Time Evolution
 (F
i, j
 Fv i , j ) S i , j
j
Inviscid
Flux
q i , j  q i  q i  ri , j  ri 
Slope
Limiter [0,1]
Viscous
Flux
qi,j
qi
qj
6
Dr. Hiroaki Nishikawa, one of FUN3D
code developer, at National Institute of Aerospace:
“We don’t use a limiter for transonic simulations on a very smooth and beautiful mesh.”
(Private Communication, 2013)
7
(Conventional, a priori) Limited v.s. Unlimited Computations
250x125 cells
(Baseline)
500x250
(Fine)
With Limiter
250x125
(Baseline)
With Limiter
1,000x500
(Very Fine)
Without Limiter (after shock reflection)
AUSM+-up, Viscous (Re=200), 2nd order in time and space
With Limiter
8
(Conventional, a priori) Limited v.s. Unlimited Computations
250x125 cells
(Baseline)
Flat
500x250
(Fine)
Round
With Limiter
250x125
(Baseline)
With Limiter
1,000x500
(Very Fine)
Vertically Stretched
Without Limiter (after shock reflection)
(If stable,) 4x4=16 times equivalent resolution!
With Limiter
9
a posteriori Limiting Procedure
Clain et al., JCP, 2011
• Compute Higher‐Order (H.O.) Candidate Value qi,j
• Then, Limiting: whether or not to adopt qi,j
‐ qi,j has no problem ‐> Adopted
‐ qi,j is problematic ‐> Re‐compute qi,j with Lower‐
order (L.O.), more stable method
Q in 1  Q in 
Variable Vector at
(n+1)-th Timestep
t i
Vi
 (F
i, j
q i , j  q i  q i  ri , j  ri 
 Fv i , j ) S i , j
j
Inviscid
Flux
Slope
Limiter [0,1]
Viscous
Flux
qi,j
qi
qj
10
MOOD (Multi‐dimensional Optimal Order Detection)
do
•
Candidate Solutions: Obtained Sequentially
Get Candidate Value qi,j
with H.O. method
7th Order
Highest Order (Most Accurate)
N.G.
end do
Repeated until satisfactory value is
obtained
(-> extra cost and code complexity)
5th Order
Lower Orders
Then, determine whether to adopt qi,j
‐ qi,j has no problem ‐> adopt
‐ qi,j is problematic ‐> Go down to L.O. method and re‐calculate qi,j
•
N.G.
3rd Order
N.G.
3rd Order, Limited
N.G.
1st Order
Lowest Order (Most Robust)
Clain et al., JCP, 2011
11
Proposed Method: Simple a posteriori Limiter
Candidate Solutions:
Obtained at One Time
2nd Order
Blended
• Get Candidate Values qi,junlim and qi,jlim
at one time
2nd Order, Limited
• Then, determine which to use
‐ qi,junlim has no problem ‐> Adopt qi,junlim
‐ qi,junlim is problematic ‐> Adopt qi,jlim
qi , j  qi  qi  ri , j  ri 
unlim
qi , j  qi  qi  ri , j  ri 
lim
Q in 1  Q in 
Variable Vector at
(n+1)-th Timestep
t i
Vi
 (F
i, j
a priori Limiter [0,1]
q i , j  q i  q i  ri , j  ri 
 Fv i , j ) S i , j
Slope
a priori Limiter [0,1]
j
Inviscid
Flux
Viscous
Flux
qi,j
qi
qj
12
Criteria: How to choose from/blend qunlim and qlim
1. Positivity: Density and Pressure must be positive
qi,j
i,junlim > 0, pi,junlim > 0 2. Discrete Maximum Principle (DMP):
Density at cell‐interface must fall between values of cells at both sides
qj
qi
min(i, j) < i,junlim < max(i, j) or Pressure ratio: 2 or lower
Smooth
qi,j = G qi,junlim +Gqi,jlim
Gnoffo’s
Auxiliary Limiter
Gnoffo, AIAA-2010-1271
G 

  max   
1  cos 

,   min 1, max 0,
2
  max   min 


pmax
,
pmin


pmax  max p no lim , pi , p j ,

pmin  min p no lim , pi , p j
NonSmooth

13
Criteria: How to choose from/blend qunlim and qlim
1. Positivity: Density and Pressure must be positive
i,junlim > 0, pi,junlim > 0 Y
N
G = 
2. Discrete Maximum Principle (DMP):
Density at cell‐interface must fall between values of cells at both sides
min(i, j) < i,junlim < max(i, j) or Pressure ratio: 2 or lower
YG = 
N
qi,j = G qi,junlim +Gqi,jlim
Gnoffo’s
Auxiliary Limiter
Gnoffo, AIAA-2010-1271
or
qi , j  qi   final qi  ri , j  ri 
 final  G  1  G   lim
14
Numerical Example #1: Shu‐Osher’s Problem (1D Shock/Entropy‐Wave Interaction)
2nd-order in space and time, SLAU2, CFL≈0.68 (t=1.8)
ML=1.36
(Proposed)

Equivalently 4 times resolution is achieved!
15
Numerical Example #2: Viscous Shock Tube
Re=200, 250x125 cells,
2nd-order in space and time both,
200,000 steps (CFL≈ 0.52) (t=1)
t = 1.0
Kim et al., JCP 2010
h = 1/500
Inviscid Estimation (x-t diagram)
by Daru & Tenaud, CAF 2001
Daru & Tenaud, CAF 2001
16
Numerical Example #2: Viscous Shock Tube
Re=200, 250x125 cells,
2nd-order in space and time both,
200,000 steps (CFL≈ 0.52) (t=1)
t = 1.0
Kim et al., JCP 2010
h = 1/500
Inviscid Estimation (x-t diagram)
by Daru & Tenaud, CAF 2001
Daru & Tenaud, CAF 2001
17
Example #2: Viscous Shock Tube
(Proposed)

Nearly 4x4 times
resolution is achieved!
18
Example #2: Viscous Shock Tube
250x125
cells
(Baseline)
250x125
cells
(Baseline)
a priori Limiter Only
Closer to very fine solution
a posteriori Limiter
1,000x
500 cells
(Very
Fine)
a priori Limiter Only (MUSCL+minmod)
AUSM+-up, Green-Gauss + MLP
19
Example #2: Viscous Shock Tube
With a posteriori Limiter
Activated region of (a priori) Limiter
0<φ<1
Limiter works at only small
portions of shock!
AUSM+-up, Green-Gauss + MLP
20
Summary
qi,junlim qi,jlim
• Simple a posteriori Limiter is proposed
1.
2.
Get Candidate Values qi,junlim and qi,jlim at One Time, without and with (a priori) Limiter, respectively
Determine which to use, or blend them
– 1D: 4 times equivalent resolution
– 2D: nearly 4x4 times resolution
qi
qj
qi , j  qi   final qi  ri , j  ri 
 final  G  1  G   lim
– Computational Overhead: Approx. 20% / timestep
(which doesn’t matter, compared with improved resolution)
‐> Substantial Cost Reduction
Future Work
・ Multidimensional Consideration: Ducros Shock Sensor, etc.
・ Avoid If‐sentence ‐> Further simplification
・ 3D practical problems: Transonic Buffet Simulation etc.
21
Acknowledgments
• Dr. Hiroaki Nishikawa at National Institute of Aerospace let us know of unlimited computation even when shocks are present. This motivated us to initiate the present work.
• Assoc. Prof. Ryoji Takagi and Assis. Prof. Taku
Nonomura, both at JAXA, provided us with valuable comments.
22