Computing
Interface Motion in
Hyperbolic Problems
Keh-Ming Shyue
Department of Mathematics National Taiwan University
Taiwan
Problem Setup
Consider an interface I in 2D (shown below) that separate the domain into two parts with different states qL and qR Motion and dynamics of interface depends, clearly, on
Mathematical model Interface conditions
Initial & boundary cond.
Discretization scheme
qL
qR
~t ~n I
Mathematical Model
As an example, we consider problems governed by compressible Euler equations in N ≥ 1 dimension
∂
∂t
ρ ρui
E
+
N
X
j=1
∂
∂xj
ρuj
ρuiuj + pδij Euj + puj
=
0
−ρ∂xiφ
−ρ~u · ∇φ
, i = 1, . . . , N
ρ p = p(ρ, e) e E = ρe + ρ PN
j=1 u2j/2 φ
density pressure int. energy total energy gr. potential
Mathematical Model (Cont.)
For the ease of the latter reference, we write the above compressible flow model as
∂q
∂t +
N
X
j=1
∂fj(q)
∂xj = ψ(q),
where
q = [ρ, ρu1, . . . , ρuN, E]T ,
fj = ρuj, ρu1uj + pδj1, . . . , ρuNuj + pδjN, Euj + pujT
, ψ = [0, −ρ∂x1φ, . . . , −ρ∂xNφ, −ρ~u · ∇φ]T
Interface Conditions
Interface conditions of interest are such as Dynamic condition
pR − pL = 0 (or = f (κI)) Kinematic condition
(~uR − ~uL) · ~n = 0, (~uR − ~uL) · ~t = 0 (or 6= 0) Vacuum (or called cavitation) condition
(~uR − ~uL) · ~n <
Z ρL
ρvL
c
ρ dρ +
Z ρR
ρvR
c
ρ dρ
κI ρv c
curvature at interface density at vacuum sound speed
Aim of Talk
With the above compressible flow model & interface conditions in mind, the plan of this talk is to:
Discuss anomales of state-of-the-art methods for solving the following interface problems:
Slip line (shear flow) problem Material line problem
Cavitation problem
Discuss mapped grid approach for problems with complex geometries
Slip Line (Shear Flow) Problem
For simplicity, we consider a plane interface moving
vertically from the left to right in x1-direction as shown in N = 2 below. Interface conditions for this problem are
Dynamic condition: pR = pL
Kinematic condition: u1,R = u1,L & u2,R − u2,L 6= 0
slip line
¯ u1
¯
u2 −u¯2
Slip Line Problem (Cont.)
Ignore gravitational-potential term, we may derive following transport equations for motion of ρ, ρu2, & ρe + ρu22/2,
respectively, as
∂ρ
∂t + ¯u1
∂ρ
∂x1
= 0 (from mass conservation law)
∂
∂t (ρu2) + ¯u1
∂
∂x1
(ρu2) = 0 (from momentum in x2-dir)
∂
∂t (ρe) + ¯u1
∂
∂x1
(ρe) +
∂
∂t
1
2ρu22
+ ¯u1
∂
∂x1
1
2ρu22
= 0 (from total energy)
Slip Line Problem (Cont.)
Assume a single phase ideal gas flow with EOS p(ρ, e) = (γ − 1)ρe; γ > 1 is ratio of specific heats
In this instance, to ensure pressure equilibrium, as it should be for this slip line problem, from
∂
∂t
p γ − 1
+ ¯u1
∂
∂x1
p γ − 1
+
∂
∂t
1
2ρu22
+ ¯u1 ∂
∂x1
1
2ρu22
= 0,
we should have
∂
∂t
1
2ρu22
+ ¯u1
∂
∂x1
1
2ρu22
= 0
Slip Line Problem (Cont.)
Note that when the problem is solved numerically by an interface-capturing method, it is common to compute pressure, p, based on conservative variables as
p = (γ − 1) E −
P2
i=1(ρui)2 2ρ
! ,
while generally (ρu2)2/2ρ 6= ρu22/2 when a slip line is smeared out
Immediate consequence of this is loss of pressure equilibrium, and so incorrect solution of other state variables (see below)
Slip Line Problem (Cont.)
Suppose a first order Godunov method of the form Qn+1ij = Qnij − ∆t
∆x1
F1 Qni,j, Qni+1,j − F1 Qni−1,j, Qnij
is used for numerical discretization of this slip line problem Here Qnij denotes approximate value of cell average of
solution q over cell Cij at time tn, i.e., Qnij = 1
∆x1∆x2
Z Z
Cij
q(x1, x2, tn)dx1dx2,
and F1(Qi±1,j, Qij) denotes numerical flux, say, defined by F1(Qi±1,j, Qij) = f1
qi±1/2,j∗
(qi±1/2,j∗ Riemann solution)
Slip Line Problem (Cont.)
An example obtained by using a Godunov-type method Errors depend strongly on transverse velocity jump
0 0.2 0.4 0.6 0.8 1
1 2 3 4 5 6
0 0.2 0.4 0.6 0.8 1
1 1.05 1.1 1.15 1.2 1.25 1.3 1.35
0 0.2 0.4 0.6 0.8 1
9.95 10 10.05 10.1 10.15
0 0.2 0.4 0.6 0.8 1
−1
−0.5 0 0.5 1
x1
x1
u1 u 2
ρ p
Slip Line Problem (Cont.)
To devise a more accurate method for numerical resolution of slip lines, we may use
Diffuse interface approach
Include transverse kinetic energy equation in the model & use its solution for pressure update
p = (γ − 1)
E − (ρu1)2
2ρ + ρu22 2
This transverse kinetic equation should be modified so that there is no difficulty to work with shock waves
Sharp interface approach
Front tracking or Lagrangian moving grid method
Slip Line Problem (Cont.)
Result obtained using a Lagrangian-like method Errors are on the order of machine epsilon
0 0.5 1 1.5
0 1 2 3 4 5 6
0 0.5 1 1.5
1 1 1 1 1
0 0.5 1 1.5
10 10 10 10 10 10 10 10
0 0.5 1 1.5
−1
−0.5 0 0.5 1
x1
x1
u1 u 2
ρ p
Slip Line Problem (Cont.)
Grid system for a Lagrangian run of slip line problem
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
0.05 0.1 0.15
Initial grid
0.4 0.5 0.6 0.7 0.8 0.9 1 1.1 1.2
0 0.05 0.1 0.15 0.2
Final grid
Euler Equations in Generalized Coord.
Lagrangian results shown above is based on solving Euler equations in generalized coordinates of the form
∂
∂τ
ρJ ρJui
JE
+
N
X
j=1
∂
∂ξj
J
ρUj
ρuiUj + p∂ξ∂xj
i
EUj + pUj − p∂ξ∂tj
=
0
−ρJ ∂x∂φ
i
−ρJ~u · ∇φ
which is as a result of coordinate change (~x, t) 7→ (~ξ, τ ) via
dt = dτ,
dx1 = ug1 dτ + a1 dξ1 + a2 dξ2 + a3 dξ3, dx2 = ug2 dτ + b1 dξ1 + b2 dξ2 + b3 dξ3, dx3 = ug3 dτ + c1 dξ1 + c2 dξ2 + c3 dξ3.
Euler in Generalized Coord. (Cont.)
For convenience, we write
∂ ˜q
∂τ +
N
X
j=1
∂ ˜fj(˜q)
∂ξj = ˜ψ(˜q), where
˜
q = [ρJ, ρu1J, . . . , ρuNJ, EJ]T ,
f˜j = J [ρUj, ρu1Uj + p∂x1ξj, . . . , ρuNUj + p∂xNξj, EUj + pUj − p∂tξj]T , ψ = [0, −ρJ∂˜ x1φ, . . . , −ρJ∂xNφ, −ρJ~u · ∇φ]T
Uj = ∂tξj + PN
i=1 ui∂xiξj: contravariant velocity in ξj-direction
~ug = h~u: speed of grid motion, h ≈ 1
Material Line Problem
Now let us move on to our second interface-only problem that concerns a material line, separating regions of two different fluid phases
Again for simplicity, we consider a plane interface moving vertically from the left to right in x1-direction.
Interface conditions for this problem are the same as in slip line case.
Dynamic condition: pR = pL (but there is jump in material quantities)
Kinematic condition: u1,R = u1,L & u2,R − u2,L 6= 0
Material Line Problem (Cont.)
Assume ideal gas law p(ρ, e) = (γ − 1)ρe for each fluid phase, where γ takes different quantities for each phase In this instance, to ensure pressure equilibrium, from
∂
∂t
p γ − 1
+ ¯u1
∂
∂x1
p γ − 1
+
∂
∂t
1
2ρu22
+ ¯u1
∂
∂x1
1
2ρu22
= 0,
we should have
∂
∂t
1 2ρu22
+¯u1 ∂
∂x1
1 2ρu22
= 0 & ∂
∂t
1 γ − 1
+ ¯u1 ∂
∂x1
1 γ − 1
= 0
M a te ri a l L in e P ro b le m (C o n t.)
Comparisonwithdifferentγmodel(nou2 jump)
2.5 4.0 5.5
2.5 4.0 5.5
2.5 4.0 5.5
2.5 4.0 5.5
1.0 1.2
1.0 1.2
1.0 1.2
1.0 1.2
1.00 1.06
1.00 1.06
1.00 1.06
1.00 1.06
0.00.40.8
1.20 1.30 1.40
0.00.40.8
1.20 1.30 1.40
0.00.40.8
1.20 1.30 1.40
0.00.40.8
1.20 1.30 1.40
withργwithρ/(γ−1)withγwith1/(γ−1)
ρe ρe ρe ρe
u1
u1
u1
u1
p p p p
γ γ γ γ
DES2010,DepartmentofMathematics,NTU,8-9January,2010–p.20/44
Material Line Problem (Cont.)
Comments on problems with complex equation of state Even for single phase flow case, standard method will fail to attain pressure equilibrium, say, for example, van der Waals gas
p(ρ, e) = γ − 1
1 − bρ ρe + aρ2 − aρ2
For multiphase flow case, suitable transport equations for characterizing numerical fluid mixing can be derived (see in a later)
Cavitation Problem: 1D
Homogeneous flow with standard atmospheric condition
Due to opposite flow motion, pressure drop & formation of cavitation zone
u1 −u1
Cavitation test: 1D
Dynamic cavitation formation (gas-liquid mixture case)
−10 0 1
5
10x 104
−1 0 1
−100
−50 0 50 100
u 1
−10 0 1
500 1000
ρ
−10 0 1
0.5 1
cavitation
p α
x x
Cavitation test: 1D
Cavitation formation after t = 0+ (elastic-plastic case)
−4 −2 0 2 4
7.8 7.85 7.9 7.95 8
ρ (Mg/m3 )
−4 −2 0 2 4
−1
−0.5 0 0.5 1
u (km/s)
−4 −2 0 2 4
0 2 4 6 8
x (m) σ x (GPa)
−4 −2 0 2 4
−0.6
−0.4
−0.2 0 0.2 0.4 0.6
x (m) s x (GPa)
Cavitating Problem (Cont.)
Isentropic relaxation model (Saurel et al. JCP ’09)
∂
∂t (α1ρ1) +
N
X
j=1
∂
∂xj
(α1ρ1uj) = 0,
∂
∂t (α2ρ2) +
N
X
j=1
∂
∂xj
(α2ρ2uj) = 0,
∂
∂t (ρui) +
N
X
j=1
∂
∂xj
(ρuiuj + pδij) = 0, i = 1, . . . , N
∂α1
∂t +
N
X
j=1
uj ∂α1
∂xj
= µ (p1 (ρ1) − p2 (ρ2))
Each phasic pressure pι satisfies pι(ρ) = (p0 + B) (ρ/ρ0)γ − B
Mixture pressure p satisfies p = α1p1 + α2p2, µ : parameter
Cavitating Problem (Cont.)
There are some funadmental issues for numerical
resolution cavitating problems that I do not show here. But in general the following two things are important for the
problem
Devise of general cavitation-capturing method ?
Relaxation model to elastic-plastic & to other physical laws
Mapped Grid Method
To solve problem with complex geometries, here we consider body-fitted mapped grid method for its easy extension to three dimensions
Employ finite volume formulation of numerical solution
Qnij ≈ 1
∆ξ1∆ξ2 Z
Cij
q(ξ1, ξ2, τn) dξ1ξ2
i − 1 i − 1
i
i j
j
j + 1 j + 1
Cij Cˆij
ξ1 ξ2
mapping
∆ξ1
∆ξ2 logical domain physical domain
←−
x1 = x1(ξ1, ξ2) x2 = x2(ξ1, ξ2) x1
x2
Mapped Grid Method (Cont.)
In three dimensions N = 3, equations to be solved take
∂q
∂t +
N
X
j=1
∂ ˜fj
∂ξj = ψ(q)
A simple dimensional-splitting method based on wave propagation approach of LeVeque et al. is used, i.e.,
Solve one-dimensional Riemann problem normal at each cell interfaces
Use resulting jumps of fluxes (decomposed into each wave family) of Riemann solution to update cell
averages
Introduce limited jumps of fluxes to achieve high resolution
Shock waves over circular array
A Mach 1.42 shock wave in water over a circular array
t=0
shock
Shock waves over circular array
Grid system
−3 −2 −1 0 1 2 3 4 5
−4
−3
−2
−1 0 1 2 3 4
time=0
Shock waves over circular array
Contours for density
t=0.0024
Cavitation test: 2D steady state
Uniform gas-liquid mixture with speed 600m /s over a circular region
Cavitation test: 2D steady state
Pseudo colors of volume fraction
Formation of cavitation zone (Onset–shock induced, diffusion, . . . ?)
Cavitation test: 2D steady state
Pseudo colors of pressure
Smooth transition across liquid-gas phase boundary
Cavitation test: 2D steady state
Pseudo colors of volume fraction: 2 circular case
Convergence of solution as the mesh is refined ?
t=0.05
Moving cylindrical vessel
Initial setup
time=0
air helium
interface
Moving cylindrical vessel
Solution at time t = 0.25
Moving cylindrical vessel
Solution at time t = 0.5
Moving cylindrical vessel
Solution at time t = 0.75
Moving cylindrical vessel
Solution at time t = 1
Shock wave & Disperse phases
Shock wave & Disperse phases
Shock wave & Disperse phases
Shock wave & Disperse phases
Shock wave & Disperse phases
Shock wave & Disperse phases
Shock wave & Disperse phases
Shock wave & Disperse phases
Compressible Multiphase Flow
Homogeneous equilibrium pressure & velocity across material interfaces
Volume-fraction based model equations (Shyue JCP
’98, Allaire et al. JCP ’02)
∂
∂t (αiρi) + 1 J
Nd
X
j=1
∂
∂ξj (αiρiUj) = 0, i = 1, 2, . . . , mf
∂
∂t (ρui) + 1 J
Nd
X
j=1
∂
∂ξj
(ρuiUj + pJji) = 0, i = 1, 2, . . . , Nd,
∂E
∂t + 1 J
Nd
X
j=1
∂
∂ξj
(EUj + pUj) = 0,
∂αi
∂t + 1 J
Nd
XUj ∂αi
∂ξ = 0, i = 1, 2, . . . , mf − 1;