Tutorial Ship Resistance Analysis - FOAMacademy€¦ · Tutorial Ship Resistance Analysis Author:...
Transcript of Tutorial Ship Resistance Analysis - FOAMacademy€¦ · Tutorial Ship Resistance Analysis Author:...
Tutorial Ship ResistanceAnalysis
Hannes [email protected]
GOFUN2017
c©Copyright silentdynamics GmbHGOFUN2017 1/23
ContentsOverview | Single Phase | Two Phase | Efficiency Improvements |
c©Copyright silentdynamics GmbHGOFUN2017 2/23
OverviewOverview | Single Phase | Two Phase | Efficiency Improvements |
At small Froude Numbers and low wave making resistance:Simulation assuming a flat water surface
I enable single phase simulationI stationary solverI faster than two-phase simulation⇒ simpleFoam solver
c©Copyright silentdynamics GmbHGOFUN2017 3/23
OverviewOverview | Single Phase | Two Phase | Efficiency Improvements |
Approximate consideration of free surface in single phasesimulation possible:potentialFreeSurfaceFoam
I through special boundary condition “waveSurfacePressure”
c©Copyright silentdynamics GmbHGOFUN2017 4/23
OverviewOverview | Single Phase | Two Phase | Efficiency Improvements |
If wave making resistance cannot be neglected:Resolution of water surface
I two-phase simulation (water + air)I only time resolved solvers in OpenFOAM⇒ interFoam
I for steady problems: quasi-steady approach with localtimestepping⇒ LTSInterFoam / localEuler
c©Copyright silentdynamics GmbHGOFUN2017 5/23
OverviewOverview | Single Phase | Two Phase | Efficiency Improvements |
If trim and sinkage is freely changing and needs to be determined:Resolution of water surface + mesh deformation
I two-phase simulation (water + air)I only time resolved solvers in OpenFOAM⇒ interDyMFoam
c©Copyright silentdynamics GmbHGOFUN2017 6/23
Case Setup for simpleFoamOverview | Single Phase | Two Phase | Efficiency Improvements |
Domain for single-phase simulation
c©Copyright silentdynamics GmbHGOFUN2017 7/23
MeshingOverview | Single Phase | Two Phase | Efficiency Improvements |
1. create template mesh using blockMesh2. setup snappyHexMesh3. run snappyHexMesh4. setup solver, BCs5. run solver6. postprocessing
c©Copyright silentdynamics GmbHGOFUN2017 8/23
Extract Wake Field for PropellerOverview | Single Phase | Two Phase | Efficiency Improvements |
Example post processing: extract wake field for propeller designI Method 1
1. using tool sample2. star-shaped pattern of multiple line sampleSets
I Method 2I using ParaViewI cutting plane
c©Copyright silentdynamics GmbHGOFUN2017 9/23
Wake FieldOverview | Single Phase | Two Phase | Efficiency Improvements |
Propeller location: ~p = (0.17 0 − 0.21)T , R = 0.11. Slice Filter: Origin ~p, Normal~ex2. Calculator Filter: Result “R”, Expression“sqrt((coordsX-0.17)^2+coordsY^2+(coordsZ+0.21)^2)”
3. Threshold Filter: “R” between 0 and 0.14. Calculator Filter: Mode “Cell Data”, Result “wLocal”, Expression“(2.196+U_X)/2.196”
5. Integrate Variables Filter: Field Association “Cell Data”6. Calculator Filter: Mode “Cell Data”, Result “wMean”, Expression“wLocal/Area”
c©Copyright silentdynamics GmbHGOFUN2017 10/23
Wake FieldOverview | Single Phase | Two Phase | Efficiency Improvements |
c©Copyright silentdynamics GmbHGOFUN2017 11/23
Two Phase ModellingOverview | Single Phase | Two Phase | Efficiency Improvements |
Volume-of-Fluid method (VOF)I volume fraction α
ρ = αρw + (1− α)ρLν = ανw + (1− α)νL
I transport of volume fraction∂α
∂t+∇ · (α~u) = 0
c©Copyright silentdynamics GmbHGOFUN2017 12/23
VOFOverview | Single Phase | Two Phase | Efficiency Improvements |
I volume fraction is not continuousI problem: numerical simulation, such that
I interface stays sharp and is not excessively smearedI solution remains stableI spurious velocities at boundary are avoidedI mass conservation is fulfilled
c©Copyright silentdynamics GmbHGOFUN2017 13/23
VOF in OpenFOAMOverview | Single Phase | Two Phase | Efficiency Improvements |
Solution of VOF equation in OpenFOAMI sharpening of interface by additional compressive term
∂α
∂t+∇ · (α~u) +∇ · (α~uc) = 0
I time integration my MULES
c©Copyright silentdynamics GmbHGOFUN2017 14/23
VOF in OpenFOAMOverview | Single Phase | Two Phase | Efficiency Improvements |
For steady state problems:local time stepping approach
I spatially varying time step sizeI as large as possible according to stability criterionI unphysical, but convergent at infinite timeI requires spatial smoothing of time step size
c©Copyright silentdynamics GmbHGOFUN2017 15/23
Case Setup for interFoamOverview | Single Phase | Two Phase | Efficiency Improvements |
Domain for two-phase simulation
c©Copyright silentdynamics GmbHGOFUN2017 16/23
BCs for αOverview | Single Phase | Two Phase | Efficiency Improvements |
I walls:type zeroGradient;
I inlet: specification if incoming water level necessarytype fixedValue;
I outlet: extrapolation from interiortype zeroGradient;
c©Copyright silentdynamics GmbHGOFUN2017 17/23
BCs for PressureOverview | Single Phase | Two Phase | Efficiency Improvements |
interFoam calculates with modified pressure prgh = p− ρgh(with h = ~x ·~g/|~g| − href )
I walls:type fixedFluxPressure;
I inlet with prescribed velocitytype fixedFluxPressure;
I outlet (water surface needs to be aligned with h=0)type fixedValue;
value uniform 0;
c©Copyright silentdynamics GmbHGOFUN2017 18/23
Two Phase: InitialisationOverview | Single Phase | Two Phase | Efficiency Improvements |
I α fields needs to be initialised1 in water0 in air
I tool setFields
c©Copyright silentdynamics GmbHGOFUN2017 19/23
Steady-State Two-Phase SolverOverview | Single Phase | Two Phase | Efficiency Improvements |
Current development: steady-state VOF solver
I considerable fasterconvergence
I same accuracy
c©Copyright silentdynamics GmbHGOFUN2017 20/23
Insight Automated WorkflowsOverview | Single Phase | Two Phase | Efficiency Improvements |
I different automatedworkflows available
I single-phaseI two-phaseI dynamic mesh
c©Copyright silentdynamics GmbHGOFUN2017 21/23
Insight Automated Ship Resistance AnalysisOverview | Single Phase | Two Phase | Efficiency Improvements |
I most parametersneed not to betouched
I only some required(red)
c©Copyright silentdynamics GmbHGOFUN2017 22/23
Insight Automated Ship Resistance AnalysisOverview | Single Phase | Two Phase | Efficiency Improvements |
I most parametersneed not to betouched
I only some required(red)
c©Copyright silentdynamics GmbHGOFUN2017 23/23
EndOverview | Single Phase | Two Phase | Efficiency Improvements |
Thank you for your attention!
Dr.-Ing. Hannes KrogerEmail: [email protected].: +49 381 36 77 98 53
http://silentdynamics.de
http://sourceforge.net/projects/insightcae
c©Copyright silentdynamics GmbHGOFUN2017 24/23