Skip to content

XFLOW Commands

The xflow block contains the commands defining the vessel, its mass and initial position, the degrees of freedom, the ambient wave, wind and current field, the fluid, output probes and the sub-bodies.

xflow
  title(), program(), hull(), offset(), mass(), ipos(),
  traj(), vship(), fixed(), towing(), damping(), waves(),
  wind(), current(), fluid(), fsprobes(), mpnt(), symmetry(),
  manoeuvring(), subbody()
end

Notes

  1. Only the first four characters of a keyword are significant, so wave and waves are equivalent.

TITLE

Define a title for the computation.

General form of command

title ( title = "Your title" )

Default values

Not stated in the source manual.

Keywords

Keyword Description
title The title inside quotation marks.

PROGRAM

Define what modules to execute.

General form of command

program ( xptd , motions , xpost )

Default values

Not stated in the source manual.

Keywords

Keyword Description
xptd Execute the time-accurate potential flow solver.
motions Select MOTIONS 8 module.
xpost Only write the report of a computation that has already been run, from its RUN_DIR, without running it again.

HULL

Definitions of the hull.

General form of command

hull ( mono     , bdens = v , nohr , arhr ,
       coarse                              )
       medium
       fine

Default values

Not stated in the source manual.

Keywords

Keyword Description
mono Configure the program for a monohull.
bdens A factor to change the density of the hull panelization.
nohr Disable automatic refinement of hull panels close to the waterline, bow and stern.
arhr Split hull panels with an aspect ratio above 2 along the short direction.
coarse Initialize configuration with a coarse mesh setting.
medium Initialize configuration with a medium mesh setting.
fine Initialize configuration with a fine mesh setting.

Notes

  1. arhr only works for imported hull panels using the XMTD:IMPORT command.

OFFSET

Definitions for the offset file.

General form of command

offset ( file = "my_offset_file" , lpp = v )
         iges = "my_iges_file"
         stl  = "my_stl_file"

Default values

Not stated in the source manual.

Keywords

Keyword Description
file Name of the offset file. More specifically, this is the relative path to the offset file from the RUN_DIR.
iges Name of the IGES file.
stl Name of the STL file.
lpp The reference length to be used for non-dimensionalizing the offsets. Typically the LPP of the vessel.

MASS

Definitions of the mass properties of the vessel.

General form of command

mass ( mass = v , xcg = v , ycg = v , zcg = v ,
       kxx = v  , kyy = v , kzz = v            )

Keywords not shown in the general form

kxy, kxz and kyz are documented as keywords below but are not shown in the general form of the command above.

Default values

mass ( mass = from hydrostatics at rest,
       xcg = from hydrostatics at rest,
       ycg = from hydrostatics at rest,
       zcg = calm water level at rest,
       kxx = 0.35*B, kyy = 0.25*LPP, kzz = 0.25*LPP,
       kxy = 0, kxz = 0, kyz = 0 )

Keywords

Keyword Description
mass Specifies the mass of the vessel in kg. If not specified, the mass will be calculated based on hydrostatics at rest.
xcg Specifies the x-coordinate of the center of gravity in the offset coordinate system in meters. If not specified, it will be calculated based on hydrostatics at rest.
ycg Specifies the y-coordinate of the center of gravity in the offset coordinate system in meters. If not specified, it will be calculated based on hydrostatics at rest.
zcg Specifies the z-coordinate of the center of gravity in the offset coordinate system in meters. If not specified, it will be set to the calm water level at rest.
kxx Specifies the radius of gyration around the x-axis in the offset coordinate system in meters. If not specified, it will default to 0.35 \( \times \) B.
kyy Specifies the radius of gyration around the y-axis in the offset coordinate system in meters. If not specified, it will default to 0.25 \( \times \) LPP.
kzz Specifies the radius of gyration around the z-axis in the offset coordinate system in meters. If not specified, it will default to 0.25 \( \times \) LPP.
kxy Specifies the radius of gyration for the product of inertia \( I_{xy} \) in the offset coordinate system, where \( K_{xy}=\sqrt{I_{xy}/m} \). This also sets \( K_{yx}=K_{xy} \). If not specified, it will default to zero.
kxz Specifies the radius of gyration for the product of inertia \( I_{xz} \) in the offset coordinate system, where \( K_{xz}=\sqrt{I_{xz}/m} \). This also sets \( K_{zx}=K_{xz} \). If not specified, it will default to zero.
kyz Specifies the radius of gyration for the product of inertia \( I_{yz} \) in the offset coordinate system, where \( K_{yz}=\sqrt{I_{zy}/m} \). This also sets \( K_{zy}=K_{yz} \). If not specified, it will default to zero.

IPOS

Definitions of initial position of the vessel.

General form of command

ipos ( tf = v    , ta = v    , surge = v , sway = v ,
       heave = v , roll = v  , pitch = v , yaw = v  ,
       drift = v , heel = v  , trim = v  ,
       hld2      , hld3      , hld4      , hld5     ,
       hld6                                          )

Default values

Not stated in the source manual.

Keywords

Keyword Description
tf Specifies the draught at the fore perpendicular of the vessel in the offset coordinate system.
ta Specifies the draught at the aft perpendicular of the vessel in the offset coordinate system.
surge Specifies the initial surge displacement in m.
sway Specifies the initial sway displacement in m.
heave Specifies the initial heave displacement in m.
roll Specifies the initial roll angle in degrees.
pitch Specifies the initial pitch angle in degrees.
yaw Specifies the initial yaw angle in degrees.
drift Specifies an initial drift angle in degrees.
heel Specifies an initial heeling angle in degrees.
trim Specifies an initial trim angle in degrees.
hld2 Hold the initial sway position constant during the acceleration ramp.
hld3 Hold the initial heave position constant during the acceleration ramp.
hld4 Hold the initial roll position constant during the acceleration ramp.
hld5 Hold the initial pitch position constant during the acceleration ramp.
hld6 Hold the initial yaw position constant during the acceleration ramp.

TRAJ

Read and use a prescribed trajectory and attitude of the body from file. The columns of the file should be separated by whitespace and be in the order \( t, x, y, z, \phi, \theta, \psi \), where \( t \) is time in seconds, \( x, y, z \) are the position of the center of gravity in the earth-fixed coordinate system and \( \phi, \theta, \psi \) are the roll, pitch and yaw Euler angles in degrees.

General form of command

traj ( file = "my_trajectory_file" , skip = v )

Default values

Not stated in the source manual.

Keywords

Keyword Description
file Name (relative path) of the file containing time series of the trajectory.
skip Skip the first v seconds of the time series.

Notes

  1. The first line of the file is assumed to be a header and will be skipped. The second line must contain the number of data rows. After the last data row, the position and attitude are held fixed and velocities/accelerations are set to zero.

VSHIP

Definitions of the forward speed of the vessel.

General form of command

vship ( vknot = v , reflen = v )
        vm_s  = v

Default values

Not stated in the source manual.

Keywords

Keyword Description
vknot Specifies the forward speed of the vessel in knots.
vm_s Specifies the forward speed of the vessel in m/s.
reflen Specifies the reference length for non-dimensionalizing the speed, i.e. computing Fn and Re, and for dimensionalizing the output to SI units. Typically the LPP of a vessel.

FIXED

Restrictions of the vessel's degrees of freedom.

General form of command

fixed ( surge , sway , heave , roll , pitch , yaw )

Default values

Not stated in the source manual.

Keywords

Keyword Description
surge Restricts the surge motion of the vessel. The vessel is accelerated to the speed of VSHIP by the ramp of XPTD:CONTROL:ACCX and then held exactly at that speed.
sway Restricts the sway motion of the vessel.
heave Restricts the heave motion of the vessel.
roll Restricts the roll motion of the vessel.
pitch Restricts the pitch motion of the vessel.
yaw Restricts the yaw motion of the vessel.

TOWING

Definitions of linear towing spring stiffness and damping. The springs act on the body center of gravity.

General form of command

towing ( k1nd = v , k2nd = v , k3nd = v ,
         k4nd = v , k5nd = v , k6nd = v ,
         k1si = v , k2si = v , k3si = v ,
         k4si = v , k5si = v , k6si = v ,
         b1cr = v , b2cr = v , b3cr = v ,
         b4cr = v , b5cr = v , b6cr = v ,
         b1si = v , b2si = v , b3si = v ,
         b4si = v , b5si = v , b6si = v ,
         yawoff = v , notow               )

Default values

Not stated in the source manual. Soft tow springs are applied in surge, sway and yaw unless notow is given.

Keywords

Keyword Description
k1nd Stiffness in surge, normalized by \( mg/L \), where \( m \) is the mass of the body, \( g \) is the acceleration of gravity and \( L \) is equal to reflen.
k2nd Stiffness in sway, normalized by \( mg/L \).
k3nd Stiffness in heave, normalized by \( mg/L \).
k4nd Stiffness in roll, normalized by \( mgL/\phi \), where \( \phi \) is the roll angle in degrees.
k5nd Stiffness in pitch, normalized by \( mgL/\theta \), where \( \theta \) is the pitch angle in degrees.
k6nd Stiffness in yaw, normalized by \( mgL/\psi \), where \( \psi \) is the yaw angle in degrees.
k1si Stiffness in surge, given in N/m.
k2si Stiffness in sway, given in N/m.
k3si Stiffness in heave, given in N/m.
k4si Stiffness in roll, given in Nm/rad.
k5si Stiffness in pitch, given in Nm/rad.
k6si Stiffness in yaw, given in Nm/rad.
b1cr Damping in surge, given as a fraction of critical damping.
b2cr Damping in sway, given as a fraction of critical damping.
b3cr Damping in heave, given as a fraction of critical damping.
b4cr Damping in roll, given as a fraction of critical damping.
b5cr Damping in pitch, given as a fraction of critical damping.
b6cr Damping in yaw, given as a fraction of critical damping.
b1si Damping in surge, given in N/s.
b2si Damping in sway, given in N/s.
b3si Damping in heave, given in N/s.
b4si Damping in roll, given in Nms.
b5si Damping in pitch, given in Nms.
b6si Damping in yaw, given in Nms.
yawoff Specifies an offset angle in degrees for the yaw spring, e.g. for towing with a leeway/drift angle.
notow By default, soft tow springs are added to the body center of gravity in surge, sway and yaw. This command makes the program not apply any tow springs, making the body completely free.

Notes

  1. Tow spring forces are applied by default and, if not wanted, need to be explicitly deactivated by supplying the notow command.
  2. Even with notow, the surge acceleration is still prescribed during the initial acceleration ramp.

DAMPING

Definitions of various damping mechanisms for the vessel's motions.

General form of command

damping ( b1l = v   , b2l = v   , b3l = v   ,
          b4l = v   , b5l = v   , b6l = v   ,
          b1q = v   , b2q = v   , b3q = v   ,
          b4q = v   , b5q = v   , b6q = v   ,
          b1c = v   , b2c = v   , b3c = v   ,
          b4c = v   , b5c = v   , b6c = v   ,
          b4lnd = v , b4qnd = v , b4cnd = v ,
          rudt = v  , rud1 = v  , rud2 = v  ,
          rud3 = v  , rud4 = v  , rud5 = v  ,
          rud6 = v                            )

Default values

damping ( rudt = 0 )

Keywords

Keyword Description
b1l Additional surge linear damping coefficient in Ns/m.
b2l Additional sway linear damping coefficient in Ns/m.
b3l Additional heave linear damping coefficient in Ns/m.
b4l Additional roll linear damping coefficient in Nms.
b5l Additional pitch linear damping coefficient in Nms.
b6l Additional yaw linear damping coefficient in Nms.
b1q Additional surge quadratic damping coefficient in Ns²/m².
b2q Additional sway quadratic damping coefficient in Ns²/m².
b3q Additional heave quadratic damping coefficient in Ns²/m².
b4q Additional roll quadratic damping coefficient in Nms².
b5q Additional pitch quadratic damping coefficient in Nms².
b6q Additional yaw quadratic damping coefficient in Nms².
b1c Additional surge cubic damping coefficient in Ns³/m³.
b2c Additional sway cubic damping coefficient in Ns³/m³.
b3c Additional heave cubic damping coefficient in Ns³/m³.
b4c Additional roll cubic damping coefficient in Nms³.
b5c Additional pitch cubic damping coefficient in Nms³.
b6c Additional yaw cubic damping coefficient in Nms³.
b4lnd Additional non-dimensional linear roll damping coefficient \( \hat{B}4L=\frac{B4L}{\rho \nabla B^2}\sqrt{\frac{B^2}{2g}} \), where \( B4L \) is the linear roll damping coefficient in Nms, \( \rho \) is the water density, \( \nabla \) is the volume displacement in m³, \( B \) is the beam and \( g \) is the gravitational acceleration in m/s². If specified, overrides b4l.
b4qnd Additional non-dimensional quadratic roll damping coefficient \( \hat{B}4Q=\frac{B4Q}{\rho \nabla B^2}\sqrt{\frac{B^2}{2g}} \), where \( B4Q \) is the quadratic roll damping coefficient in Nms². If specified, overrides b4q.
b4cnd Additional non-dimensional cubic roll damping coefficient \( \hat{B}4C=\frac{B4C}{\rho \nabla B^2}\sqrt{\frac{B^2}{2g}} \), where \( B4C \) is the cubic roll damping coefficient in Nms³. If specified, overrides b4c.
rudt The duration (in seconds) of a linearly decreasing damping to the rigid-body motions at the start of the computation specified by the rud[1-6] command. If not specified, it defaults to 0, i.e. no damping is applied at the start of the computation. Can sometimes be useful to reduce an unwanted initial transient motion.
rud1 The damping coefficient (in Ns/m) of a linearly decreasing damping to the rigid-body surge motion at the start of the computation.
rud2 The damping coefficient (in Ns/m) of a linearly decreasing damping to the rigid-body sway motion at the start of the computation.
rud3 The damping coefficient (in Ns/m) of a linearly decreasing damping to the rigid-body heave motion at the start of the computation.
rud4 The damping coefficient (in Nms) of a linearly decreasing damping to the rigid-body roll motion at the start of the computation.
rud5 The damping coefficient (in Nms) of a linearly decreasing damping to the rigid-body pitch motion at the start of the computation.
rud6 The damping coefficient (in Nms) of a linearly decreasing damping to the rigid-body yaw motion at the start of the computation.

Notes

  1. With a CURRENT the surge, sway and heave damping (b1l, b2l, b3l, b1q, b2q, b3q, b1c, b2c and b3c) act on the velocity through the water. The damping at the start of the computation (rudt, rud1 to rud6) acts on the velocity over ground.

WAVES

Definition of the incident wave field. If not specified, the ambient field is calm water.

General form of command

waves ( regular   , first  , ittc    , hos3   , sc      ,
        irregular   second   jonswap
                    fifth
        ncomp = n , nspr = n , length = [v] , height = [v] ,
        dire = [v], phase = [v] , gamma = v , seed = n     ,
        ss = n    , hs = v   , tz = v , spec = "file.csv"  )
                                tp = v

Default values

waves ( fifth, ittc, ncomp = 40, nspr = 13, gamma = 3.3, seed = 1,
        dire = 180, length = 1.0, height = 0.01, phase = 0 )

Keywords

Keyword Description
regular Regular long-crested waves.
irregular Irregular waves by superposition of 1st-order regular waves based on a wave spectrum.
hos3 Enable the Higher-Order Spectral (HOS3) incident-wave solver. When used, the incident wave field is initialized from the wave definition and then evolved internally by the HOS3 solver. Additional HOS3 settings are defined in XPTD:HOS3.
first 1st-order wave formulation (Airy wave theory).
second 2nd-order wave formulation (Stokes wave theory).
fifth 5th-order wave formulation (Stokes wave theory). This is the default for regular waves.
ittc ITTC spectrum. This is the default for irregular waves if no spectrum type is specified.
jonswap JONSWAP spectrum.
sc Short-crested waves using a \( \cos^2 \) spreading function. If a symmetry plane is enabled, short-crested waves are disabled and the direction is clamped to head/following seas.
ncomp Number of wave components. Default is 40 for irregular waves and 1 for regular waves. The value is forced to an even number if an odd number is provided. The use of multiple wave components for regular waves is not yet fully implemented.
nspr Number of spreading directions when using short-crested waves. By default nspr=13, i.e. a 180°/(13−1) = 15° angle between each direction component is used. The value is forced to an odd number if an even number is provided.
length Wave length of the individual components. If not specified, it defaults to 1.0.
height Wave height of the individual components. If not specified, it defaults to 0.01.
dire Wave direction of the individual components, in degrees. If not specified, it defaults to 180 (head waves). With a symmetry plane enabled, the direction is restricted to head/following seas.
phase Phase of the individual components in degrees (regular waves only). If not specified, it defaults to 0.
gamma Peak enhancement factor \( \gamma \) for JONSWAP spectrum. If not specified, it defaults to a value of 3.3.
seed Seed number for initializing the pseudo-random number generator used for calculating the phase of each irregular wave component. If not specified, it defaults to 1.
spec CSV spectrum file for irregular waves. See the notes below.
ss Sea state, preconfigured from 2 to 8; the values are listed in note 4. Sea states 0–1 are treated as calm water. Values above 8 are not supported. A sea state overrides hs, tz and tp given on the same card.
hs Significant wave height in meters.
tz Zero-crossing period in seconds.
tp Peak period in seconds. If specified, tz is derived from tp based on the chosen spectrum (see note 4).

Notes

  1. Wave height and wave length are given in non-dimensional form based on the reflen.

  2. The spec file must contain two columns: \( f \) [Hz], \( S(f) \) [m²s]. The frequency is in Hz (cycles/s), not rad/s. Comment lines starting with # or ! are ignored. Example:

    # f_Hz, S(f) [m^2*s]
    0.0500, 1.2e-4
    0.1000, 3.5e-3
    0.1500, 2.1e-2
    

    If hos3 is enabled, the CSV spectrum initializes the HOS3 wave field. If hos3 is not enabled, the CSV spectrum is used to build the linear irregular wave components. When spec is used, hs and tz are recomputed from the spectrum and override any provided values.

  3. Irregular-wave period limits. Irregular spectra are internally filtered to a period range. The lower cutoff is at least 2 s and, if HOS3 is enabled, at least XPTD:HOS3:TMIN. For parametric spectra, the upper cutoff is limited to approximately \( 2.3\,T_z \). For CSV spectra, components outside the configured min/max period range are discarded.

  4. Sea states. ss sets the significant wave height \( H_s \) and the zero-crossing period \( T_z \) below. The peak period follows from the chosen spectrum, \( T_z = T_p\,(0.6673 + 0.05037\gamma - 0.00623\gamma^2 + 0.0003341\gamma^3) \), with \( \gamma = 1 \) for ittc; the table gives \( T_p \) for ittc and for jonswap with the default \( \gamma = 3.3 \).

    ss \( H_s \) [m] \( T_z \) [s] \( T_p \) [s], ittc \( T_p \) [s], jonswap
    0–1 calm water
    2 0.30 5.3 7.45 6.82
    3 0.88 5.3 7.45 6.82
    4 1.88 6.2 8.71 7.97
    5 3.25 6.9 9.69 8.87
    6 5.00 8.8 12.36 11.32
    7 7.50 10.7 15.03 13.76
    8 11.50 11.6 16.30 14.92

HOS3 waves

The Higher-Order Spectral (HOS3) solver evolves a periodic free surface using Zakharov's formulation with a third-order approximation of the Dirichlet-to-Neumann operator. It is activated by the hos3 keyword on the WAVES card, and configured by XPTD:HOS3.

What it does. The incident wave field is initialized from the regular/irregular wave definition, then advanced in time internally by HOS3. At each MOTIONS time step, HOS3 is sampled to provide free-surface elevation, potential, and velocities at panel locations.

Domain and periodicity. The HOS3 solution is periodic in both \( x \) and \( y \). The periodic domain size is derived from the free-surface extents defined in the input (see XMTD:FREE and XPTD:DMPZ). Choose the free-surface extents and HOS3 grid resolution so that the shortest resolved wavelength has enough grid points.

Depth. The HOS3 depth is specified by XPTD:HOS3:DRAF in meters and is used in the dispersion relation and vertical scaling. Always set draf to the actual water depth for finite-depth cases; the default value corresponds to deep water.

Period cutoff for irregular HOS3. The minimum period used by the irregular generator is

\[ T_{\min} = \max\left(\text{irregular\_period\_min},\; 2.0\ \text{s},\; \texttt{XPTD:HOS3:TMIN}\right). \]

If TMIN is not set or \( \le 0 \), it falls back to 6.0 s. This cutoff helps avoid very short waves that are poorly resolved on the HOS3 grid.

CSV spectra. Use waves( irre, spec="file.csv", hos3 ) with a two-column file: \( f \) [Hz], \( S(f) \) [m²s]. Directional spreading is still controlled by sc, nspr and dire.

Output. When HOS3 is enabled, MOTIONS writes a ParaView data collection file COMMAND_FILE_hos3.pvd that references VTU files in the hos3/ directory, named COMMAND_FILE_hos3_NNNNN.vtu. This output is independent of the XPTD:SAVE settings.

Limitations

  • Potential-flow model: no viscosity, vorticity, or wave breaking.
  • Single-valued free surface (no overturning).
  • Periodic in both \( x \) and \( y \).
  • Constant depth only (no bathymetry variation).
  • Best for small to moderate steepness \( ka \).

For finite depth in HOS3, you must also model the finite-depth free surface with panels so that the rest of MOTIONS is consistent.

Examples:

xflow
  waves( irre, ss=5, hos3 )
end
xptd
  hos3( nx=1024, ny=4, draf=40, tmin=6 )
end
xflow
  waves( irre, spec="../spectrum.csv", hos3, sc, nspr=13, dire=180, seed=1 )
end
xptd
  hos3( nx=1024, ny=64, draf=40, tmin=4 )
end
xflow
  waves( irre, spec="../spectrum.csv", hos3, dire=180, seed=1 )
end
xptd
  hos3( nx=1024, ny=4, draf=40, tmin=4 )
end
xflow
  waves( regu, length=1.2, height=0.02, dire=180, phas=0, hos3 )
end
xptd
  hos3( nx=512, ny=4, draf=40 )
end

WIND

Definitions of global true wind velocity and direction and wind force coefficients. The wind model itself is described under Wind.

General form of command

wind ( wdir = [v]  , wspeed = [v] , coef = "coeff.csv" ,
       rho = v     , al = v       , at = v   , refh = v ,
       power       , expo = v     , tmax = v            )
       logl
       uwind
       conl

Default values

wind ( wdir = 0, wspeed = 0, rho = 1.225, al = 0, at = 0,
       refh = 10, logl, expo = 1/9, tmax = 300.0 )

Keywords

Keyword Description
wdir Specifies the horizontal direction of the wind velocity in degrees, where 0° means that the wind velocity is along the x-axis of the earth-fixed coordinate system and coming from north direction, and 90° means that the wind velocity is coming from the positive y-axis of the earth-fixed coordinate system. If not specified, it defaults to 0°. For a case without initial angles applied to the hull, 0° means the wind is coming from the bow, 90° from portside.
wspeed Specifies the reference wind speed \( v_\text{ref} \) in m/s. If not specified, it defaults to \( v_\text{ref}=0 \).
coef File name of tabulated area-based wind force coefficients. See the notes below.
rho Specifies the density of the air in kg/m³. If not specified, it defaults to 1.225 kg/m³.
at Specifies the lateral area \( A_T \) (affected by the wind) of the body in m². If not specified, it defaults to \( A_T=0 \).
al Specifies the lateral area \( A_L \) (affected by the wind) of the body in m². If not specified, it defaults to \( A_L=0 \).
power Sets the steady wind profile to follow power law. If not specified, it defaults to log law.
logl Sets the steady wind profile to follow log law. If not specified, it defaults to log law.
uwind Specifies to use the unsteady spatio-temporal wind model; the mean wind profile is log law.
conl Sets the steady wind profile to have a constant profile. If not specified, it defaults to log law.
expo Exponent \( \alpha \) in the power-law boundary layer profile. If not specified, it defaults to 1/9.
tmax Maximum time period of the unsteady wind components. If not specified, it defaults to 300.0 s.
refh Specifies the reference height at which the reference wind speed (for the constant wind model) \( v_\text{ref} \) is specified. If not specified, it defaults to \( refh = 10 \) m.

Notes

  1. The coef file holds coefficients based on area and \( v_\text{ref} \), expressed in the initial coordinate system \( O_i x_i y_i z_i \). It expects a comma-separated file with five columns containing values for (without a header and in this order) \( \alpha \) [°], \( C_X \) [-], \( C_Y \) [-], \( C_K \) [-] and \( C_N \) [-], where \( \alpha \) is the apparent wind angle (the direction the apparent wind is coming from, relative to the heading) from 0° to 360°, and \( C_X \), \( C_Y \), \( C_K \) and \( C_N \) are wind force and moment coefficients in surge, sway, roll and yaw direction respectively.

    The coefficients should be non-dimensionalized as follows, where \( A_L \) and \( A_T \) are the lateral and transverse above-water area and \( L \) is the ship length:

    \[ C_X=F_X/(0.5 \rho v^2 A_T) \]
    \[ C_Y=F_Y/(0.5 \rho v^2 A_L) \]
    \[ C_K=M_X/(0.5 \rho v^2 A_L^2 / L) \]
    \[ C_N=M_Z/(0.5 \rho v^2 A_L L) \]
  2. When the wind forces and moments are evaluated based on the coefficients, the true wind velocity is evaluated at a vertical position 10 m above the body center of gravity.


CURRENT

Definition of a steady, uniform water current. The current is horizontal and has the same speed and direction at every position and depth. How it enters the flow solution and the force models is described under Water current.

General form of command

current ( speed = v , dire = v )

Default values

current ( speed = 0, dire = 180 )

Keywords

Keyword Description
speed Speed of the current in m/s. If not specified, it defaults to 0.
dire Direction the current is coming from, in degrees, in the earth-fixed coordinate system: 0° means that the current is coming from the positive x-axis and 90° that it is coming from the positive y-axis. For a case without initial angles applied to the hull, 0° means the current is coming from the bow, 90° from portside and 180° from astern. This is the convention of wdir in WIND. If not specified, it defaults to 180°.

Notes

  1. The wave direction dire of WAVES is the direction the waves travel towards (180° is head waves), whereas the current, like the wind, is given by the direction it is coming from. A current with dire=0 therefore runs the same way as waves with dire=180.

  2. Positions, velocities, the course and the speed in the output are relative to the ground, and so is the speed given with VSHIP. A vessel sailing at 10 kn over ground against a 2 kn current moves through the water at 12 kn, and its resistance, sinkage and trim are those of 12 kn in still water.

  3. Regular and irregular incident waves are carried by the current: the wave length is the one given with WAVES, and the wave frequency seen at an earth-fixed point is shifted accordingly (see Water current). An incident wave field from the hos3 solver is not carried by the current.

  4. The current is present at full strength from the first time step, without a ramp. A vessel that starts at rest meets it abruptly, which gives a transient at the start of the record.


FLUID

Definitions of fluid properties.

General form of command

fluid ( density = v , gravity = v )

Keywords not shown in the general form

temperature is documented as a keyword below but is not shown in the general form of the command above.

Default values

fluid ( density = 1026.021, temperature = 15, gravity = 9.80665 )

Keywords

Keyword Description
density Specifies the density of the fluid in kg/m³. If not specified, it defaults to 1026.021 kg/m³ (density of seawater at 15 °C).
temperature Specifies the temperature of the fluid in °C. If not specified, it defaults to 15 °C.
gravity Specifies the gravitational acceleration in m/s². If not specified, it defaults to 9.80665 m/s².

FSPROBES

Definition of free surface probes in the initial coordinate system \( O_i x_i y_i z_i \) where free surface elevation and velocities in the earth-fixed coordinate system \( Oxyz \) are saved as time series to the file COMMAND_FILE_FSPROBES.csv.

General form of command

fsprobes ( grid       , nx = n     , ny = n     ,
           xmin = v   , xmax = v   , ymin = v   ,
           ymax = v   , nprobes = n , x = [v]   ,
           y = [v]                               )

Default values

Not stated in the source manual.

Keywords

Keyword Description
grid Creates a grid of free surface probes based on nx, ny, xmin, xmax, ymin and ymax.
nx Number of free surface probes in the \( x_i \)-direction when defining a grid using grid.
ny Number of free surface probes in the \( y_i \)-direction when defining a grid using grid.
xmin The lower edge of the grid in the \( x_i \)-direction when defining a grid using grid.
xmax The upper edge of the grid in the \( x_i \)-direction when defining a grid using grid.
ymin The lower edge of the grid in the \( y_i \)-direction when defining a grid using grid.
ymax The upper edge of the grid in the \( y_i \)-direction when defining a grid using grid.
nprobes The number of probes when specifying the coordinates explicitly using x and y.
x The array of nprobes \( x_i \)-coordinates of probes when specifying them explicitly.
y The array of nprobes \( y_i \)-coordinates of probes when specifying them explicitly.

MPNT

Definition of points in the offset coordinate system where motions, velocities and accelerations in the earth-fixed coordinate system, and accelerations in the body-fixed reference frame, are saved as time series to the file COMMAND_FILE_MPOINTS.csv.

General form of command

mpnt ( npoints = n , x = [v] , y = [v] , z = [v] )

Default values

Not stated in the source manual.

Keywords

Keyword Description
npoints Specifies the number of points.
x Specifies the x-coordinates of the points given in the offset coordinate system.
y Specifies the y-coordinates of the points given in the offset coordinate system.
z Specifies the z-coordinates of the points given in the offset coordinate system.

SYMMETRY

Defines whether or not an \( x_c \)-\( z_c \) symmetry plane should be used. By default, the symmetry plane is enabled (half-hull).

General form of command

symmetry ( nosym )

Default values

symmetry plane enabled (half-hull)

Keywords

Keyword Description
nosym No symmetry plane is used in the computation.

MANOEUVRING

Definition of manoeuvring forces either in the Bis system, the Prime system or the Generic formulation. See Manoeuvring forces for the underlying models.

General form of command

manoeuvring ( prime     , xvr0 = v  , xrr0 = v  , xvv0 = v  ,
              xvvvv = v , yv00 = v  , yr00 = v  , yvvv = v  ,
              yvvr = v  , yvrr = v  , yrrr = v  , nv00 = v  ,
              nr00 = v  , nvvv = v  , nvvr = v  , nvrr = v  ,
              nrrr = v  , nuvm = v  , yurp = v  , nurp = v  ,
              reluv                                          )
manoeuvring ( bis       , xvr0 = v  , xrr0 = v  , xvv0 = v  ,
              yur0 = v  , yuv0 = v  , yuur = v  , yuuv = v  ,
              nur0 = v  , nuv0 = v  , nuur = v  , nuuv = v  ,
              cd = v    , cdlev = v , nuvm = v  , yurp = v  ,
              nurp = v  , reluv                              )
manoeuvring ( generic   , xuu0 = v  , yvv0 = v  , yrr0 = v  ,
              yuv0 = v  , zww0 = v  , zqq0 = v  , zuw0 = v  ,
              kpp0 = v  , mww0 = v  , mqq0 = v  , muw0 = v  ,
              muwm = v  , nvv0 = v  , nrr0 = v  , nuv0 = v  ,
              nuvm = v                                       )

Default values

All manoeuvring force coefficients default to 0 if not specified.

Keywords — common

Keyword Description
prime Use the implementation of manoeuvring force coefficients based on the Prime system.
bis Use the implementation of manoeuvring force coefficients based on the Bis system.
generic Use the implementation of manoeuvring force coefficients based on the Generic formulation. It includes linearized coefficients for drag and lift for all 6DOF. All the coefficients are calculated in SI units.
nuvm Yaw moment coefficient \( N_{uvm} = (A_{22}-A_{11})/M \) representing the Munk contribution which will be subtracted. Defaults to 0.
yurp Sway force coefficient \( Y_{urp} = Y_{ur}/(M\cdot g) \) representing the pure potential flow contribution from centrifugal force which will be subtracted. Defaults to 0.
nurp Yaw moment coefficient \( N_{uv}=N_{uv}/(M\cdot g\cdot L_{pp}) \) representing the pure potential flow contribution from centrifugal force which will be subtracted. Defaults to 0.
reluv Prime and Bis systems only. In addition to the current (note 2), the orbital velocity of the incident waves is subtracted from the surge and sway velocities of the manoeuvring model. It is taken at the origin of the initial coordinate system (midship, calm water plane). See note 3.

Keywords — Prime system

Keyword Description
xvv0 Surge force coefficient \( X'_{vv} \). Defaults to 0.
xvr0 Surge force coefficient \( X'_{vr} \). Defaults to 0.
xrr0 Surge force coefficient \( X'_{rr} \). Defaults to 0.
xvvvv Surge force coefficient \( X'_{vvvv} \). Defaults to 0.
yv00 Sway force coefficient \( Y'_{v} \). Defaults to 0.
yr00 Sway force coefficient \( Y'_{r} \). Defaults to 0.
yvvv Sway force coefficient \( Y'_{vvv} \). Defaults to 0.
yvvr Sway force coefficient \( Y'_{vvr} \). Defaults to 0.
yvrr Sway force coefficient \( Y'_{vrr} \). Defaults to 0.
yrrr Sway force coefficient \( Y'_{rrr} \). Defaults to 0.
nv00 Yaw force coefficient \( N'_{v} \). Defaults to 0.
nr00 Yaw force coefficient \( N'_{r} \). Defaults to 0.
nvvv Yaw force coefficient \( N'_{vvv} \). Defaults to 0.
nvvr Yaw force coefficient \( N'_{vvr} \). Defaults to 0.
nvrr Yaw force coefficient \( N'_{vrr} \). Defaults to 0.
nrrr Yaw force coefficient \( N'_{rrr} \). Defaults to 0.

Keywords — Bis system

Keyword Description
xvr0 Surge force coefficient \( X''_{vr} \). Defaults to 0.
xrr0 Surge force coefficient \( X''_{rr} \). Defaults to 0.
xvv0 Surge force coefficient \( X''_{vv} \). Defaults to 0.
yur0 Sway force coefficient \( Y''_{ur} \). Defaults to 0.
yuv0 Sway force coefficient \( Y''_{uv} \). Defaults to 0.
yuur Sway force coefficient \( Y''_{uur} \). Defaults to 0.
yuuv Sway force coefficient \( Y''_{uuv} \). Defaults to 0.
nur0 Yaw moment coefficient \( N''_{ur} \). Defaults to 0.
nuv0 Yaw moment coefficient \( N''_{uv} \). Defaults to 0.
nuur Yaw moment coefficient \( N''_{uur} \). Defaults to 0.
nuuv Yaw moment coefficient \( N''_{uuv} \). Defaults to 0.
cd Cross-flow drag coefficient \( C_d \). Defaults to 0.
cdlev Longitudinal moment lever offset, in percent of reflen, for yaw moment due to cross-flow drag. Defaults to 0.

Keywords — Generic formulation

Keyword Description
xuu0 Surge drag force coefficient \( X_{uu} \). Defaults to 0. If adding global viscous damping and form factor, this coefficient should be set to 0.
yvv0 Sway cross-flow drag force coefficient \( Y_{vv} \). Defaults to 0.
yrr0 Sway cross-flow drag force coefficient \( Y_{rr} \). Defaults to 0.
yuv0 Sway body lift force coefficient \( Y_{uv} \). Defaults to 0.
zww0 Heave cross-flow drag force coefficient \( Z_{ww} \). Defaults to 0.
zqq0 Heave cross-flow drag force coefficient \( Z_{qq} \). Defaults to 0.
zuw0 Heave body lift force coefficient \( Z_{uw} \). Defaults to 0.
kpp0 Roll cross-flow drag moment coefficient \( K_{pp} \). Defaults to 0.
mww0 Pitch cross-flow drag moment coefficient \( M_{ww} \). Defaults to 0.
mqq0 Pitch cross-flow drag moment coefficient \( M_{qq} \). Defaults to 0.
muw0 Pitch body lift moment coefficient \( M_{uw} \). Defaults to 0.
muwm Pitch moment coefficient \( M_{uwm} \) representing the Munk contribution which will be subtracted. Defaults to 0. If \( M_{uw} \) does not include the potential contribution, the Munk moment should be set to 0.
nvv0 Yaw cross-flow drag moment coefficient \( N_{vv} \). Defaults to 0.
nrr0 Yaw cross-flow drag moment coefficient \( N_{rr} \). Defaults to 0.
nuv0 Yaw moment body lift coefficient \( N_{uv} \). Defaults to 0.
nuvm Yaw moment coefficient \( N_{uvm} = (A_{22}-A_{11})/M \) representing the Munk contribution which will be subtracted. Defaults to 0. If \( N_{uv} \) does not include the potential contribution, the Munk moment should be set to 0.

Notes

  1. Manoeuvring derivative names shorter than 4 characters are filled in with trailing 0 (zeros) for compatibility with the GUI.

  2. With a CURRENT the velocities of all three formulations, including the local sway velocity of the cross-flow drag in the Bis system, are the velocities through the water, i.e. the current velocity is subtracted from the velocity over ground.

  3. Without reluv the incident waves do not enter the manoeuvring forces. With reluv the wave orbital velocity at the origin of the initial coordinate system is subtracted as well, unfiltered, so the linear terms of the manoeuvring forces then vary at the wave encounter frequency. The yaw rate and the cross-flow drag term are not affected by reluv.


SUBBODY

Sub-bodies are defined by their own body-fixed coordinate system and can be given a type, e.g. rudder or propeller.

Specifying a sub-body type is optional and will associate the sub-body with a force model and allow for additional type-specific commands. Without a type, the sub-body is only a body-fixed coordinate system with an optional mesh for plotting, and it adds no forces to the parent body. The force models themselves are described in Sub-body Force Models.

Some sub-body types generate additional output time series files: COMMAND_FILE_[SUBBODY_TYPE].csv.

General form of command

subbody ( extf      , id = n    , pos = [v,v,v,v,v,v] ,
          bkeel
          skeg
          rudder
          fin
          engine
          propeller
          thruster
          flettner
          sail
          mesh = "filename"     , xtra = v  , ytra = v  , ztra = v  ,
          xrot = v  , yrot = v  , zrot = v  , xsca = v  , ysca = v  ,
          zsca = v  , ymir      , nrev      , mxonly    ,
          length = v , breadth = v , cd = v ,
          wing = "filename"     , coef = "filename"     ,
          head = v  , active    , strf      , stra = v  , istra = v ,
          course = v
          zz = v
          zzdh = [v,v]
          tc = v
          ostra = v , staa = v  , stab = v  , dist = v  , delta = v ,
          rwake     , dmax = v  , rate = v  , span = v  , cr = v    ,
          ct = v    , rotc = v  , sweep = v , thr = v   , npoi = n  ,
          x = [v,...,v]         , z = [v,...,v]         ,
          speed = v , pmcr = v  , nmcr = v  , pini = v  , nini = v  ,
          rps = v
          power = v
          crps = v
          moi = v   , gear = v  , qlim      , diameter = v          ,
          jktkq = "filename"    , vtwe = "filename"     ,
          right     , setp = v  , kp = v    , ti = v    , td = v    ,
          left
          amsh      , noam      , eforce = [v,v,v]      , tang      ,
          thli      , twake     , flhg      , dmep      , shan       )

Default values

Not stated in the source manual as a whole; per-keyword defaults are given in the tables below.

Keywords — general

Keyword Description
id Sub-body ID.
pos Linear and angular position of the sub-body origin in the parent body offset coordinate system [m, m, m, °, °, °].
xtra Translate the mesh in \( x_s \)-direction in the sub-body coordinate system [m].
ytra Translate the mesh in \( y_s \)-direction in the sub-body coordinate system [m].
ztra Translate the mesh in \( z_s \)-direction in the sub-body coordinate system [m].
xrot Rotate the mesh in \( x_s \)-direction in the sub-body coordinate system [°].
yrot Rotate the mesh in \( y_s \)-direction in the sub-body coordinate system [°].
zrot Rotate the mesh in \( z_s \)-direction in the sub-body coordinate system [°].
xsca Scale the mesh in \( x_s \)-direction [-].
ysca Scale the mesh in \( y_s \)-direction [-].
zsca Scale the mesh in \( z_s \)-direction [-].
ymir Change sign of all \( y_s \)-coordinates, including the \( y_s \)-coordinate of the normal vector.
nrev Normal of faces will point the opposite direction.
mxonly Only consider the roll moment generated by the sub-body. Applicable to the bilge keel, skeg and fin force models.
mesh File name of imported mesh used only for plotting. Expects an OBJ file.

Notes

  1. It is possible to import a quad mesh for plotting purposes (the mesh is not considered by the potential flow solver) and, for some types, the program can generate a simple mesh automatically — also only for plotting purposes.
  2. Depending on the type, a sub-body may be controlled with a simple PID controller.

External constant body-fixed force

This simple force model adds a constant linear body-fixed force acting on the body. The force acts through the origin of the sub-body coordinate system defined with the pos command.

Keyword Description
extf Associate the sub-body with the external force model.
eforce Force vector for the external force, defined in the sub-body coordinate system [N].

Bilge keel

Bilge keels are modelled as flat plates that give rise to two force components: a lift force perpendicular to the relative fluid velocity \( F_l \) and a drag force in the normal direction \( F_d \).

Bilge keel geometry: length along the x-axis, breadth along the z-axis of the sub-body coordinate system, with the upper edge mounted on the hull.

Keyword Description
bkeel Associate the sub-body with the bilge keel model.
length Length of bilge keel [m].
breadth Breadth of bilge keel [m].
cd Drag coefficient for bilge keel. If not specified it defaults to \( C_d=2 \).
noam Do not compute sub-body added mass.
amsh Create simple automatic mesh (panels for plotting).

Skeg

Skegs are modelled as flat plates that give rise to two force components: a lift force perpendicular to the relative fluid velocity \( F_l \) and a drag force in the normal direction \( F_d \).

The skeg planform polygon is defined by an even number of points npoi with corresponding \( (x_s, y_s) \)-coordinates in the sub-body coordinate system \( O_z x_s y_s z_s \).

Skeg planform polygon: the points are ordered so that quadrilaterals can be formed in the x-z plane of the sub-body coordinate system. The upper edge is the side mounted on the hull.

Keyword Description
skeg Associate the sub-body with the skeg model.
cd Drag coefficient for skeg.
npoi Number of points in the skeg profile polygon.
x Skeg profile polygon \( x_s \)-coordinates in the offset coordinate system [m].
z Skeg profile polygon \( z_s \)-coordinates in the offset coordinate system [m].
noam Do not compute sub-body added mass.
amsh Create simple automatic mesh (panels for plotting).

Notes

  1. The order of the points is made such that quadrilaterals in the \( x_s z_s \)-plane can be made, as illustrated above.

Rudder

Rudder model that may consider the effect of a propeller slipstream. More details on the modelling can be found under Rudder.

Keyword Description
rudder Associate the sub-body with the rudder and autopilot model.
heading Heading autopilot mode: target heading [°].
course Course autopilot mode: target course [°].
zz Zig-zag autopilot mode: rudder and heading angle (when both angles are the same) [°].
zzdh Zig-zag autopilot mode: rudder and heading angle respectively (when the angles are not the same) [°].
tc Turning circle autopilot mode: rudder angle [°].
coef File name of tabulated rudder lift and drag coefficients. Expects a comma-separated file with three columns containing \( \alpha \) [-], \( C_L \) [-] and \( C_D \) [-]. Values outside the range of the given \( \alpha \) will be extrapolated, therefore it is highly recommended to include negative values as well. The values have to be sorted starting from the smallest negative \( \alpha \) to the biggest positive one. The geometrical characteristics are still needed to approximate the effects of the propeller and the straightening factor.
kp PID controller \( K_\text{p} \). If not specified it defaults to \( K_\text{p}=1 \).
ti PID controller \( T_\text{i} \). If not specified it defaults to \( T_\text{i}=1 \times 10^{12} \), i.e. practically cancels the integral term.
td PID controller \( T_\text{d} \). If not specified it defaults to \( T_\text{d}=0 \), i.e. cancels the derivative term.
strf Flow straightening factor from file. The file specifies the straightening factor as a function of the drift angle. It expects a comma-separated file without header. The columns are \( \beta \) [deg] and \( \kappa \). In case of multiple rudders it expects \( \beta \) [deg], \( \kappa_{inner} \) and \( \kappa_{outer} \). The values for \( \beta \) should be both positive and negative.
stra Flow straightening factor \( \kappa \) for a single-rudder configuration [-]. If not specified, it defaults to \( \kappa=0.6 \).
istra Flow straightening factor for inner rudder in a turn when having a twin-rudder configuration [-]. If not specified, it defaults to \( \kappa=0.1 \).
ostra Flow straightening factor for outer rudder in a turn when having a twin-rudder configuration [-]. If not specified, it defaults to \( \kappa=0.55 \).
staa Specifies the constant \( A \) in the stall coefficient \( k_s(\alpha)=(1 + A \alpha^B) \). If not specified, it defaults to \( A=-1.1 \).
stab Specifies the constant \( B \) in the stall coefficient \( k_s(\alpha)=(1 + A \alpha^B) \). If not specified, it defaults to \( B=1.5 \).
dist Distance \( x \) between rudder and propeller [m]. If not specified, it defaults to \( x=1 \) m.
delta Initial rudder angle \( \delta \) [°]. If not specified, it defaults to \( \delta=0° \).
rwake Wake fraction applied to rudder inflow calculations.
frwake File for wake fraction as a function of drift angle applied to rudder inflow calculations. It expects a comma-separated file without header. The columns are \( \beta \) [deg] and rwake.
tang Rudder toe angle. If not specified, it defaults to 0°.
dmax Maximum rudder angle \( \delta_\text{max} \) [°]. If not specified, it defaults to \( \delta_\text{max}=35° \).
rate Maximum rudder rate [°/s]. If not specified it defaults to 2.32 °/s, which is a typical rate for a full scale ship.
span Rudder span \( s \) [m].
cr Rudder root chord \( c_r \) [m].
ct Rudder tip chord \( c_t \) [m].
rotc Rudder rotation axis position as fraction of root chord from the leading edge [-].
sweep Rudder sweep angle \( \Omega \) of quarter chord [°]. If not specified, it defaults to \( \Omega=0° \).
thr Rudder thickness ratio \( r_t \) [-], e.g. for a NACA0018 section profile \( r_t=0.18 \). If not specified, it defaults to \( r_t=0.18 \).
noam Do not compute sub-body added mass.
amsh Create automatic mesh (panels for plotting), based on NACA00-type section.

Fin

Fin model that considers the effect of the boundary layer. See Fin.

Keyword Description
fin Associate the sub-body with the fin and fin controller model.
span Fin span \( s \) [m].
cr Fin root chord \( c_r \) [m].
ct Fin tip chord \( c_t \) [m].
rotc Fin rotation axis position as fraction of root chord from the leading edge [-].
sweep Fin sweep angle \( \Omega \) of quarter chord [°]. If not specified, it defaults to \( \Omega=0° \).
thr Fin thickness ratio \( r_t \) [-], e.g. for a NACA0012 section profile \( r_t=0.12 \). If not specified, it defaults to \( r_t=0.12 \).
active Active roll stabilization mode. Fin angle control is based on hull roll angle.
delta Initial fin angle \( \delta \) [°]. If not specified, it defaults to \( \delta=0° \).
dmax Maximum fin angle \( \delta_\text{max} \) [°]. If not specified, it defaults to \( \delta_\text{max}=30° \).
rate Maximum fin rate [°/s]. If not specified it defaults to 20 °/s.
staa Specifies the constant \( A \) in the stall coefficient \( k_s(\alpha)=(1 + A \alpha^B) \). If not specified, it defaults to \( A=-1.1 \).
stab Specifies the constant \( B \) in the stall coefficient \( k_s(\alpha)=(1 + A \alpha^B) \). If not specified, it defaults to \( B=1.5 \).
setp PID controller set-point, i.e. target roll angle [°]. If not specified it defaults to zero.
kp PID controller \( K_\text{p} \). If not specified it defaults to \( K_\text{p}=1 \). A higher value is recommended for more damping.
ti PID controller \( T_\text{i} \). If not specified it defaults to \( T_\text{i}=1 \times 10^{12} \), i.e. practically cancels the integral term. However, a value of approximately one quarter of the roll period, if known, can be a good starting point.
td PID controller \( T_\text{d} \). If not specified it defaults to \( T_\text{d}=0 \), i.e. cancels the derivative term. Normally not used for fin control.
noam Do not compute sub-body added mass.
amsh Create automatic mesh (panels for plotting), based on NACA00XX profile.

Engine

2-stroke engine model which may consider the effect of torque limitation. See Engine.

Keyword Description
engine Associate the sub-body with the engine model.
speed Control engine power for target speed [kn].
rps Control engine power for target engine rate [1/s].
power Control engine power for target power [W].
crps Run engine at constant engine rate [1/s].
pmcr Engine MCR power [W].
nmcr Engine rate at MCR power [1/s].
pini Engine initial power [W].
nini Engine initial rate [1/s].
moi Engine rotational moment of inertia [kg m²].
gear Engine gearbox ratio \( r_g \) (engine rate/propeller rate) [-]. If not specified, it defaults to \( r_g=1 \).
qlim Consider engine torque limitation.
kp PID controller \( K_\text{p} \). If not specified it defaults to \( K_\text{p}=1 \).
ti PID controller \( T_\text{i} \). If not specified it defaults to \( T_\text{i}=1 \times 10^{12} \), i.e. practically cancels the integral term.
td PID controller \( T_\text{d} \). If not specified it defaults to \( T_\text{d}=0 \), i.e. cancels the derivative term.

Propeller

Constant pitch propeller model based on tabulated propulsion characteristics and propeller open water characteristics. See Propeller.

Keyword Description
propeller Associate the sub-body with the propeller model.
diameter Propeller diameter [m].
jktkq File name of tabulated propeller open-water coefficients. Expects a comma-separated file with three columns containing \( J \) [-], \( K_T \) [-] and \( K_Q \) [-].
vtwe File name of tabulated propulsion coefficients. Expects a comma-separated file with four columns containing ship speed \( V_S \) [m/s], thrust deduction factor \( t \) [-], Taylor wake fraction \( w_T \) [-] and relative rotative efficiency \( \eta_R \) [-].
right Propeller rotation direction (right-turning/clockwise).
left Propeller rotation direction (left-turning/anti-clockwise).

Thruster

Constant rps azimuth thrusters. Propulsion characteristics and propeller open water characteristics are read from tables specified by the user; they have the same format as the ones for the propeller. It is possible to approximate a strut, modelled with NACA profiles, and to account for the lift produced by the strut. See Thruster.

Keyword Description
thruster Associate the sub-body with the thruster model.
posthrus Linear and angular position of the propeller disc origin. The distances are specified from the thruster origin, which coincides with the rotation point of the strut [m, m, m, °, °, °].
heading Heading autopilot mode: target heading [°].
course Course autopilot mode: target course [°].
zz Zig-zag autopilot mode: rudder and heading angle (when both angles are the same) [°].
zzdh Zig-zag autopilot mode: rudder and heading angle respectively (when the angles are not the same) [°].
tc Turning circle autopilot mode: rudder angle [°].
diameter Propeller diameter [m] of the thruster.
jktkq File name of tabulated propeller open-water coefficients. Expects a comma-separated file with three columns containing \( J \) [-], \( K_T \) [-] and \( K_Q \) [-].
vtwe File name of tabulated propulsion coefficients. Expects a comma-separated file with four columns containing ship speed \( V_S \) [m/s], thrust deduction factor \( t \) [-], Taylor wake fraction \( w_T \) [-] and relative rotative efficiency \( \eta_R \) [-].
right Propeller rotation direction (right-turning/clockwise).
left Propeller rotation direction (left-turning/anti-clockwise).
rps Constant rps for the propeller [1/s]. If not specified, it defaults to 1.0. During the run, only an external controller can change it.
moi Propeller rotational moment of inertia [kg m²].
delta Initial thruster angle \( \delta \) [°]. If not specified, it defaults to \( \delta=0° \).
tang Toe angle: rest thruster angle \( \delta \) [°]. If not specified, it defaults to \( \delta=0° \).
dmax Maximum thruster angle \( \delta_\text{max} \) [°]. If not specified, it defaults to \( \delta_\text{max}=180° \).
rate Maximum thruster rate [°/s]. If not specified it defaults to 2.32 °/s.
span Strut span \( s \) [m].
cr Strut root chord \( c_r \) [m].
ct Strut tip chord \( c_t \) [m].
rotc Strut rotation axis position as fraction of root chord from the leading edge [-].
sweep Strut sweep angle \( \Omega \) of quarter chord [°]. If not specified, it defaults to \( \Omega=0° \).
thr Strut thickness ratio \( r_t \) [-], e.g. for a NACA0018 section profile \( r_t=0.18 \). If not specified, it defaults to \( r_t=0.18 \).
kp PID controller \( K_\text{p} \). If not specified it defaults to \( K_\text{p}=1 \).
ti PID controller \( T_\text{i} \). If not specified it defaults to \( T_\text{i}=1 \times 10^{12} \), i.e. practically cancels the integral term.
td PID controller \( T_\text{d} \). If not specified it defaults to \( T_\text{d}=0 \), i.e. cancels the derivative term.
stra Flow straightening factor \( \kappa \) for a single-thruster configuration [-]. If not specified, it defaults to \( \kappa=0.6 \).
istra Flow straightening factor for inner thruster in a turn when having a twin-thruster configuration [-]. If not specified, it defaults to \( \kappa=0.1 \).
ostra Flow straightening factor for outer thruster in a turn when having a twin-thruster configuration [-]. If not specified, it defaults to \( \kappa=0.55 \).
twake Wake fraction for the strut [-]. If not specified, it defaults to twake=0.0.
thli Include the lift produced by the strut. If not specified it defaults to thli=false.
noam Do not compute sub-body added mass.
amsh Create automatic mesh (panels for plotting), based on NACA00-type section.

Wind propulsion systems

Add wind propulsion systems. This includes a rigid sail or a Flettner rotor used to generate an additional force. The wsail command is required to include a rigid wing sail, flettner to include Flettner rotors. The WIND command must be included as well, to specify wind speed and direction. The origin of the sails is located on the leading edge of the root chord; for the Flettner rotor, at the center of the cylinder.

Keyword Description
wps Specifies that a wind propulsion system is in use.

Wing sail

Includes a rigid sail. A coef command must be present to read lift and drag coefficients. A wing command has to be included as well, to read the geometry of the wing.

General form of command

subbody ( wps , wsail , pos = [v,v,v,v,v,v] , sheet = v ,
          walfa = v   , maxs = v            , maxr = v  ,
          coef = "filename.csv"             ,
          wing = "filename.csv"                          )
Keyword Description
wsail Associate the sub-body with the wsail model.
pos Linear and angular position of the sub-body origin in the parent body offset coordinate system [m, m, m, °, °, °].
sheet The initial sheeting angle of the sail [deg] measured from the ship centerline. If walfa is not specified, the sheeting angle is kept constant during the simulations.
walfa Triggers the PID controller for maintaining the sails at a constant angle of attack, walfa [deg], relative to the incoming air flow.
maxs Maximum sheeting angle [deg] the PID controller is limited to.
maxr Maximum rate of sheet angle the PID controller can achieve [deg/s].
coef File name of the tabulated lift and drag coefficients for the sail as a function of the angle of attack. Expects a comma-separated file with three columns containing values for (without a header and in this order) \( \alpha \) [°], \( C_D \) [-], \( C_L \) [-], where \( \alpha \) is the apparent wind angle (relative heading) and \( C_L \), \( C_D \) are lift and drag force coefficients.
wing File name of the wing geometry containing, in order: the distance from the root, lateral position of the leading edge and lateral position of the trailing edge for each section of the wing. Expects a comma-separated file with three columns.

Flettner rotor

Includes a Flettner rotor used to generate an additional force from the wind interaction. The default is a Flettner rotor spinning in the anti-clockwise direction.

General form of command

subbody ( wps , flettner , pos = [v,v,v,v,v,v] , diam = v ,
          flhg = v , rps = v  , dmep = v , right , amsh   ,
                                           left
          coef = "filename.csv"           , flin           )
Keyword Description
flettner Associate the sub-body with the flettner model.
diam The diameter of the Flettner rotor [m].
flhg The height of the Flettner rotor [m] from the deck.
rps The rps of the Flettner rotor [1/s]. The rotor will spin at constant rps throughout the whole simulation.
dmep The diameter of the end plate of the Flettner rotor [m].
right The rotational direction of the Flettner rotor: right-turning/clockwise.
left The rotational direction of the Flettner rotor: left-turning/anti-clockwise.
amsh Create an automatic mesh for plotting.
flin Include the interaction between Flettner rotors with a lifting line method.
coef File name of the tabulated lift and drag coefficients for the Flettner rotor as a function of the spinning ratio. Expects a comma-separated file with three columns containing values for (without a header and in this order) \( SR \) [-], \( C_L \) [-], \( C_D \) [-], where \( SR \) is the spinning ratio and \( C_L \) and \( C_D \) are lift and drag force coefficients.

External controller

External controller parameters and input. It is possible to connect an external controller library using .dll or .so files. For details please contact FLOWTECH support.

General form of command

subbody ( ... , exco , exm1 = n , exm2 = n , exsp = v ,
          exs2 = v   , expa = "*.csv"                  )
Keyword Description
exco Associate the external PID controller with the sub-body.
exm1 External controller mode for channel 1. See the mode list below.
exm2 External controller mode for channel 2. See exm1 for available modes.
exsp External controller set-point for channel 1.
exs2 External controller set-point for channel 2.
expa File name for xy path. Contains tab separated x and y values in *.csv format.

Available external controller modes:

Mode Meaning
1 x position
2 y position
3 z position
4 x rotation (roll)
5 y rotation (pitch)
6 z rotation (yaw, heading)
7 x velocity
8 y velocity
9 z velocity
10 x rotational velocity
11 y rotational velocity
12 z rotational velocity
100 x position holding (experimental)
102 go to point specified in expa="*.csv" file
807 course
999 wing sail angle of attack

More modes can be added on demand.