taming openfoam for ship hydrodynamics applications · • one of the test problems for the 2010...

38
Taming OpenFOAM for Ship Hydrodynamics Applications Sung-Eun Kim, Ph. D. Computational Hydromechanics Division (Code 5700) Naval Surface Warfare Center Carderock Division

Upload: hoangminh

Post on 11-Jul-2019

231 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Taming OpenFOAM for Ship Hydrodynamics Applications

Sung-Eun Kim, Ph. D.

Computational Hydromechanics Division (Code 5700)

Naval Surface Warfare Center Carderock Division

Page 2: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Outline• Background

• Target Applications

• Issues

• Examples– Underwater bodies

– Surface ships

– Propulsors

• Concluding remarks

2

Page 3: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Background

• Complex geometry and complex physics (high Re TBL, vortices, multiphysics)

• Increasing emphasis/pressure on delivering engineering solutions to real-world problems in a timely manner.

• High-fidelity of CFD solutions commensurate with computational cost

• We are using several commercial CFD packages and in-house codes.

• Can an open source CFD software be tamed as a production code for industrial applications?

3

Page 4: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

4

Target Applications

• Resistance and propulsion of underwater vehicles and surface ships

• Cavitation on hydrofoils and propulsors• Fluid structure interaction• Maneuvering• Seakeeping

Page 5: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Numerical Issues

• Spatial discretization– Gradients– Interpolation schemes– Advection schemes for interface capturing (volume fraction

transport)• Solution algorithms

– Implicit iterative time-advancement– Non-iterative fractional-step method for high-level simulation of

turbulence (e.g., LES)– Moving body problems - meshing strategy (single-grid, overset

grids, deforming)

n1

Page 6: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Spatial Accuracy on Unstructured Grids

• Drag predictions on an ellipsoidal body using structured and unstructured meshes– Very low profile (form) drag– Hybrid mesh with 500K cells

Page 7: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Evolution of a Leading Commercial CFD Code

CB GradNB Grad NB Grad

+ HORCGrad B + HORC+MUSCL

Page 8: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Heat Transfer in a Duct - Tet Mesh

• Tet vs. Hex

cell-based

node-based

node-based + HORC

Page 9: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Heat Transfer in a Duct - Prism + Tet

cell-based

node-based

node-based + HORC

Page 10: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Physical Modeling Issues

• Turbulence modeling– Wall boundary conditions for turbulent quantities (EVMs and

RSTMs)– Source term linearization– High-order RANS models (EARSM, DRSM)– Dynamic SGS models for LES

• Cavitation modeling– Bubble dynamics modeling – Mass transfer models

Page 11: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

No. of Points: 841,438No. of Tets: 699,851 No. of Prisms: 1,380,128

y+ ≅ 1.0

Body 1 Grid Characteristics (Half Body)ONR Body-1 Results

Page 12: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Longitudinal Distribution of Pressure (Cp) and Skin Friction (Cf) CoefficientONR Body-1 Results

Page 13: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Boundary Layer ProfilesONR Body-1 Results

Page 14: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Series 66 – Drift Angle Study (ONR)

The negative experimental drift angles are believed to be less accurate as the strut was mounted on the side and the body was in the wake of the strutOpenFOAM with the SST turbulence model providing more accurate predictions than our traditional unstructured solver (Tenasi) on the same grids

Page 15: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

SUBOFF Body• Bare hull and fully appended cases• Computations are underway with various meshing and

turbulence modeling strategies

6M cell Hexpress mesh near-wall resolving mesh (y+ ~ 1)

Page 16: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

SUBOFF BodyHexpress Grid - Stern Appendages

Page 17: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

SUBOFF Body - RANS Solutions(ReL = 1.2 x 107)

K-ω EARSM

SST k-ω

U contour at x/L =0.978

Page 18: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Measured Axial velocity contours at propeller plane

KVLCC - Double-Body Tanker

Page 19: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

KVLCC - Nominal Wake Prediction(Kim, 2001)

Predicted axial velocity contours at the propeller plane

Page 20: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

KVLCC2 – Double-Body Tanker Model(Kim et al., 2010, Gothenburg Workshop)

20

Hybrid unstructured mesh SnappyHexMesh

Contour of axial velocity at the propeller plane

Page 21: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Outline• Background

• Target Applications

• Issues

• Examples– Underwater bodies

– Surface ships

– Propulsors

• Concluding remarks

21

Page 22: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Issues with Surface Ships

• Advection scheme for volume fraction is critical for solution accuracy and stability

• A suite of advection schemes (CICSAM, HRIC, MHRIC, interGamma, InterGamma-M) for volume-fraction equation have been implemented and validated.

• Large time-step size for steady or quasi-steady applications

21-Jun-1122

Page 23: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Zalesak’s Rotating Disk

1

0.5

0

Contours of volume fraction after one revolution

Coarse mesh: 400 x 400

21-Jun-1123

Page 24: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

DTMB 5415

• One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010)

• ReL = 1.2 x 107, Fr = 0.28• Computations done for fixed and free sinkage and trim • Two-phase RANS computations on systematically refined hexahedral

grids using combinations of – Advection schemes– Turbulence models

24

Page 25: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

DTMB 5415 – Fixed Sinkage and TrimMesh Dependency

y/L=0.082

Y=0.172

x/LPP

z/L PP

-0.25 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2-0.01

-0.005

0

0.005

0.01 meas.13 Million6 Million3 Million

x/LPP

z/L PP

-0.25 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2-0.01

-0.005

0

0.005

0.01 meas.13 Million6 Million3 Million

Page 26: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

DTMB 5415 – Fixed Sinkage and Trim (UCR1)Impacts of Turbulence Models

y/L=0.082

Y=0.172

x/LPP

z/L PP

-0.25 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2-0.01

-0.005

0

0.005

0.01meas.SSTRKEHRW

x/LPP

z/L PP

-0.25 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2-0.01

-0.005

0

0.005

0.01meas.SSTRKEHRW

Page 27: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

x/LPP

z/L PP

-0.25 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2-0.01

-0.005

0

0.005

0.01

EFD (Longo et al. 2007)6million-cell-SST-HRIC6million-cell-SST-MHRIC

x/L = 0.082

x/LPP

z/L PP

-0.25 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2-0.01

-0.005

0

0.005

0.01

EFD (Longo et al. 2007)6million-cell-SST-HRIC6million-cell-SST-MHRIC

x/L = 0.172

DTMB 5415 – Impacts of Convection Scheme

Page 28: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Parallel Scalability – DTMB 5415

28

Processors

Spee

d-U

p

64 128 192 256 320 384 448 512

64

128

192

256

320

384

448

512

IdealNavyFOAM

NavyFOAM Computational PerformanceParallel Scalability on Harold at ARLUsing Pure MPI for 13 Million Cells

SGI Altix ICE 820010,752 cores @2.8 GHz Intel Nehalem(8 CPUs on a node)32 TB Memory4X DDR Infiniband

All the results shown were run fully-dense;namely, one prcocess per CPU(e.g., 8 processes on a node)

Page 29: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

DTMB 5415

Axial velocity contour at x/L = 0.935

Page 30: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Outline• Background

• Target Applications

• Issues

• Examples– Underwater bodies

– Surface ships

– Propulsors

• Concluding remarks

30

Page 31: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Continuum Approach• Locally homogeneous mixture

formulation (Kim and Brewton, 2008; Kim, 2009)– Phase compositions are represented

by volume-fraction.– Incompressible gas (vapor) & liquid

phases– Implicit time-advancement scheme– Pressure-based projection method

• Mass transfer models– Merkle– Kunz– Schnerr & Sauer

• Validations – Modified NACA-66 foil– Clark-Y hydrofoil– Unsteady sheet/cloud cavity on a

NACA-0015 hydrofoil– Propeller (P4381, P4383, P4990)– Waterjets (AxWJ1, AxWJ2)

31

Page 32: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

Effects of Cavitation Number(α = 8°, σ = 1.0)

32

α = 8°, σ = 1.0 LES result on a 3.3M cell meshSchnerr and Sauer’s mass transfer model

Page 33: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

NACA-0015 HydrofoilLift and Drag

33

σ(Cavitation number)

CL CD0.5 1.0 1.5 2.0 2.50.0

0.2

0.4

0.6

0.8

1.0

0.00

0.05

0.10

0.15

CD(exp.)CL(exp.)RANS - CDRANS - CLDES - CDDES - CLLES - CDLES - CL

σ/2αfc

/U

1.0 2.0 3.0 4.0 5.0 6.0 7.00.0

0.2

0.4

0.6

0.8

1.0

1.2Measured (Obernach)Measured (SAFL - 7 ppm)Measured (SAFL - 13 ppm)Predicted (DES)Predicted (LES)

Mean lift & drag coefficients Shedding frequency

Page 34: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

P4381- Thrust Breakdown at J = 0.889

34

Thrust, ΚΤ Torque, ΚQ

σ= 0.6 σ= 1.0 σ= 1.5

Page 35: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

ONR AxWJ-2 Thrust Breakdown

Unsteady RANS ComputationN = 2000 RPM, Q* = 0.76, σ = 0.362

movie from 36 in tunnel

Page 36: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

ONR AxWJ-2 Cavitation

36

Computation, σ = 0.362

Page 37: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

ONR AxWJ-2 Thrust Breakdown Prediction

Predicted using Wilcox’ k-w model on a 2.2M cell (very coarse) mesh for 360° domain

Page 38: Taming OpenFOAM for Ship Hydrodynamics Applications · • One of the test problems for the 2010 Gothenburg CFD Workshop on Ship Hydrodynamics (Kim et al, 2010) • Re. L = 1.2 x

38

Concluding Remarks

• We have been evaluating OpenFOAM for years, and benchmarking it against other CFD codes.

• A number of projects have been successfully carried out using OpenFOAM at NSWCCD for naval applications.

• Language (C++) barrier and object-oriented programming (OOP) make the learning curve stiff.

• Not all implementations in OpenFOAM are verified and validated.

Thank you!