12 DM Ship Wave
12 DM Ship Wave
12 DM Ship Wave
Introduction
Ships moving through head sea waves predominantly encounter heave and pitch motions
while the other four motions (roll, yaw, surge, sway) are negligible. In this tutorial a wigley
hull heave and pitch motion is simulated in head sea waves.
This tutorial demonstrates how to do the following:
Use Numerical Beach option to suppress the numerical reflection near the outlet.
Restrict 4 degree of motions out of 6 degree using User Defined Function (UDF)
Prerequisites
This tutorial is written with the assumption that you have completed Tutorial 1 from
ANSYS FLUENT 13.0 Tutorial Guide, and that you are familiar with the ANSYS FLUENT
navigation pane and menu structure. Some steps in the setup and solution procedure will
not be shown explicitly.
In this tutorial, you will use the dynamic mesh model and the 6DOF model. If you have
not used these models before, see Sections 11.6 Using Dynamic Meshes and Section 11.6.4
Six DOF Solver Settings, respectively in the ANSYS FLUENT 13.0 Users Guide.
Problem Description
The schematic of the problem is shown in Figure 1. The problem is to model heave and
pitch motion of ship hull going through the head see waves.
The problem considers incoming flow at 1.5 m/sec with wave specification as follows:
c ANSYS, Inc. February 25, 2011 1
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
Water bottom level is at 2.75m below free surface level. For this problem geometry is
created such that Z axis is the vertical axis and z=0 is the free surface level. Flow is going
along +X direction and Y axis is the lateral axis.
Preparation
2. Create a subfolder (tiff-files) to store the tiff files for postprocessing purpose.
3. Use FLUENT Launcher to start the 3D double precision version of ANSYS FLUENT.
For more information about FLUENT Launcher see Section 1.1.2 Starting
ANSYS FLUENT Using FLUENT Launcher in ANSYS FLUENT 13.0 Users Guide.
5. Click the UDF Compiler tab and ensure that the Setup Compilation Environment for
UDF is enabled.
The path to the .bat file which is required to compile the UDF will be displayed as soon
as you enable Setup Compilation Environment for UDF.
If the UDF Compiler tab does not appear in the FLUENT Launcher dialog box by default,
click the Show Additional Options >> button to view the additional settings.
The Display Options are enabled by default. Therefore, after you read in the mesh, it
will be displayed in the embedded graphics window.
2
c ANSYS, Inc. February 25, 2011
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
Step 1: Mesh
ANSYS FLUENT will perform various checks on the mesh and will report the progress
in the console. Make sure the minimum volume reported is a positive number.
c ANSYS, Inc. February 25, 2011 3
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
Step 3: Models
4
c ANSYS, Inc. February 25, 2011
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
Step 5: Materials
Materials Create/Edit...
c ANSYS, Inc. February 25, 2011 5
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
Step 6: Phases
6
c ANSYS, Inc. February 25, 2011
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
c ANSYS, Inc. February 25, 2011 7
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
i. Select Direction Vector from the Flow Direction Specification Method drop-
down list.
ii. Select Absolute from the Reference Frame drop-down list.
iii. Enter 1.5 for Uniform Flow Velocity Magnitude.
iv. Enter 1 for X-Component of Flow Direction .
v. Enter 0 for Y-Component of Flow Direction .
vi. Enter 0 for Z-Component of Flow Direction .
vii. Select Intensity and Viscosity Ratio from the Specification Method drop-down
list.
viii. Enter 2% for Turbulence Intensity and 2 for Turbulent Viscosity Ratio.
(d) Click Multiphase Tab and set the input values
i. Select First Order Airy from the Wave Theory drop-down list.
ii. Select Shallow/Intermediate Waves from the Wave BC Options drop-down list.
iii. Select water from the Secondary Phase for Inlet drop-down list.
iv. Enter 0.01925 for Wave Amplitude.
v. Enter 3.85 for Wave Length.
vi. Enter 0 for Free Surface Level.
8
c ANSYS, Inc. February 25, 2011
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
c ANSYS, Inc. February 25, 2011 9
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
10
c ANSYS, Inc. February 25, 2011
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
3. Enable Gravity.
The dialog box expands to show additional inputs.
5. Enable Specified Operating Density and retain the default setting of 1.225 kg/m3 for
Operating Density.
c ANSYS, Inc. February 25, 2011 11
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
12
c ANSYS, Inc. February 25, 2011
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
i. Ensure that Two Dimensional is selected from the Damping Type drop-down
list.
ii. Select up-inlet from the Compute From Inlet boundary drop-down list.
iii. Specify 1 for Number of Wavelengths.
(e) Click OK to close the fluid dialog box.
For more information about Numerical beach treatment, see Section 17.3.11.3 Numer-
ical Beach Treatment in ANSYS FLUENT 13.0 Theory Guide.
c ANSYS, Inc. February 25, 2011 13
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
14
c ANSYS, Inc. February 25, 2011
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
A. Enter 0.011 m for Minimum Length Scale and 0.65 m for Maximum
Length Scale.
The Minimum Length Scale and the Maximum Length Scale can be ob-
tained from the Mesh Scale Info dialog box. Click on the Mesh Scale
Info... button to open the Mesh Scale Info dialog box.
B. Enter 0.8 for Maximum Cell Skewness.
C. Enter 10 for Size Remesh Interval.
c ANSYS, Inc. February 25, 2011 15
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
16
c ANSYS, Inc. February 25, 2011
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
Note: Open the six dof property.c file and check the properties of the hull body spec-
ified. Mass and Moment of inertia are specified here. In addition to this following
commands have been written,
prop[SDOF ZERO TRANS X] = TRUE;
prop[SDOF ZERO TRANS Y] = TRUE;
prop[SDOF ZERO ROT X] = TRUE;
prop[SDOF ZERO ROT Z] = TRUE;
These macros have been used to restrict the motion in the particular direction. For
example first command restricts the translation motion in X direction. Like this way
four motions have been restricted using four commands. Only two motions are allowed
which is translation along Z axis and rotation about Y axis.
c ANSYS, Inc. February 25, 2011 17
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
(a) Ensure that SIMPLE is selected from the Scheme drop-down list.
(b) Select Green-Gauss Cell Based from the Gradient drop-down list.
(c) Select Second Order Upwind for all the equations except Volume Fraction.
(d) Select Compressive for Volume Fraction.
18
c ANSYS, Inc. February 25, 2011
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
c ANSYS, Inc. February 25, 2011 19
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
20
c ANSYS, Inc. February 25, 2011
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
c ANSYS, Inc. February 25, 2011 21
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
1. Read the case and data file for the 1600th time step (hull 2dof-1-01600.cas.gz).
File Read Case & Data...
(a) Select Phases... and Volume fraction from Surface of Constant drop-down list.
(b) Select water from Phase drop-down list.
(c) Enter 0.5 for Iso-Values
(d) Enter vof-0.5 for New Surface Name.
(e) Click Create and close the Iso-surface dialog box.
22
c ANSYS, Inc. February 25, 2011
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
(a) Enable Filled and disable Global Range from the Options list.
(b) Select Mesh... and Z-Coordinate from the Contours of drop-down lists.
(c) Select vof-0.5 from the Surfaces list.
(d) Enter 25 for the Levels and click Display.
c ANSYS, Inc. February 25, 2011 23
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
(a) Select Phases... and Volume Fraction from the Contours of drop-down lists.
(b) Select water from the Phases drop-down lists.
(c) Select hull from the Surfaces list.
(d) Click Display.
Figure 5: Contours of water Volume Fraction on the hull (water line along hull hurface)
24
c ANSYS, Inc. February 25, 2011
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
5. Create Heave and Pitch plots from the motion history data
In the dynamic mesh properties we have switch on the Write Motion History in the
six DOF options, so a motion history file (Figure 6) is written which consists of linear
and angular positions. In the file, CG Z is the heave and THETA Y is the pitch.
(a) Create a text file heave.xy by copying the time and CG Z columns. Plot this file
to get the heave curve.
Plots File Set Up...
c ANSYS, Inc. February 25, 2011 25
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
(b) Similarly create pitch.xy by copying the time and THETA Y columns. Plot this
file to get the pitch curve.
Plots File Set Up...
26
c ANSYS, Inc. February 25, 2011
Tutorial: Heave and Pitch Simulation of Ship hull moving through head sea waves
Summary
This tutorial demonstrated the setup and solution of ship hull heave and pitch simulation.
c ANSYS, Inc. February 25, 2011 27