Skip to content

Introduction

SHIPFLOW MOTIONS is based on a fully nonlinear unsteady potential flow solver for free surface flows with a single or multiple bodies subject to up to 6-DOF.

  • Unstructured body and free surface mesh.
  • Automatic adaptive grid refinement of the free surface.
  • Modelling of various external forces.
  • Time-series and 3D visualization output files.

KVLCC2 sailing in head waves

Scope and limitations

The solver is based on inviscid, incompressible and irrotational flow. As a consequence, viscous separation, turbulence and wave breaking are not resolved directly; their influence is represented through empirical models (e.g. friction, damping, and manoeuvring force terms) where applicable.

Conventions and scaling

Unless otherwise noted, inputs are in SI units. Most output quantities are also reported in SI units. Internally, many quantities are nondimensionalized using the reference length \( L_{pp} \) and the gravity time scale \( \sqrt{L_{pp}/g} \). Some cards allow explicit control of dimensional versus nondimensional time (see XPTD:TIME).

What is solved vs. prescribed

Rigid-body motions are integrated for the free degrees of freedom, while constrained DOFs can be fixed or prescribed. This lets you combine free motions with imposed trajectories or restraints in a single run.

Wave modeling

Incoming waves can be regular or irregular. Irregular seas may be specified by parametric spectra (e.g. JONSWAP, Pierson–Moskowitz) or by a user-provided CSV spectrum (SPEC). HOS3 can optionally be enabled to generate a nonlinear, phase-resolved incident wave field.

Geometry and coordinates

Hull geometry can be provided as offset, IGES or STL files. The offset coordinate system is expected to have origin at the baseline and aft perpendicular, with \( x \) forward and \( z \) upward, and is mapped to the computational and body-fixed systems as described in Coordinate systems.

Applications

The program can be applied to various types of applications. The following list gives some general examples:

  • Resistance, sinkage and trim in open or restricted, deep or shallow calm water.
  • Forces and motions of floating ships or other bodies in regular waves.
  • A steady, uniform water current, alone or together with waves and wind.
  • Incident wave fields via the Higher-Order Spectral (HOS3) solver for regular and irregular seas.
  • Single or multiple floating bodies.
  • Arbitrary springs, mooring lines that can break and fenders.
  • External mesh import for ships or other floating objects as well as environment objects, e.g. bottom and shore.

Limitations of the program

Due to the underlying assumption of non-lifting potential flow and the numerical model for evolving the free surface in time, some types of applications are not fully supported or may pose reduced applicability. The following list highlights some of these limitations:

  • Severe wave breaking is fundamentally not supported by the underlying mathematical model. However, moderate wave breaking can be handled by the program.
  • HOS3 inherits the same potential-flow limitations and assumes a periodic, single-valued free surface at constant depth.
  • Potential flow lifting surfaces are not supported.
  • Planing hulls are not supported.
  • Additional motion damping terms for modelling viscous effects may be required by user input for certain applications, e.g. additional roll damping.

Glossary

Common symbols and abbreviations used throughout the manual:

Symbol Meaning
\( H_s \) Significant wave height [m]
\( T_z \) Zero up-crossing period [s]
\( T_p \) Peak period [s]
\( L_{pp} \) Length between perpendiculars [m]
\( ka \) Wave steepness (wavenumber \( \times \) amplitude) [-]
reflen Reference length used for non-dimensionalization
RUN_DIR Run directory created by MOTIONS

Input files

The configuration and execution of the program are controlled by what in this document is referred to as the COMMAND_FILE.

The geometry input is given in either an OFFSET_FILE for the program to automatically generate a mesh internally, or by directly importing an externally generated mesh using what is referred to as the IMPORT_FILE.

When using multiple bodies and objects, an additional special command file is required, referred to as the XCONFIG_FILE.

File descriptions

File Description
COMMAND_FILE Input commands for program execution and problem configuration. Takes the xflow, xmtd and xptd command blocks.
OFFSET_FILE Geometry definition based on offsets, for the program to automatically generate a mesh internally.
IMPORT_FILE Direct import of an externally created quad mesh in OBJ format.
XCONFIG_FILE Input commands for configuring the program to use multiple bodies and environmental objects as well as spring, mooring line and fender objects. Takes the xconfig command block.

Notes

  1. When using multiple bodies, multiple COMMAND_FILEs are required — one for each body — but the program execution parameters and the global free surface parameters are only considered in the file that constitutes the master, as configured in the xconfig command block.
  2. The XCONFIG_FILE requires individual COMMAND_FILEs for each floating body and environmental object.

Command file syntax

Commands are given inside cards containing commands and/or parameters.

Cards are given inside command blocks starting with the name of the block and ending with the word end specifying the end of that block. Block names and the ending word end have to be on separate lines and be the only word on their respective line.

Blocks are used to separate cards used for different input modules of the program, i.e. xflow, xmtd, xptd and xconfig.

The following is an abstract example of the syntax:

block1
  card1( command1, command2|command3, param1=n, param2=v,
         param3=[n], param4=[v], param5=[x,y,z] )
  card2( command1, command2|command3, param1=n, param2=v,
         param3=[n], param4=[v], param5=[x,y,z], param6="string" )
end
block2
  card1( command1, command2|command3, param1=n, param2=v,
         param3=[n], param4=[v], param5=[x,y,z] )
  card2( command1, command2|command3, param1=n, param2=v,
         param3=[n], param4=[v], param5=[x,y,z], param6="string" )
end
Notation Meaning
command1 A simple command.
command2\|command3 command2 and command3 are mutually exclusive; both cannot be given in the same card.
param1=n param1 takes an integer value n.
param2=v param2 takes a float value v.
param3=[n] param3 takes an array of integers.
param4=[v] param4 takes an array of floats.
param5=[x,y,z] param5 takes an array of x-, y- and z-coordinates as float values.
param6="string" param6 takes a string.

Quick start

The following is a minimal example of a single-body MOTIONS run in calm water:

xflow
  titl( title="KCS" )
  prog( motions )
  hull( mono )
  offs( file="off_kcs", lpp=230, zori=10.8 )
  vshi( vknot=24, reflen=230 )
  mass( zcg=14.3, kyy=57.87 )
  fixe( surge )
end
xmtd
  body( name="main", main )
end
xptd
  para( nthr=6 )
end

Command blocks

The commands are documented one chapter per block:

Block Chapter Contents
xflow XFLOW Commands Vessel, mass, motions, waves, wind, current and sub-body definitions
xmtd XMTD Commands Mesh generation, refinement and import
xptd XPTD Commands Time-domain solver control, saving and post-processing
xconfig XCONFIG Commands Multiple bodies, springs, moorings, fenders and wave-field points