example simulations in openfoampowerlab.fsb.hr/ped/kturbo/openfoam/workshopzagrebjan...example...

26
Example Simulations in OpenFOAM Hrvoje Jasak [email protected] Wikki Ltd, United Kingdom FSB, University of Zagreb, Croatia 18/Nov/2005 Example Simulations in OpenFOAM – p.1/26

Upload: others

Post on 18-Apr-2020

4 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Example Simulationsin OpenFOAM

Hrvoje Jasak

[email protected]

Wikki Ltd, United Kingdom

FSB, University of Zagreb, Croatia

18/Nov/2005

Example Simulations in OpenFOAM – p.1/26

Page 2: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Outline

Objective

• Present an overview of most interestingsimulations performed using OpenFOAM

Notes

• This is only a part of the OpenFOAM work!

• Chosen for (personal) interest and illustrationof the range of capabilities

• Results from others (with my involvement)

Example Simulations in OpenFOAM – p.2/26

Page 3: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Large Eddy Simulation

LES and Aeroacoustics

• 3-D and transient; sufficient mesh resolution

• Sub-grid scale model

• Special inlet and wall conditions

Example Simulations in OpenFOAM – p.3/26

Page 4: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Aeroacoustics

Aeroacoustics Post-Processing

• Store time-pressure trace for selectedboundaries

• Aero-acoustic post-processing on sources ofnoise for comparison with experimental data

Example Simulations in OpenFOAM – p.4/26

Page 5: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Droplet Splash

Two-phase incompressible system

∂γ

∂t+ ∇•(uγ) = 0

∇•u = 0

∂ρu

∂t+ ∇•(ρuu) −∇•σ = −∇p + ρf + σκ∇γ

u = γu1 + (1 − γ)u2

µ, ρ = γρ1 + (1 − γ)ρ2

Example Simulations in OpenFOAM – p.5/26

Page 6: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Droplet Splash

Droplet impact into a wall film, 1.3 million cells

Example Simulations in OpenFOAM – p.6/26

Page 7: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Droplet Splash

Droplet impact into a wall film, cutting plane

Example Simulations in OpenFOAM – p.7/26

Page 8: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Capillary Jet

Ink-jet printer nozzle, 20µm diameter

• Pulsating flow, umean = 20m/s

• Tuning frequency (50kHz) and amplitude (5%)

Example Simulations in OpenFOAM – p.8/26

Page 9: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Free Surface LES

LES of a Diesel Injector

• d = 0.2mm, high velocity and surface tension

• Mean injection velocity: 460m/s

• Diesel fuel injected into air, 5.2MPa, 900K

• Turbulent and subsonic flow, no cavitation◦ 1-equation LES model with no free surface

correction◦ Fully developed pipe flow inlet

Example Simulations in OpenFOAM – p.9/26

Page 10: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Free Surface LES

• Mesh size: 1.2 to 8 million CVs, aggressivelocal refinement, 50k time-steps

• 6µs initiation time, 20µs averaging time

Example Simulations in OpenFOAM – p.10/26

Page 11: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Ice Modelling

• Ice represented as a 2-D continuum: (h, A)

• Ice interaction model: Hibler 1979

σ = 2ηε + I (ζ − η)

[

tr(ε) −P (h,A)

2

]

ζ =P (h,A)

2∆; η =

ζ

e2

∆ =

(

1 −1

e2

)

tr(ε)2 +2

e2ε : ε

Example Simulations in OpenFOAM – p.11/26

Page 12: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Ice Modelling

• Wind + ocean current forcing

• Coriolis force, mean water surface gradient

• Simple melting and freezing model

Example Simulations in OpenFOAM – p.12/26

Page 13: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Biscuit Baking Model

Physical Model of the Baking Process

• Complex heat and mass transfer model withstress analysis and large deformations

• Conservation of liquid water, vapour and air,simplified chemical reactions

Enthalpy distribution, t = 60, 600 and 1200 s

Example Simulations in OpenFOAM – p.13/26

Page 14: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Diesel Combustion

Diesel Combustion in Scania D-12 Engine

• 1/8 sector with 75 % load and n-heptane fuel

• RANS, k − ǫ turbulence model, simplified5-species chemistry and 1 reaction,Chalmers PaSR combustion model

• Temperature on the cutting plane

• Spray droplets coloured with temperature

Example Simulations in OpenFOAM – p.14/26

Page 15: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Diesel Combustion

Diesel Combustion in Scania D-12 Engine

Example Simulations in OpenFOAM – p.15/26

Page 16: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Lagrangian Particles

Hour-Glass: same tracking, different particles

Example Simulations in OpenFOAM – p.16/26

Page 17: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Contact Stress

Contact Plasticity and Crack Propagation

• Plastic sample with initiated crack

• 3-body contact problem, including contactstresses: contact detection is available

• Slow impact corresponds to static test

• Crack propagates on the symmetry plane:implemented as a damage model

Example Simulations in OpenFOAM – p.17/26

Page 18: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Contact Stress

Static Charpy Test, Plastic Sample, 1 m/s

Example Simulations in OpenFOAM – p.18/26

Page 19: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Contact Stress

Dynamic Charpy Test, Plastic Sample, 10 m/s

Example Simulations in OpenFOAM – p.19/26

Page 20: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Fluid-Solid Coupling

Coupled Fluid Flow and Stress AnalysisSimulations

• Loose coupling: Fluid and solid solved in turn

• Close coupling: Solve solid and fluid together:same equation or matrix

Example Simulations in OpenFOAM – p.20/26

Page 21: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Fluid-Solid Coupling

Pipeline failure: crack propagation and leakage

Example Simulations in OpenFOAM – p.21/26

Page 22: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Fluid-Solid Coupling

Enlarged deformation of the pipe

Example Simulations in OpenFOAM – p.22/26

Page 23: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Surface Tracking

rF

vF

vb = −vF

y

x

y′

x′

aF

o′SA

SB

o

Free

surface

Free surface tracking

• 2 phases = 2 meshes

• Mesh adjusted forinterface motion

• Surfactant transport

Air-water system

• 2-D: rb = 0.75 mm

• 3-D: rb = 1 mm

Example Simulations in OpenFOAM – p.23/26

Page 24: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Surface Tracking

Clean surface

Pollution by surfactant chemicals

Example Simulations in OpenFOAM – p.24/26

Page 25: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Surface Tracking

Complex coupling problem: FVM flow solver +

FEM mesh motion + FAM surfactant transportExample Simulations in OpenFOAM – p.25/26

Page 26: Example Simulations in OpenFOAMpowerlab.fsb.hr/ped/kturbo/openfoam/WorkshopZagrebJan...Example Simulations in OpenFOAM Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd, United Kingdom FSB,

Acknowledgements

Acknowledgements and Further Info

• LES and aeroacoustics: Eugene de Villiers, Icon-CG & Imperial College

• Free surface: Hrvoje Jasak, Wikki Ltd.

• Diesel injection LES: Eugene de Villiers, Icon-CG & Imperial College

• Contact stress: V. Tropša, A. Ivankovic, University College Dublin; H. Jasak

• Ice modelling: Jenny Hutchings, University of Alaska & UCL London; H. Jasak

• Biscuit baking model: Hrvoje Jasak, Wikki Ltd.

• FSI: V. Tropša, K. Karac, A. Ivankovic, UC Dublin & Imperial College

• Diesel combustion: Niklas Nordin, Chalmers University & Scania, H. Weller

• Surface tracking and automatic mesh motion: Ž. Tukovic, University of Zagreb

Example Simulations in OpenFOAM – p.26/26