Free Surface Flow Simulations - POWERLAB -...
Transcript of Free Surface Flow Simulations - POWERLAB -...
![Page 1: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/1.jpg)
Free Surface FlowSimulations
Hrvoje Jasak
Wikki Ltd. United Kingdom
11/Jan/2005
Free Surface Flow Simulations – p.1/26
![Page 2: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/2.jpg)
Outline
Objective
• Present two numerical modelling approachesfor free surface flows
Topics
• Surface tracking method
• Surface capturing method
• Implementation in FOAM
• Examples: bubble DNS and jet breakup LES
Free Surface Flow Simulations – p.2/26
![Page 3: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/3.jpg)
Background
Why free surface flows?
• Large number of industrial interests:◦ Liquid sloshing in LNG tankers◦ Chemical and food industry◦ Diesel injectors, atomisation, droplet-wall
interaction, cavitation◦ Ink-jets and similar devices
• Complex physics = demanding models
• Pretty pictures!
Free Surface Flow Simulations – p.3/26
![Page 4: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/4.jpg)
Mathematical Model
Two fluids with a sharp interface
• Two fluids = two continua◦ Free surface represented by a boundary◦ Compatibility condition + mesh motion
• Single continuum with a jump in properties:◦ Step-change for density, viscosity◦ How to deal with surface effects:
free surface = Dirac function
Free Surface Flow Simulations – p.4/26
![Page 5: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/5.jpg)
Free Surface
Free surface effect
• Moving; position part of solution
• No mass flux through surface
• Momentum compatibility (normal + tangential)
• Pressure jump (surface tension), turbulence?
Description of the free surface depends on the
selected modelling framework
Free Surface Flow Simulations – p.5/26
![Page 6: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/6.jpg)
Surface Tracking Model
Two-fluid approach
• Separate mesh for each phase
• Motion obtained from boundary conditions
• Mesh adjusted for the motion of free surface
• Can handle only one phase: light fluid can beomitted from simulation
Free Surface Flow Simulations – p.6/26
![Page 7: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/7.jpg)
Solution Algorithm
Fluid flow
• SIMPLE-based segregated FVM fluid flowsolver with mesh motion
• Double boundary condition on free surface◦ Fixed pressure + position compatibility◦ No mass flux through surface
• Compatibility in tangential velocity
• Transfer pressure/position between phasesand adjust mesh for zero mass flux
Free Surface Flow Simulations – p.7/26
![Page 8: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/8.jpg)
Automatic Mesh Motion
Automatic moving mesh
• Need to determine vertex positions givenboundary vertex motion
• Moving mesh solver in FOAM◦ Formulation guarantees mesh validity◦ (Vertex-based) Finite Element solver for
polyhedral meshes◦ Solving Laplace equation for vertex motion◦ Variable diffusivity controls mesh quality
Free Surface Flow Simulations – p.8/26
![Page 9: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/9.jpg)
Surface Tension
Handling surface tension
• Specifies pressure jump on free surface
• Depends on local curvature and coefficient σ
• Curvature calculated from vertex position
• σ may depend on surfactant concentration◦ Variable σ significantly changes behaviour◦ Solving species transport on a 2-D curved
surface in 3-D
Free Surface Flow Simulations – p.9/26
![Page 10: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/10.jpg)
Example: Hydrofoil
• Flow coming in from left
• Mesh lines coloured by pressure
Free Surface Flow Simulations – p.10/26
![Page 11: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/11.jpg)
Example: Bubble
FVM fluid flow + automatic mesh motion (FEM)+ Finite Area Method for surfactant transport
Free Surface Flow Simulations – p.11/26
![Page 12: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/12.jpg)
Surface Tracking Model
Advantages
• Precise modelling of free surface◦ Sharp interface◦ Compatibility through boundary conditions
• Can solve extremely high surface tension
Drawbacks
• No change in interface topology!
• Problems for low density ratio
Free Surface Flow Simulations – p.12/26
![Page 13: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/13.jpg)
Surface Capturing
Single continuum approach
• Both (all) fluids treated as single continuum
• Indicator variable γ determines position ofinterface◦ γ = 0 → air◦ γ = 1 → water◦ 0 < γ < 1 → cell contains interface
• γ defines jump in properties
Free Surface Flow Simulations – p.13/26
![Page 14: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/14.jpg)
Surface Capturing
Single continuum approach
• Interface is not discrete but needs to bereconstructed from γ
• . . . in fact, interface is “distributed”
• Numerics challenge: preserving sharpness ofinterface in solution◦ Volume-of-Fluid: planar reconstruction◦ Compressive differencing◦ Eulerian two-fluid derivation
Free Surface Flow Simulations – p.14/26
![Page 15: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/15.jpg)
p-U Coupling
Flow solver
• Based on segregated PISO solution algorithm
• Using unstructured “staggered” algorithm: cellcentre velocity reconstructed from the fluxes
Implementing surface tension
• Curvature calculation from ∇γ
• Distributed “surface” source in p-equation
• For small droplets, surface tension totallydominates - problematic!
Free Surface Flow Simulations – p.15/26
![Page 16: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/16.jpg)
Surface Tension
Parasitic currents
• Interface compression = noise in ∇γ
Free Surface Flow Simulations – p.16/26
![Page 17: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/17.jpg)
Example: Dam Break
Collapsing column of water
Free Surface Flow Simulations – p.17/26
![Page 18: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/18.jpg)
Example: Bubble
Bubble, surface capturing
Free Surface Flow Simulations – p.18/26
![Page 19: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/19.jpg)
Example: Jet Breakup
LES of a Diesel Injector
• d = 0.2mm, high velocity and surface tension
Free Surface Flow Simulations – p.19/26
![Page 20: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/20.jpg)
Surface Capturing
Advantages
• Natural handling of interface breakup
• Static mesh, efficient simulations
Drawbacks
• Imprecise handling of interfacial properties:parasitic currents, surface tension balance
• Limited density ratio and surface tension
• Always requires all phases in simulation
Free Surface Flow Simulations – p.20/26
![Page 21: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/21.jpg)
FOAM: CCM in C++
FOAM: Field Operation and Manipulation
• Natural language of continuum mechanics:partial differential equations
∂k
∂t+ ∇•(uk) −∇•[(ν + νt)∇k] =
νt
[
1
2(∇u + ∇u
T )
]2
−εo
ko
k
Free Surface Flow Simulations – p.21/26
![Page 22: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/22.jpg)
FOAM: CCM in C++
Objective: Represent equations in software inthe natural language
solve
(
fvm::ddt(k)
+ fvm::div(phi, k)
- fvm::laplacian(nu() + nut, k)
== nut*magSqr(symm(fvc::grad(U)))
- fvm::Sp(epsilon/k, k)
);
Free Surface Flow Simulations – p.22/26
![Page 23: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/23.jpg)
FOAM: CCM in C++
Object Software representation C++ Class
Space and time Mesh + time (database) polyMesh, time
Tensor (List of) numbers + algebra vector, tensor
Field List of values Field
Boundary condition Values + condition patchField
Geometric field Field + boundary conditions geometricField
Field algebra + − ∗ / tr(), sin(), exp() . . . field operators
Interpolation Differencing schemes interpolation
Differentiation ddt, div, grad, curl fvc, fec
Matrix Matrix coefficients lduMatrix
Discretisation ddt, d2dt2, div, laplacian fvm, fem, fam
Model library Library turbulenceModel
Application main() –
Free Surface Flow Simulations – p.23/26
![Page 24: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/24.jpg)
FOAM: CCM in C++
Main characteristics
• Wide area of applications: all of CCM!
• Shared tools and code re-use
Versatility
• Unstructured meshes, automatic meshmotion + topological changes
• Finite Volume (2nd and 4th order), FiniteElement and Finite Area solvers
• Efficient: massive parallelism
Free Surface Flow Simulations – p.24/26
![Page 25: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/25.jpg)
Summary
Summary
• Presented two approaches to free surfaceflow simulations◦ Surface tracking: mesh deformation◦ Surface capturing: indicator variable
• Methods are complementary; choice dependson the problem under consideration
• FOAM Implementation: easy experimentingwith numerics and algorithms
Free Surface Flow Simulations – p.25/26
![Page 26: Free Surface Flow Simulations - POWERLAB - OnLinepowerlab.fsb.hr/ped/kturbo/OpenFOAM/slides/UniDarmstadt_11Jan2005.pdf · Free Surface Free surface effect Moving; position part of](https://reader030.fdocuments.in/reader030/viewer/2022040400/5e6e7cc1c4db8038bc3330e5/html5/thumbnails/26.jpg)
Acknowledgements
Acknowledgements
• Surface tracking simulations: Zeljko Tukovic, FSB Zagreb
• Bubble DNS, surface capturing: Dr. Henrik Rusche
• Spray breakup: Eugene de Villiers, Imperial College
• Free surface algorithm development contributions: Dr. Onno Ubbink, Henry Weller
Foam and OpenFOAM are released under GPL: http://www.openfoam.org
Free Surface Flow Simulations – p.26/26