Maki Slides
Maki Slides
Maki Slides
Kevin Maki
University of Michigan
Ann Arbor, MI USA
1 Introduction
2 Governing Equations
Volume of Fluid
Momentum and Continuity Equations
3 Numerics
interFoam solver
4 Solution Settings
α = α(x, t) (1)
µ(x, t) = µwater α + µair (1 − α) (2)
ρ(x, t) = ρwater α + ρair (1 − α) (3)
Dα
= 0 (4)
Dt
∂α
+ u · ∇α = 0 (5)
∂t
∂α
+ ∇ · uα = 0 (6)
∂t
Maki (UofM) Training Session: Ship Resistance 6th OpenFOAM Workshop 5 / 22
Volume-of-fluid with compression
the α function transitions from 1 to 0 over an infinitesimal
thickness. This leads to difficulty in approximating the gradient of
α, and results in smearing of the interface.
One remedy, is to use a modified governing equation. The
modification should return solutions of the original equation for the
time evolution of the interface, but help by keeping the interface
crisp.
∂α
+ ∇ · uα + ∇ · wα = 0
∂t
u is the physical velocity field, and w is an artificial velocity field
that is directed normal to and towards the interface.
∂α
+ ∇ · uα + ∇ · w(α(1 − α)) = 0
∂t
the user can specify the relative magnitude of the artificial velocity
(using cAlpha)
Maki (UofM) Training Session: Ship Resistance 6th OpenFOAM Workshop 6 / 22
Momentum, dynamic pressure
Full Reynolds-averaged momentum equations for the velocity U
and pressure P in a fluid with density ρ and dynamic viscosity µ
∂ρU h i
+ ∇ · UU = −∇P + ρg + ∇ · (µ + µt )(∇U + ∇U> )
∂t
Express the pressure in terms of a hydrostatic component, and
the remainder or that due to dynamic or non-zero velocity p
P= ρg · x + p
| {z } |{z}
hydrostatic dynamic
∂ρU h i
+ ∇ · UU = −∇p − g · x∇ρ + ∇ · (µ + µt )(∇U + ∇U> )
∂t
∂ρU
+ ∇ · UU = −∇p − g · x∇ρ + ∇ · (µeff ∇U) + ∇U · ∇µeff
∂t
Note, ∇ρ is zero away from the interface, and VERY large along
the interface.
U = 0
∂p/∂n = 0
∂α/∂n = 0
Inlet
U = U∞
Centerplane: ∂p/∂n = 0
symmetryPlane
1 if z < 0
Top α =
0 otherwise
∂U/∂n = 0 Outlet
p = 0
∂U/∂n = 0
α = 0
p = 0
∂α/∂n = 0
Maki (UofM) Training Session: Ship Resistance 6th OpenFOAM Workshop 9 / 22
simulation.
interFoam
VOF for interface capturing
PISO for pressure velocity coupling
unknowns: z
p_rgh p dynamic pressure
y
p P total pressure (P = p + ρg · x)
Space domain
alpha1 α volume
x fraction
U U velocity vector
phi Sf · Uf velocity flux
rhoPhi Sf · ρf Uf mass flux ∆t t
gh g · xP hydrostaticTime pressure
domain over density at cell center
ghf g · xf Figurehydrostatic
2.1: Discretisationpressure
of the solution over
domain density at face center
P Sf
d N
∂ρU
+ ∇ · UU = −∇p − g · x∇ρ + ∇ · (µeff ∇U) + ∇U · ∇µeff
∂t
in prediction, form linear systems using convection and viscous terms
only:
∂ρU
+ ∇ · UU − ∇ · (µeff ∇U) − ∇U · ∇µeff = 0
∂t
[A]U {U} = {bU }
[A]V {V } = {bV }
[A]W {W } = {bW }
∂ρ −1
φ0 = φ? − g · xf a |Sf |
∂n P,f
∆t
Co = U
∆x
For arbitrary polyhedral finite volume:
U · Sf
Co = ∆t
d · Sf
time: Euler, Courant number restriction leads to small time steps, first
order accuracy is fine for calm-water resistance.
gradient: linear
divergence: upwind to aid in convergence. vanLeer is second-order
away from extrema. limitedLinearV may be less diffusive than
vanLeer
Laplacian: Gauss linear corrected. Second-order, with correction
for non-orthogonal part.
Well used test data. Body fixed and free to sink and trim. SRI
0.08 < F < 0.40
2 × 106 < R < 1 × 107
As it can be seen from Table 4 and 5, the numerical approximations using the CFD solver are in agreement with the
experimental results. Especially the Fine grid computations for Fr# = 0.316 caught 100% convergence with experimental
value.
144K cell coarse grid (Pointwise)
Z
Fp = pndS
ZS
Mp = (xf − xo ) × pndS
ZS
Fv = τ̄¯ · ndS
S
Z
Mv = (xf − xo ) × τ̄¯ · ndS
S