Professional Documents
Culture Documents
Version 01/12
Copyright © 2012 CD-adapco. The following material constitutes a portion of the
CD-adapco training course entitled “Virtual Tow Tank” and should not be altered,
edited or distributed without the consent of the author.
Content
Day 1 Day 2
Free Surface Meshing, Analysis Strategies and Best 3 Post Processing 195
Practices DEMO: Post Processing in Marine Analyses
WORKSHOP: Simulation of a motorboat I 31
Introduction to Overset Mesh 207
Introduction to 6-DOF Modeling 49 WORKSHOP: Motorboat in Channel 213
WORKSHOP:Simulation of a motorboat II 65
WORKSHOP: Free Surface Analysis of a Naval Vessel 87 Propeller Analysis 241
WORKSHOP: Propeller Analysis in Open Water 271
Wave Generation 123 WORKSHOP: Propeller Analysis with Simplified Hull 307
DEMO: Boundary Conditions using Field functions 139
WORKSHOP: Free Surface Analysis: Seakeeping 155
Method solves for the volume fraction of each fluid in each cell
• Volume fractions must sum to unity in each cell
• Free surface is defined as the location where the volume fraction is between zero and
one (interface capturing)
• Special differencing scheme (HRIC) used to maintain a sharp interface between phases
Separate momentum and energy equations are not solved for each volume
fraction
• Phases share the same velocity, pressure and temperature fields
The same general considerations (as well as some additional ones) apply as for
non-free surface analyses
• Mesh should be sufficiently fine to resolve all geometry of interest
• Mesh should be sufficiently fine to resolve all important flow features (local refinement
required to resolve flow separation and shed vortices)
• Mesh should be consistent with the requirements of the near-wall model, if any (see
following slide)
See [1] “Best Practice Guidelines for Marine Applications of Computational Fluid
Dynamics”
We generally wish to target a specific value of y+ for the near-wall mesh, where:
u* y w
y u*
The wall shear stress w can be related to the skin friction coefficient:
w
Cf
U 2 / 2
The skin friction coefficient can be estimated from correlations
Cf 0.036
• For a flat plate: 1/ 5
2 Re L
Cf 0.039
• For pipe flow: 1/ 5
2 Re D
Copyright © 2012 CD-adapco. The following material constitutes a portion of the
CD-adapco training course entitled “Virtual Tow Tank” and should not be altered,
edited or distributed without the consent of the author.
8
Free Surface Wave Resolution
The mesh near the free surface should be sufficiently fine to resolve the wave
height as well as the wavelength
Sufficient cells to resolve from peak to trough (vertical direction)
• Free surface wave effect decays exponentially with depth, so the grid size can grow
rapidly with depth in “open water” areas
Sufficient cells to resolve all wavelengths of interest
• To resolve a wave of wavelength , we need a cell size smaller than /2, as a minimum
(sampling theorem)
• The sampling theorem is a necessary condition, but probably not sufficient for an
accurate solution (use x ≤ /8)
• Ships generate a spectrum of waves - for practical purposes, we will not be able to
resolve the smallest wavelengths
Trimmed cells are strongly recommended because the mesh can be aligned with
the undisturbed free surface
Polyhedral cells may also be used, but care must be taken in properly resolving
the free surface
Unwanted wave reflections can often lead to contamination of the true wave
field, leading to inaccurate results
Coarsening of the mesh one ship length or more behind and to the side(s) of the
ship can damp out waves as they propagate, thereby reducing the potential for
wave reflections
However, if the coarsening occurs too abruptly, reflections can occur at mesh
transitions
• Can be easily avoided by careful grid design
• Can also be limited by changing the Template Default Growth Rate (Continua > Mesh >
Reference Values > Template Growth Rate) from Fast (default) to Medium or Slow
Starting with STAR-CCM+ v5.06, a capability has been added that permits
waves to be damped in the vicinity of specified boundaries (see following slides
for details)
eκ 1
where: S zd f1 f 2 w 1 w
e 1
nd
x xsd
and where κ
ed
x x sd
• xsd is the starting point for wave damping (propagation in the x-direction);
• xed is the end point for wave damping (boundary);
• f1, f2 and nd are parameters of the damping model;
• and w is the vertical velocity component
L = ship length
M >= L
Side View
N >= 2L
OL
P = 2O
General recommendations:
The All-y+ wall treatment is recommended for any model for which it is available
CFL_l and CFL_u: Courant numbers that control the differencing scheme used
at the free surface
• If CFL < CFL_l: HRIC is used
• If CFL > CFL_u: UD is used
• Otherwise, blend of HRIC and UD is used
Most free surface analyses are run as transient, even if the ultimate desired
solution is steady-state
• For steady-state cases, use the maximum possible time step
To estimate time step, target a Courant number of about 1
• Courant number represents the number of crossing of a cell of size x, over a time
step t:
U t
C 1
x
Two choices for the characteristic velocity U
• Vessel speed: U = V, where V is the forward speed of the vessel
• Group velocity of a wave: U = Cg, where:
1 g
Cg
2 2
For naval applications, typically need enough time to flow across at least 5-10
vessel length
For transients, make sure solution is converging to some reasonable tolerances
at each time step
Monitor overall quantities of interest, such as resistance, lift, sinkage, trim, etc.
• For steady simulations, these should be constant over time
• For transient simulations, these should be periodic in time
Is the mesh of high quality? Are there any cells with face validity less than or that
have excessive skewness?
[2] Choi, Junwoo and Yoon, Sung Bum, 2009. “Numerical simulations using
momentum source wave-maker applied to RANS equation model”, Coastal
Engineering, 56 (10), pp. 1043 – 1060.
m
Boat in calm water with inlet velocity vx 2.5
s
The boat is moved under its critical speed (Fr = 0.39)
Water level at z = 0 m
Single computational domain
Two fluid phases: Air and Water
Air
z0
vx 2.5 m s
Water
Features covered:
Import of the boat geometry in .dbs format
Surface Preparation – Computational domain
Surface split to define required boundaries
Define mesh settings
• Trimmer, prism layer, volumetric controls...
Define physics settings
• Implicit Unsteady, K-Epsilon, VOF Waves...
Check Solver Settings
Post-Processing
• Scenes, Reports, Plots...
Run simulation
• Dimensions
Corner 1 Corner 2
X -10 m 8m
Y -10 m 0m
Z -10 m 6m
Rest: Inlet
Outlet
Symmetry
Parameter Value
Base Size 0.05 m
Maximum Cell Size Relative Size 1600%
Mesh Alignment Location [0 , 0 , 0]
Number of Prism Layers 5
Prism Layer Thickness Relative Size 20%
Surface Curvature Basic Curvature 72 pts/circle
Surface Size Relative Minimum Size 12.5%
Template Growth Rate Both values Medium
For 01-deck disable the Prism Mesh Model (Mesh Conditions) and set the
Relative Target Size to 200% (as above)
We will create a volumetric control where the volume mesh will be refined for a
better resolution of the free surface
The domain to be refined is defined with a block
• Right click Geometry > Parts > New Shape Part > Block
Make sure that the volume shape exceeds the full range in y- and x-direction
and define the z-range in the edit panel
Corner 1 Corner 2
X -11 m 9m
Y -11 m 1m
Z -0.07 m 0.07 m
In case of stronger movements you might need to make the refinement region
broader
6-DOF models solve for the rigid-body motion of an object exposed to fluid
forces
• 6 Degrees Of Freedom: 3 translations and 3 rotations
• Examples include ship motions and missiles
• Also called DFBI (Dynamic Fluid-Body Interaction)
𝑑𝐯
𝑚 =𝑓
𝑑𝑡
𝑑𝜔
𝑴 + 𝜔 × 𝑴𝜔 = 𝒏
𝑑𝑡
Moments of Inertia: Principal moments of inertia: Mxx, Myy & Mzz (in the initial
body coordinate system)
Initial Center of Mass: Initial position of the center of mass of the body, in the
laboratory coordinate system
Initial Velocity: Initial velocity of the body, in the laboratory coordinate system
Initial Angular Velocity: Initial angular velocity of the body, in the laboratory
coordinate system
Initial Coordinate System: Coordinate system defining the initial orientation of
the body
Body Motion Option: Select the type of body motion from a drop-down list.
Free motion is the only choice at this time
Off-Diagonal Moments of Inertia: Mxy, Mxz, Myz (equal to Myx, Mzx, Mzy,
respectively)
Fluid forces and moments and gravity forces may be activated or deactivated
independently
In addition, fluid forces and moments may be smoothed over a specified number
of time steps to enhance stability
• Catenary is effectively
a spring with infinite
resistance in tension
and zero resistance in
compression. It also
For more information, search has a mass per unit
the User Guide with “spring length
coupling” and “catenary
coupling”
Object
Set up physics
• VOF
• VOF Wave
Rigid Body Motion
• DFBI (Dynamic Fluid Body Interaction)
Define the inlet and outlet boundary conditions similar to the initial conditions
• Go to Regions > Subtract > Boundaries
• Inlet Physics Method
Conditions
Velocity Components
Specification
Physics Method
Values
Velocity Field Function Field Function: Velocity
of FlatVofWave1
Volume Composite Composite > Water / Air: Field Function: Volume Fraction of
Fraction Method: Field Function Heavy / Light Fluid of FlatVofWave 1
Create a motion by right clicking on Tools > Motions > New > DFBI Rotation and
Translation
Assign the motion to region Subtract
• Click on Regions > Subtract > Physics Values > Motion Specification
• In the properties window select DFBI Rotation and Translation as Motion
After that a new node called DFBI appears
Default Settings:
Initial Center of Mass [0, 0, 0] m
3 5.0 s
Settings of displayer
Outline 1
• Parts: three boat boundaries
• Enable Surface
• Transform: Symmetry 1
Ctrl select both reports, right click Create Monitor and Plot from Report
In the upcoming window select Single Plot
Select Monitors and change the Trigger of these two plots to Time Step
Rename the plot to Force Plot
Problem Definition
• Bare-hull model of a naval combatant (DTMB 5415)
- Length between perpendiculars is 5.72 m
• Constant speed and heading
• Undisturbed free surface (initially)
Key Features
• Hexahedral meshing with prismatic layers
• Volume of Fluid (VOF) free surface analysis
• Velocity inlet & pressure outlet
• Symmetry boundaries on the sides and at the top
Analysis Conditions
• Forward speed: 4.07 knots (2.097 m/s)
• Froude number: 0.28
Froude hypothesized that ship resistance can be broken into two components:
• Frictional resistance: drag due to the effect of shear stresses on the hull
• “Residuary” resistance: all other resistance that is not frictional resistance, mainly wave-
making resistance and eddy-making resistance
Both the frictional and the residuary resistance can be expressed in terms of a
resistance coefficient:
R
C
1 U 2 S
2
where R is the resistance and S is a characteristic area (the wetted hull area is
often used)
Froude further hypothesized that the total resistance simply consists of the sum
of these two resistances:
CT CF (Re) CR ( Fr )
Feature covered:
• Import of the vessel geometry in Parasolid format
• Surface Preparation / Clean-up required
- Surface clean-up, surface repair panel, deck creation...
• Surface split to define required boundaries
Select all faces but Face 10, 23 and 24 (make sure your naming convention
corresponds with the picture) under Geometry > Parts > DTMB_5415
Right-click on any of the highlighted faces and select Delete
We still have three separate surfaces defined for the hull, stern and bow
• Select all faces
A new surface named Hull will be created with the next action
• In the Part Surface/Part Curve Edit section make the following selection
1. Target Part Surface
2. New
3. New Part Surface: Hull
4. OK
5. Modify
* http://www.dt.navy.mil/hyd/sur-shi-mod/bar-hul-res/index.html
We will start by translating the hull downward to account for the sinkage of the
aft perpendicular
• Right-click on Geometry > Parts > DTMB_5415 > Transform > Translate
• In the Translate Parts window, set the Z-translation to -0.00492 m, then click Apply and
Close
Now we need to rotate the hull about the adjusted AP point to get the correct FP
sinkage
This creates a cylindrical coordinate system at the adjusted AP point, with the
z-axis oriented to be the axis of rotation
We will now rotate the hull about the Z-axis of the new coordinate system (a
rotation of 0.10538 degrees will result in the correct FP sinkage)
• Right-click on Geometry > Parts > DTMB_5415 > Transform > Rotate
• In the Rotate Parts window, set the angle to 0.10538 degrees, and the Coordinate
System to Laboratory > Cylindrical 1, then click Apply and Close
We are now ready to create the flow domain around the hull
• The flow domain will consist of the volume inside of the box and the outside of the hull
• A symmetry boundary will be used along the mid-plane of the hull (only half of the hull
will be modelled)
In the direction of ship travel, the domain will extend approx. 1 ship-length
upstream of the bow and about 2.5 ship-lengths downstream of the stern
In the lateral direction, the domain will extend from the mid-plane far enough so
that all ship-generated waves travel through the rear of the domain (outlet)
In the vertical direction, the domain will extend just above the deck on the top
(~1 ship-length) and about another ship-length below the keel on the bottom
Corner 1 Corner 2
X -8 m 15 m
Y -10 m 0m
Z -10 m 7.5 m
Top Side
Inlet
Symmetry
Outlet
Bottom
All surfaces are properly grouped in the relevant faces, which need now to be
transferred into boundaries
• Right-click on the part Subtract and select Assign Parts to Regions...
- One region per part
- One boundary per part surface
- One feature curve for all part curves
- Create Regions
Defining the boundary conditions is the only step left prior to enter the mesh
settings
The previous workshop was an open-water simulation, therefore side walls, top
and bottom and front boundaries were defined as Velocity Inlet.
As we are simulating a towing tank, the boundary types should be defined as:
CD-adapco performed a series of simulations for some of the test cases used in
the Gothenburg 2010 Workshop on Numerical Ship Hydrodynamics. These
include resistance, wave profile and trim/sinkage prediction for three hulls:
• KRISO Very Large Crude Carrier (KVLCC)
• Kriso Container Ship (KCS)
• US Navy Combatant (DTMB 5415)
The simulations were performed using STAR-CCM+ and the results were
compared with the towing tank data used in the Gothenburg 2010 Workshop.
Both .sim files as well as PDF-reports will be provided during this course for
future reference.
Therefore, the following steps
• Mesh Settings
• Physics Settings
• Solver Settings
will not be manually defined, but studied from the file DTMBmedFn028.sim
STAR-CCM+ allows the user to plot the Damping Boundary Distance in order to
visualize the cells where the damping will occur
• Create a new scalar scene
• Drag the iso surface iso from derived part to the display window and place it into the
scalar displayer Scalar 1
• Select Damping Boundary Distance as Scalar Field > Function
- Change Min – Max to 0 and 5
- Color Bar > Levels: 5
Scalar 1
• Contour Style: Smooth
Filled + Lines
Scalar 1 > Scalar Field
• Function: WaterElevation
• Min / Max: -0.05 / 0.05
VOF waves are optionally created in conjunction with the VOF model
• Useful for specifying initial and boundary conditions for free-surface problems
• The VOF model must be activated to use VOF waves
Types of VOF waves:
• Flat: calm (undisturbed) free surface
• First Order: first order (linear) approximation of the Stokes theory of waves
• Fifth Order: fifth order (nonlinear) approximation of the Stokes theory of waves
• Superposition: addition of two or more first-order waves
• Irregular: impose a wave field with amplitudes and frequencies distributed according to
a wave spectrum (Pierson-Moskowitz or JONSWAP)
where A is the wave amplitude, is the wave frequency , K is the wave vector,
k = |K| = wave number, and z is the vertical distance from the mean water
level
The wave number k is related to the wavelength by k = 2 /
The frequency is related to the wave number K by the linear dispersion
relation 2 = g K, where g is the gravitational acceleration
Crest
Trough
N M
( x, t ) An , m cosn t kn ( x cos m y sin m ) nm
n 1m 1
STAR-CCM+ offers the irregular VOF wave option which may be used to
describe a short-term sea state by a wave spectrum, that is, the power spectral
density function of the vertical sea surface displacement
• The Pierson-Moskowitz spectrum and JONSWAP spectrum are frequently applied for
wind seas
• Both spectra describe wind sea conditions that often occur for the most severe sea
states
4
5 ω
S (ω) ( H S2ω 4p )ω 5 exp
5
PM 16 4 ωp
[1] Fenton, John D. 1985. “A Fifth-Order Stokes Theory for Steady Waves”,
J. Waterway, Port, Coastal and Ocean Eng., 111 (2), pp. 216-234
[2] Det Norske Veritas. 2007. Environmental Conditions and Environmental
Loads, Recommended Practice DNV-RP-C205, April 2007, p. 33
[3] Graphs from
http://oceanworld.tamu.edu/resources/ocng_textbook/chapter16/chapter16_04.htm
The first-order VOF wave was fine for defining a simple linear wave, but what if
we want a more realistic-looking wave field?
• One option would be to superpose a number of first order waves
• Right-click Continua > Physics 1 > Models > VOF Waves > Waves > New >
Superposition
• This creates SuperpositionVofWave 1
• In the properties window of SuperpositionVofWave 1 leave most default settings,
change only
- Point on Water Level: [ 100 , 0 , 0 ] m
- Vertical Direction: [ 0 , 0 , 1 ]
- Current: [ 1 , 0 , 0 ] m/s
- Wind: [ 1 , 0 , 0 ] m/s
Note that we have not initialized the pressure and velocity field. If we were doing
a real analysis, we would also need to define pressure and velocity fields
accordingly using the available field functions
Note that we have not initialized the pressure and velocity field. If we were doing
a real analysis, we would also need to define pressure and velocity fields
accordingly using the available field functions
Problem Definition
• Bare-hull model of a naval combatant (DTMB 5415)
• Constant speed and heading
• Head seas with a single wavelength of 8.58 m and a small amplitude
(0.03414 m)
Key Features
• We will start with the model similar to the one that was set up in the sinkage
& trim workshop
- Hexahedral meshing with prismatic layers
- Velocity inlet & pressure outlet boundaries, with velocity inlets on lateral boundaries
• Hull will start out at its static trim and the heave and pitch responses will be
computed dynamically
Analysis Conditions
• Forward speed: 4.08 knots (2.097 m/s)
• Froude number: 0.28
The mesh has been constructed already with the vessel at its static trim
• Further refinement near the free surface was obtained using a volumetric control
The STAR-CCM+ .sim file was set up similar to the previous (sinkage & trim)
workshop
This workshop will demonstrate how to set up, run and post-process an analysis
in which the heave & pitch are predicted in response to regular head waves
• We will once again move the entire mesh with the motion of the ship, i.e. mesh
morphing is not used
• The conditions will be changed such that the ship moves at a speed of 4.08 knots
(2.097 m/s), which corresponds to a Froude number of 0.28
• The head seas will be simulated using STAR-CCM+ VOF waves, where the wavelength
is 8.58 m and the amplitude is 0.03414 m
• Animations of the ship’s response will be created
• The pitch, heave and incident wave elevation will be monitored for later post-processing
Go to Continua > Physics 1 > Models > VOF Waves > Waves and you will see
the previously defined FlatVofWave1
• We do not need this, so we can just ignore it
We now wish to define a first-order VOF wave with the previously-specified
properties:
• Right click on Continua > Physics 1 > VOF Waves > Waves > New > FirstOrder
- This creates FirstOrderVofWave1
• Click on this new VOF wave and specify the Properties as shown
- Point on Water Level: [ -0.5 , 0 , 0 ]
- Vertical Direction: [ 0 , 0 , 1 ] (default)
- Current: [ 2.097 , 0 , 0 ] m/s
- Wind: [ 2.097 , 0 , 0 ] m/s
- Advancing Direction: [ 1 , 0 , 0 ] (default)
- Amplitude: 0.03414 m
Recall that in the previous workshops, the initial and boundary conditions were
specified using the field functions created for the VOF waves (i.e. Velocity of
FlatVofWave1, Hydrostatic Pressure of FlatVofWave1, etc.)
We now need to go through the initial and boundary conditions so that they
instead use the field functions Velocity of FirstOrderVofWave1, Hydrostatic
Pressure of FirstOrderVofWave1
Value Initial conditions: Field Function
Pressure Hydrostatic Pressure of FirstOrderVofWave1
Velocity Velocity of FirstOrderVofWave1
Volume Fraction Air phase Volume Fraction of Light Fluid of FirstOrderVofWave 1
Volume Fraction Water phase Volume Fraction of Heavy Fluid of FirstOrderVofWave 1
Define the inlet and outlet boundary conditions similar to the initial conditions
The heave and pitch simply correspond to the sinkage and trim in the previous
workshop, therefore only the report names need to be changed
• The monitors and plots are not altered
Change also the names for the monitors and plots
Under Reports, change the name Sinkage to Heave and Trim to Pitch
Under Monitors, change the name Sinkage Monitor to Heave Monitor, and Trim
Monitor to Pitch Monitor
Under Plots, change the name Sinkage Monitor Plot to Heave Monitor Plot,
and change Trim Monitor Plot to Pitch Monitor Plot
Right click on Derived Parts > New Part > Section > Plane…
• Input Parts: Derived Parts > iso
• origin: [ 0 , -1.75 , 0 ] m,m,m
• normal: [ 0 , 1 , 0 ] m,m,m
• Display: No Displayer
• Create
Create a second plane section
• Input Parts: Derived Parts > plane section
• origin: [ -3.5 , 0 , 0 ] m,m,m
• normal: [ 1 , 0 , 0 ] m,m,m
• Display: No Displayer
• Create and Close
g
f
2
• In our case, the waves are travelling on a current, so the encounter frequency with the
ship is:
g U
fe
2
The encounter period of the ship with the waves is therefore given by Te = 1/fe,
i.e. the crest of a head wave encounters the bow of the ship every Te seconds
• Substituting the values in for our case, we find that Te = 1.4903 sec
To obtain a time-accurate solution, we must resolve this time scale, since the
head waves drive the motion
We will also want to Fourier transform (FFT) the periodic response of the ship
(heave and pitch), so it will be helpful to set the number of time steps during a
period to 2N, where N is a non-zero integer
• To start with, we will choose N = 6 (i.e. 64 time steps per period), which gives a time
step of 0.023286 sec
• After the solution has reached a somewhat-periodic state, we can increase N, thereby
decreasing the time step
680
12 100.0 s
The analysis would take too long to run during a training session, so a STAR-
CCM+ sim file with some representative results has been provided
Save and close your current model, and load the file dtmb5415sk-final.sim
The analysis was run for a little over 25 sec of physical time
• The initial time step was run until the solution (heave, pitch, etc.) reached a quasi-
periodic state
• The time step was then cut in half (N=7, 128 steps per wave period) and the analysis
was run for two more wave periods
• The time step was cut in half again (N=8, 256 steps per wave period) and the analysis
was run for two more wave periods
The solution is still not perfectly periodic, but the results are sufficient to
demonstrate the necessary concepts for this type of analysis
Recall that the analysis was set up to save .png files containing the preceding
two plots at every time step
In the analysis that has been already run, these files were saved only during the
last wave period (256 time steps) and animations were created using a free
utility program
The .avi files of these animations have been provided to you, and your instructor
will play them as you finish this workshop
Instead of making hardcopies of the scenes, you could also create a solution
history file, saving Position[Z] and Volume Fraction of Water phase and create
the animation after the run is finished
Note: The size of the .simh file is proportional to the number of cells and number of
variables saved. Because so many time steps are made the file can grow very big
Overall, the results appear reasonable, with the exception of the wave elevation
plot
The overall trend of the wave elevation appears to be correct, but it contains a
lot of noise
• Clearly a better procedure is needed for monitoring wave elevations, and this is now
under investigation
We will now proceed to do some further post processing of the results:
• We will examine the mean values of the heave and pitch responses through a Fourier
Transform (FT)
• We will demonstrate a procedure to obtain the heave and pitch transfer functions from
the STAR-CCM+ results
The spike is
expected at
0.671 Hz, which
corresponds to
the encounter
frequency of the
incident wave
with the ship
(1 / 1.49 sec =
0.671 Hz)
We can reconstruct the original heave response (over the last period) from the
FFT coefficients shown in the table below (from external program)
• We will use only the contributions from the large spikes
The heave response can be written in the form:
x3 ( t ) x3 ,0 x3 ,1 cos( 2 f et 3 ,1 )
where fe = 0.671 Hz is the encounter frequency
The results of this fit are shown on the next slide
A similar procedure can be used to compute the pitch transfer function, defined
as: x5 ,1
TFx5
ka
where k = 2/ is the wave number, and = 8.58 m is the wavelength of the
incident wave
Copyright © 2012 CD-adapco. The following material constitutes a portion of the
CD-adapco training course entitled “Virtual Tow Tank” and should not be altered,
edited or distributed without the consent of the author.
191
Summary
A seakeeping analysis for a naval combatant has been set up, run and the
results were analyzed in STAR-CCM+
VOF waves were used to specify the initial and boundary conditions
A process for monitoring the wave elevation was provided…
… but needs improvement
The procedure for estimating a proper time step was demonstrated
Animations of the free surface and hull waterline were created
The heave response was exported for further analysis
• FFT of the data resulted in the mean response and heave transfer function
• The same thing could be done with the pitch, drag, etc.
[5] P.M. Carrica, R.V. Wilson, R.W. Noack & F. Stern, 2007. “Ship motions using
single-phase level set with dynamic overlap grids”, Computers & Fluids, Vol.
36, pp. 1415-1433
[6] M. Irvine, J. Longo & F. Stern, 2008. “Pitch and heave tests and uncertainty
assessment for a surface combatant in regular head waves”, Journal of Ship
Research, Vol. 52, pp. 146-163
(f pressure f shear ) nD M [r f (f pressure f f )] a
shear
f f f
CD
f
CM f
1 1
( ref vref
2
aref ) ( ref vref
2
aref rref )
2 2
Specification similar to forces and moments:
• Specify parts, direction, pressure and/or shear, and reference pressure
• In addition, must specify reference density, area and velocity
• Reference radius must also be specified for moment coefficients only
STAR-CCM+ allows you to define non-physical parts from existing physical parts
• These are called derived parts
• Can be used for post-processing of solution data
• Derived parts can be used to create even more complex derived parts
Many examples of the use of derived parts are provided in the workshop
examples
Line probes can be used to monitor variables along a fixed line in space
• e.g. a line probe can be used to measure pressure as a function of depth at some
location
The cells from the two meshes are sorted into four types
• Active cells
- Discretizing governing equations are solved
• Passive cells
- No equations are solved, essentially dead
• Acceptor / Donor Cells at the overset boundary and the
background mesh
- The link between the two meshes, here action happens
A meshed overset region can be copied and pasted to create more instances
within the domain without the need for meshing
There must be a minimum of 4 layers of complete cells between bodies and the
overset boundaries
The time step should be set so that the overset mesh cells do not move in the
overlapping zone within one time step or more than...
... the smallest cell in this zone when 1st order Euler scheme for time integration is used
... half the smallest cell size when the 2nd-order implicit time integration scheme is used
m
Ship (L = 4.2 m) in calm water with inlet velocity vx 2.5
s
Water level at z = 0 m
Two computational domains
Two fluid phases: Air and Water
Water depth h 0.95m
Distance to Side Wall d 2.0m
Air
vx 2.5m / s z 0m
Water
We are using the previous motorboat simulation as a template since most of the
settings are the same
Load a simulation
• Menu File > Load Simulation...
• Toolbar button
We want to compare the drag from the deep water simulation with the drag from
the shallow water simulation, therefore we export the results from the plots
before deleting the solution
Re-import the csv files as tables and add them to the plots
• Right click Tools > Tables > New Table > File...
• Choose forceDeep.csv
• Open
- A new table named forceDeep appears
Modifying the block for computational domain includes splitting the bottom, inlet
and outlet surface from the block and shrink it in z direction
• Right click on Geometry > Parts > Block > Surfaces > Block Surface > Split by Angle…
• In the opening window click OK
Rename the surfaces
Top
Inlet
Symmetry
Outlet
Bottom
Project the bottom surface to z = 1.2 m and the top surface to z = 1.8 m
• Right click on Geometry > Parts > Block > Surfaces > Block Surface > Repair Surface…
• Select the two bottom faces and click on to get the attached vertices
• Remove the faces from the set
• Click and project the vertices to a plane with
Origin -1.2 m in z normal direction
• Apply and Return
Create the local cartesian coordinate system for the tilted block
• Right click Tools > Coordinate Systems > Laboratory > Local
Coordinate Systems > New > Cartesian
• Type [0, 1, 1] as j-Direction and click on Renormalize
• Create and Close
Create a block at parts level using the newly created
coordinate system
Corner 1 Corner 2
X -10 m 10 m
Y -8 m -2 m
Z -1 m 10 m
Laboratory/Cartesian 1
Symmetry
We will coarsen the mesh on continuum (global) level and can remove the
coarsening on boundary level
A second volumetric control will refine the mesh around the overset mesh in
both regions
A copy of this mesh continuum will be created in order to set different refinement
for the mesh in the overset region
• The general free surface refinement exists in the template as Volumetric Control 1 (Part
Group FS_Ref)
- Replace the part in the second mesh continuum with FS2_Ref
• For the other a new volumetric control is created: OM_Ref
FS_Ref FS2_Ref
Volumetric Control 1 Volumetric Control 1
in Mesh 1 in Mesh 2
OM_Ref
Volumetric Control 2
in Mesh 1 und Mesh 2
In region overset boat change the settings for the following boundaries
• Overset boundary, symmetry: Disable Custom Surface Size under Mesh Conditions
• 01-deck, 01-hull, 01-stern: Change the relative minimum and maximum size to 12.5%
and 100%
Create a second block to refine the free surface further in the moving region
Corner 1 Corner 2
X -3 m 3m
Rename Block 4 to FS2_Ref
Y -1.5 m 1m
Z -0.2 m 0.2 m
Click Create
Create a third block to refine the mesh around the overset region
Corner 1 Corner 2
X -3.5 m 3.5 m
Rename Block 5 to OM_Ref
Y -1.5 m 1m
Z -1.4 m 1.6 m
Right click Mesh 1 > Volumetric Controls > Volumetric Control 2 > Edit…
In the properties dialog make the following settings:
Part Group
OM_Ref
Mesh Conditions Value
Surface Remesher Customize surface Enable
remesher
Trimmer Customize isotropic size Enable
Mesh Values
Custom Size Relative Size 300%
The physics conditions, motion and DFBI settings are provided with the sim-file
and the physics continuum is assigned to both regions
Since the DFBI motion is unchanged, also the reports remain well defined
In the template file only the Boat region existed, so let‘s check where the
Channel region or boundaries of it need to be added
• In the VOF scene add boundary Channel > Symmetry to the Parts of Scalar 1
displayer
• In the Elevation scene a derived part isosurface is used which still exists, so only the
input for the derived part needs to be checked
- Add region Channel to the Parts of iso
Inlet and Outlet boundary conditions in the Channel region needs to be defined,
because this is a new region
Physics Method
• Inlet Conditions
Velocity Components
Specification
Physics Method
Values
Velocity Field Function Field Function: Velocity
of FlatVofWave1
Volume Composite Composite > Water / Air: Field Function: Volume Fraction of
Fraction Method: Field Function Heavy / Light Fluid of FlatVofWave 1
Physics Method
• Outlet Values
Pressure Field Function Field Function: Hydrostatic
Pressure of FlatVofWave1
Volume Composite Composite > Water / Air: Field Function: Volume Fraction
Fraction Method: Field Function Water / Air
Note: At the outlet it is not the volume fraction of the wave
Copyright © 2012 CD-adapco. The following material constitutes a portion of the
CD-adapco training course entitled “Virtual Tow Tank” and should not be altered,
edited or distributed without the consent of the author.
235
Scalar Scene – Overset Mesh
Once the Overset Mesh Interface has been created and solution initialized, the
overset mesh cells can be visualized in a scalar scene
Create a scalar scene to view scalar quantities:
• Right click Scenes > New Scene: Scalar
• Toolbar button
There are certain “tips” that can be used when running a typical sink & trim study
in STAR-CCM+ to help convergence as well as to speed-up the run
• Start from the hydrostatic position (or very close to it) for displacement hulls
- This will avoid large motions and the free surface refinement region can be smaller, hence
reducing the cell count
Under-relaxation factors
• Residuals should drop at least 2 orders of magnitude within each time step, therefore
default UR factors might be increased to speed-up the run under certain conditions
Freeze solvers
• Certain solvers might be disabled at certain moments of the run in order to speed it up
- Damping Boundary Distance could be set to OFF after a certain number of time-steps once the
boat motion is small
- Turbulence could also be disabled at the beginning of the run while the flow is being stabilised
Slow ships
• It is difficult to properly capture the free surface deformation due to slow ships as
wavelengths and wave heights are small, hence an extremely fine mesh would be
required
• In most cases however, resistance can be computed without the free surface approach
but mirroring the model instead, by placing a symmetry boundary at the location of the
undisturbed free surface. This is then a steady-state calculation that is very fast - and
the result might be about 1 to 2 % worse in terms of predicted resistance.
Challenging analysis
• Variable section profiles, chord lengths and pitch angles
• Interactions with hull and appendages
• Operated at high rotational speeds
• Cavitation often occurs during operation
Several analysis options:
• Specify momentum sources imparted to the water by the propeller
• Solve for the propeller motion in a rotating reference frame
• Sliding mesh analysis
Approach used will depend on the goals of the analysis and the
resources available (both human and computer time)
Simulation of open water conditions usually allows just one repeatable
section to be modeled together with the use of periodic interfaces
Screw propellers:
• Fixed-pitch
• Adjustable- or controllable pitch
• Shrouded (ducted)
Paddle wheels
Jet propellers (water jets)
Vertical axis (cycloidal) propellers:
• Kirsten-Boeing
• Voith-Schneider:
vA
Advance coefficient : J
nD
T
Thrust coefficient : KT 2 4
ρn D
Q
Torque coefficient : KQ 2 5
ρn D
where vA = propeller advance speed (m/s)
T = thrust (N)
Q = torque (Nm)
n = propeller rotational speed (Hz)
D = propeller diameter (m)
= water density (kg/m3)
This is the simplest, but also the most approximate of the three
approaches
Details of propeller geometry are not modeled
Cells swept out by the propeller as it rotates are identified, and
momentum sources are applied to these cells
Analysis is usually steady, so blade passing effects are not included
Results can be as good (or as bad) as the momentum sources applied
• Requires a very good understanding of the physics to develop a decent
momentum source model
• Even if a momentum source model is tuned to give good results for a
particular geometry, it will probably need to be “re-tuned” for different propeller
and/or hull geometries
Most of the setup is exactly the same as for multiple reference frames modeling
• Create mesh with multiple regions
• In-place interfaces between regions
• All regions share the same physics continuum
Make sure the Implicit Unsteady model is selected
Right-click on Tools > Motions and define a new rotating rigid body motion
Assign motions to each region under Physics Values > Motion Specification
Definition: Cavitation can be defined as the rupture of the liquid continuum under
excessive flow conditions (pressure drop and stresses)
This rupture manifests itself by the formation of bubbles and pockets of vapor
inside a liquid initially homogeneous
Cavitation occurs when a threshold from where the continuum cannot remain
under on phase
Bearings
High energy pumps
Propellers
Injectors
Heart valves
Other type of biomedical devices
Some further methods can predict the erosion rate as a function of the cavitation
rate dR/dt
Available in STAR-CCM+ through
• the “Temporary Storage Retained” option in the solver folder
• or by plotting “agressivity” histograms, i.e. the distribution in number of peaks of
pressure variation of amplitude p
Main questions:
• Will my design cavitate? Cavitation Number Np
• Where? Contour Plot
• When?
If the flow regime is bubble cavitation, the code can give
• Cavitation Number Np
• Cavitation Rate
• Bubble Radius
The difference between the static pressure and the saturation pressure
divided by the dynamic pressure of the incoming flow is called the
Cavitation Number Np
𝑝 − 𝑝𝑉
𝑁𝑝 = cavitation will occur
1
𝜌𝑙 𝑈 2 at the extrados
2
From the Modeling Principles equation in the User Guide (search for “Cavitation
formulation”) it is possible to estimate the bubble radius from the volume fraction
according to the Rayleigh-Plesset equations:
3 3 1 𝛼𝑉
𝑅=
4 𝜋𝑛0 1 − 𝛼𝑉
𝑅0 2
𝑇𝑣 =
4𝜈
𝜌
𝑇𝑝 = 𝑅0
𝑝 − 𝑝𝑉
𝜌𝑅0 3
𝑇𝑆 =
2𝜎
Pockets
Bubble
Jet cavitation
Sheet cavitation
Vortex cavitation/wake cavitation
etc...
2 3D pocket / detachment /
separation
3 Supercavitation
3‘ Partial cavitation
4
Stresses cavitation
5
Supercavitation
Partial cavitation
Stresses cavitation
Problem Definition
• Start with surface data of a full propeller in a cylinder
• Mesh the domain
• Set up and run an analysis using moving reference frame
Key Features
• CAD import
• Surface modification and meshing
• Trimmed mesh with prism layers
• Moving reference frame
vA
Advance coefficient : J
nD
T
Thrust coefficient : KT 2 4
ρn D
Q
Torque coefficient : KQ 2 5
ρn D
where vA = propeller advance speed (m/s)
T = thrust (N)
Q = torque (Nm)
n = propeller rotational speed (Hz)
D = propeller diameter (m)
= water density (kg/m3)
exit
side walls
Parameter Value
Base Size 50 mm
Maximum Cell Size Relative Size 100%
Prism Layer Thickness Absolute 1.5 mm
Template Growth Rate Default Growth Rate Slow
Start End
X -300 mm 50 mm
Y 0 mm 0 mm
Z 0 mm 0 mm
Radius 160 mm
• Click Create
Create the volumetric control for the refinement of the surface and volume mesh
• Right click Continua > Mesh 1 > Volumetric Controls > New
• Right click Volumetric Control 1 > Edit…
Part Group
Cylinder
Mesh Conditions Value
Surface Remesher Customize surface Enable
remesher
Trimmer Customize isotropic size Enable
Mesh Values
Custom Size Relative Size 15%
Change the Part Group to Cylinder 2 and the custom size to 30%
Part Group
Cylinder 2
Mesh Values
Custom Size Relative Size 30%
The thrust and torque coefficients have to be defined manually according to the
following formulae:
T
KT
n 2 D 4
Q
KQ 2 5
n D
where T = Thrust, Q = Torque, n = propeller rate of revolution in rps, D =
propeller diameter and = water density
The previously defined reports return T and Q, in user defined field functions the
coefficients can be calculated and then used in another report for plotting
• D = 0.305 m
• n = 10.0 rps
Problem Definition
Start with surface data of a full propeller mounted on a very simple hull
Mesh the domain
Set up and run an analysis using multiple moving reference frame
Change the setup to transient sliding mesh and run it again
Key Features
CAD import
Surface modification and meshing
Trimmed mesh with prism layers
Moving reference frames
Sliding meshes
In order to use multiple reference frames, the moving reference frame volume
and the stationary reference frame volume must be separated into distinct
regions
An easy way to do this is by using Split by Surface Topology…
Requires that each geometry part be closed and non-manifold
• Right click on Geometry > Parts > hull+prop4119 > Split by Surface Topology
- STAR-CCM+ automatically splits the domain into two parts, containing the appropriate surfaces,
and creates contacts for interfaces as needed
Identify the part inside the circular disk and rename it rotating, and rename the
part outside of the circular disk stationary
In region stationary change the boundary types for inlet and outlet
• inlet: Velocity Inlet
• exit: Pressure Outlet
Create a mesh continuum (right click Continua > New > Mesh Continuum) and
select the meshing options to mesh the rotating region by double clicking on
Models (the continuum is assigned to both regions as default):
• In the model selection window, select the following models:
- Surface Remesher
- Trimmer
- Prism Layer Mesher
• Click Close
Create a second mesh continuum (Mesh 2) for the stationary region with the
following models and assign it to region rotation:
- Surface Remesher
- Trimmer
- Prism Layer Mesher
- Extruder
For the rotating region (Mesh 2) also a volume mesh refinement is needed,
create a simple cylinder shape part to place in a corresponding volumetric
control as follows:
• Right click Geometry > Parts > New Shape Part > Cylinder
• Set the following coordinates
Start End
X -1000 mm 200 mm
Y 0 mm 0 mm
Z 0 mm 0 mm
Radius 500 mm
Vertical cut
behind
propeller
Suction
Side
We will now set up the problem to run as a transient sliding mesh analysis and
then restart from the current solution
• Double click on Continua > Physics 1 > Models
• Uncheck Steady and check Implicit Unsteady
Stopping Criteria
• Maximum Inner Iterations: 15
• Maximum Steps: 1000