46
New insights from Navier-Stokes modeling of free surface flows J. Kristian Sveen [email protected] Dept. of Mathematics, University of Oslo New insights from N-S – p.1/38

New insights from Navier-Stokes modeling of free surface …folk.uio.no/jks/talk1.pdf · New insights from Navier-Stokes modeling of free surface ... The free surface movement is

Embed Size (px)

Citation preview

New insights from Navier-Stokesmodeling of free surface flows

J. Kristian Sveen

[email protected]

Dept. of Mathematics, University of Oslo

New insights from N-S – p.1/38

Overview

Navier-Stokes equation

Define a free surface

How to model a free surface numericallyDifferent models reviewed (MAC, VOF, Level-set,SPH ++)

Examples � new insight?Commercial and “academic” codes

New insights from N-S – p.2/38

Navier-Stokes equation

Incompressible fluid: ��� � � ���

� �� �� � � � �

� ��

�� � � � ��

No mass flux across surface:

���� �� � � � ��� on surface

Fluid

New insights from N-S – p.3/38

Free surfaces

Computational domain discretized

Air above neglected - calculations only in fluid domain

Fluid

Floryan and Rasmussen [1989], Scardovelli and Zaleski[1999], Tsai and Yue [1996]

New insights from N-S – p.4/38

Free surfaces

Computational domain discretized

Air above neglected - calculations only in fluid domain

New insights from N-S – p.4/38

Free surfaces

Computational domain discretized

Air above neglected - calculations only in fluid domain

New insights from N-S – p.4/38

Free surfaces

interface crosses grid

New insights from N-S – p.5/38

Free surfaces - moving grid

Lagrangian grid aligned w surface

new problem: reconnecting of surface (ex: breakingwave) - large deformations to grid

New insights from N-S – p.6/38

What has been done?

Huge amount of work done fortwo phase flowsrigid boundaries

less for free surfacesOpen channel flows, turbulenceBreaking waves, tsunamis etcDrops and bubbles

New insights from N-S, Free surface flows – p.7/38

Solving N-S

Yacht design for Americas Cup (using Fluent + academiccode (Princeton)):

http://alinghi.epfl.ch

New insights from N-S, Free surface flows – p.8/38

Tracking the free surface

The free surface movement is not explicit in the N-Sequations

Surface tracked via other approach“Marker And Cell” (google: 575 hits)“Volume-Of-Fluid” (google: 12.400 hits)“Direct Numerical Simulation” (google: 11.700)“level-set”, front-tracking (google: 77.400)combinations of the above

New insights from N-S, Free surface flows – p.9/38

A note on boundary conditions

The implementation of free surface boundary conditionsplay a crucial role in the numerical implementation

Chen et al. [1995] - discussion over symmetry:

SMAC SM New version

Gibou et al. [2002]New insights from N-S, Free surface flows – p.10/38

How to model the free surface

New insights from N-S, Free surface flows – p.11/38

Methods

Marker methods

Volume-of-Fluid

Level-set

Smoothed Particle Hydrodynamics (SPH)

Direct Numerical Simulations (DNS)

Lattice (-gas, -Bolzman) models + quick note onCellular Automata

New insights from N-S, Free surface flows – p.12/38

Marker methods

New insights from N-S, Free surface flows – p.13/38

Surface Marker techniques

Overview

Harlow and Welch [1965]

Massless particles introduced in the fluid

Particles transported according to the velocity field andtracked as part of the solution procedure

Cells with markers are fluid cells, fluid cells borderingempty cells � surface cells.

Extension by Chen et al. [1997] - track only particlesnear the surface

Recent applications: Bidoae et al. [2003],Popinet and Zaleski [2002], Christensen [2001]

New insights from N-S, surface marker – p.14/38

Marker techniques - basics

MAC SM

New insights from N-S, surface marker – p.15/38

Marker Techniques - example

Bidoae et al. [2003] - results used to estimate forces onbuildings subject to Tsunami-impact.

+ investigate different damping mechanisms via breakwaters

New insights from N-S, surface marker – p.16/38

Volume-of-Fluid methods

New insights from N-S, surface marker – p.17/38

Volume-Of-Fluid methods

Idea: introduce scalar defining the filling degree of eachcell

A value of 1 indicates a full cell and 0 that the cell isvoid

Integrated/moved in time by solving a transportequation

Hirt and Nichols [1981], Floryan and Rasmussen [1989] and

Gueyffier et al. [1998], Scardovelli and Zaleski [1999]

New insights from N-S, VOF – p.18/38

VOF

Combined w markers: Aulisa et al. [2003] and

“baby-cells” (cells within cells) by Kim and Lee [2003]

Widely used in engineering - Commercial codes suchas CFX and Fluent

New insights from N-S, VOF – p.19/38

VOF - example

Model of oilrig in a wave-tank

wavemaker zoom

courtesy of fluent

Problem: code not verified for this setup

New insights from N-S, VOF – p.20/38

Level-set methods

New insights from N-S, VOF – p.21/38

Level-set

Osher and Sethian [1988], Osher and Fedkiw [2001],Sethian [2001], Osher and Fedkiw [2003],Sethian and Smereka [2003]

Applications and extensions, see forexample Iafrati and Campana [2003], Bourlioux [1995],Sussman and Smereka [1997], Sussman and Puckett[2000], Sharif et al. [2001], Tsai [2002]

Also in combinations w. markers or VOF

New insights from N-S, level-set – p.22/38

Level-set

Idea: introduce scalar

which is a distance functionshortest distance in the domain to the fluid surfaceimplicit representation of the interface

integrated/moved in time by solving a transportequation

Problem: Level-set methods do not conserve mass

New insights from N-S, level-set – p.23/38

Level-set, explicit surface

Following Osher and Fedkiw [2003]

In one spatial dimension, divide the real line into threedistinct pieces:

1−1 8−8

We refer to

� � � � � �

as the inside portion and the rest asbeing outside

The two points� � � � � �

can now be called an interfaceexplicit representation

New insights from N-S, level-set – p.24/38

Level-set, implicit surface

Implicit representation - we define the interface as anisocontour of some function

The zero isocontour of

� �

�� � �� � �

is exactly

� � � � � �

New insights from N-S, level-set – p.25/38

Hybrid particle level-set method

Foster and Fedkiw [2001], Enright et al. [2002, 2003]

combines “surface marker”-technique with level-set.

Solves the problem of mass conservation

(...+ view in real time)

New insights from N-S, level-set – p.26/38

Level-set - new insights

Frequent use in special effects in movies

In use in fields such as: Imaging, vision, graphics,computational mechanics

Science (fluid mech): codes verified againstexperiments, theory and other numerics

Long time evolution often neglectedTypically only one test-case and few parametersconsidered

Promising results (as all new methods tend to give)

New insights from N-S, level-set – p.27/38

Smoothed particle hydrodynamics

New insights from N-S, meshless – p.28/38

Smoothed Particle Hydrodynamics

Overview

Introduced by Gingold and Monaghan [1977]

Originally used to model astrophysical processes

Free surface flows by Monaghan [1994]

New insights from N-S, Meshless, SPH – p.29/38

SPH - Idea

Continuum approximated by a finite number of particles

Properties of a fluid at any point estimated by taking aweighted average over a surrounding volume

� �� �� �� �� �� �� �� �

2h

i

New insights from N-S, Meshless, SPH – p.30/38

SPH - basics

Mesh-free method

Particles carry all computational information

Field variables found by averaging (smoothing) fieldvariables over region of interest

Spatial derivatives of field variable � interpolatingformula analytically differentiated

New insights from N-S, Meshless, SPH – p.31/38

SPH - new insights?

Large amount of publications - few on free surfaces.

Courtesy of Fontaine [2000] (see also Monaghan [1994])

New insights from N-S, Meshless, SPH – p.32/38

Direct Numerical Simulation

New insights from N-S, Meshless, SPH – p.33/38

Direct Numerical Simulation

Huge amount of work done in the absence of freesurface (primarily on turbulence)

Free surface turbulence:Shen et al. [1999, 2002, 2003], Pan and Banerjee[1995], Fulgosi et al. [2003]

Typically related to modeling drag on ships andoffshore structures

Multiphase flow: see for example Tryggvason et al.[2001] - (not free surface)

New insights from N-S, DNS modelling – p.34/38

DNS - example

Shen et al. [1999]:

surface layer of a shear flow

linearized surface (no-slip condition)- no waves

New insights from N-S, DNS modelling – p.35/38

What have we learned?

New insights from N-S, DNS modelling – p.36/38

Summary

Large number of publications on numerical methods,comparatively few on “new insights”

Codes typically tested on a few “special cases”The “broken-dam” syndrome

Long time evolution often neglected

Only a few parameters checked

Good models for surface waves?

New insights from N-S, DNS modelling – p.37/38

Summary contd

Increased use of “Physical Modeling” in movies andcomputer games to create “real” behaviour

Physical modeling in animated movies:

Foster and Fedkiw [2001] New insights from N-S, DNS modelling – p.38/38

References

E. Aulisa, S. Manservisi, and R. Scardovelli. A mixedmarkers and volume-of-fluid method for the recon-struction and advection of interfaces in two-phase andfree-boundary flow. J. Comp. Phys., 188:611–639,2003.

R. Bidoae, R. M. Ciobotaru, and P. E. Raad. An eulerian-lagrangian marker and micro cell simulation methodfor fluid interaction with solid/porous bodies. In IU-TAM - symposium on Integrated Modeling of FullyCoupled Fluid-Structure Interactions Using Analysis,Computations, and Experiments, 1 June-6 June, 2003.

A Bourlioux. A coupled level-set volume-of-fluid solverfor tracking material surfaces. In Proc. Int. Symp. Com-put. Fluid Dyn., 6th, Lake Tahoe, pages 15–25, 1995.

S. Chen, D. B. Johnson, and P. E. Raad. Velocity bound-ary conditions for the simulation of free surface flow.J. Comp. Phys., 116:262–276, 1995.

S. Chen, D. B. Johnson, P. E. Raad, and D. Fadda. Thesurface marker and micro cell method. Int. J. Numer.Meth. Fluids, 25:749–778, 1997.

38-1

E. D Christensen. Large eddy simulation of breakingwaves. Coastal Eng., 42:53–86, 2001.

D. Enright, R. Fedkiw, J. Ferziger, and I. Mitchell. Ahybrid particle level set method for improved interfacecapturing. J. Comput. Phys., 183:83–116, 2002.

D. Enright, R. Fedkiw, J. Ferziger, and I. Mitchell. Usingthe particle level set method and a second order accu-rate pressure boundary condition for free surface flows.In 4th ASME JSME Joint Fluids Engineering Confer-ence, Honolulu, Hawaii USA, July 6-11, 2003.

J. M. Floryan and H. Rasmussen. Numerical methods forviscous flows with moving boundaries. Appl. Mech.Rev, 42:323–341, 1989.

E. Fontaine. On the smoothed particle hydrodynamicsto model extreme waves and their interaction with astructure. Proceedings of ROGUE WAVES 2000, 2000.

N. Foster and R. Fedkiw. Practical animation of liquids.In Proceedings of the 28th annual conference on Com-puter graphics and interactive techniques, pages 23–30. ACM Press, 2001.

M. Fulgosi, D Lakehal, S. Banerjee, and V. De Angelis.Direct numerical simulation of turbulence in a sheared

38-1

air-water flow with a deformable interface. Acceptedfor publication in J. Fluid Mech, 2003.

F. Gibou, R. Fedkiw, L.-T. Cheng, and M. Kang. Asecond order accurate symmetric discretization of thepoisson equation on irregular domains. J. Comput.Phys., 176:205–227, 2002.

R. A. Gingold and J. J. Monaghan. Smoothed particle hy-drodnamics: theory and application to noon-sphericalstars. Mon. Not. R. Astron. Soc., 181:375–389, 1977.

D. Gueyffier, J. Li, R. Scardovelli, and S. Zaleski.Volume-of-fluid interface tracking with smoothed sur-face stress methods for three dimensional flows. J.Comput. Phys., 152:423–456, 1998.

F. H. Harlow and J. E. Welch. Numerical calculation oftime-dependent viscous incompressible flow of fluidwith free surface. Phys. Fluids, 8(12):2182–2189,1965.

C. W. Hirt and B. D Nichols. Volume of fluid (vof)method for the dynamics of free boundaries. J. Com-put. Phys., 39:201–225, 1981.

A Iafrati and E. F. Campana. A domain decompositionapproach to compute wave breaking (wave breakingflows). Int. J. Numer. Meth. Fluids, 41:419–445, 2003.

38-1

M. S. Kim and W. I. Lee. A new vof-based numericalscheme for the simulation of fluid flow with free sur-face. part i: New free surface tracking algorithm andit’s verification. Int. J. Num. Meth. Fluids, 42:765–790,2003.

J. J. Monaghan. Simulating free surface flows with sph.J. Comput. Phys., 110:399–406, 1994.

S. Osher and R. Fedkiw. Level set methods: an overviewand some recent results. J. Comput. Phys., 169:463–502, 2001.

S. Osher and R. Fedkiw. The Level Set Method and Dy-namic Implicit Surfaces. Springer-Verlag, New York,2003.

S. Osher and J. Sethian. Fronts propagating with curva-ture dependent speed: Algorithms based on hamilton-jacobi formulations. J. Comput. Phys., 79:12–49, 1988.

Y Pan and S Banerjee. A numerical study of free surfaceturbulence in channel flow. Phys. Fluids, 7:1649–1664,1995.

S. Popinet and S. Zaleski. Bubble collapse near a solidboundary: a numerical study of the influence of viscos-ity. J. Fluid Mech., 464:137–163, 2002.

38-1

R. Scardovelli and S. Zaleski. Direct numerical simu-lation of free-surface and interfacial flow. Annu. Rev.Fluid Mech., 31:567–603, 1999.

J. A. Sethian. Evolution, implementation and applicationof level-set and fast marching methods for advancingfronts. J. Comp. Phys., 169:503–555, 2001.

J. A. Sethian and P. Smereka. Level-set methods for fluidinterfaces. Annu. Rev. Fluid Mech., 35:341–372, 2003.

N. H. Sharif, N.-E. Wiberg, and M. Levenstam. Freesurface flow through rock-fill dams analyzed by femwith level set approach. Comp. Mech., 27:233–243,2001.

L. Shen, X. Zhang, and D. K. P. Yue. Free surface tur-bulent wake behind towed ship models: experimentalmeasurements, stability analysis and direct numericalsimulations. J. Fluid Mech., 469:89–120, 2002.

L. Shen, X. Zhang, D. K. P. Yue, and M. S. Triantafyl-lou. The surface layer for free-surface turbulent flows.J. Fluid Mech., 386:167–212, 1999.

L. Shen, X. Zhang, D. K. P. Yue, and M. S. Triantafyl-lou. Turbulent flow over a flexible wall undergoing astreamwise wave motion. J. Fluid Mech., 484:197–221, 2003.

38-1

M Sussman and E. G. Puckett. A coupled level set andvolume-of-fluid method for computing 3d and axisym-metric incompressible two-phase flows. Journal ofComputational Physics, 162:310–337, 2000.

M Sussman and P. Smereka. Axisymmetric free bound-ary problems. J. Fluid Mech., 341:269–294, 1997.

G. Tryggvason, B. Bunner, A. Esmaeli, D. Juric, N. Al-Rawahi, W. Tauber, Han. J, S. Nas, and Y.-J. Jan. Afront-tracking method for the computations of multi-phase flows. J. Comp. Phys, 169:708–759, 2001.

W-t. Tsai and D. K. P. Yue. Computation of nonlinearfree-surface flows. Annu. Rev. Fluid Mech., 28:249–278, 1996.

Y.-h. R. Tsai. Rapid and accurate computation of the dis-tance function using grids. Journal of ComputationalPhysics, 178:175–195, 2002.

38-1