FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
Ship2: hull from a hydrodynamic database

A ship hull in six degrees of freedom from a solver-neutral hydrodynamic database (ADR 0001).

+ Collaboration diagram for Ship2: hull from a hydrodynamic database:
Author
SINTEF Ocean
Date
2026

The hull of a vessel whose hydrodynamic data come from a 3D panel code in WAMIT's format, with a vessel file <name>.vessel.json beside them (tools/hydro makes both from the hull's offsets with Capytaine; any solver that writes WAMIT files will do). VesselFile names the vessel file.

The body origin is the database's reference point: on the centreline, at the waterline of the loading condition. Body frame x forward, y starboard, z down; positions and velocities of the origin in NED. The states are those of fhsim_base's Body/6DBody (Pos, Quater, LocalVel, AngVel), so a scene's initial conditions and the objects that follow a body (Pos, Quater) work unchanged; propulsors connect as to Ship/Ship (ForceNED/TorqueNED or ForceBODY/TorqueBODY, torques about the origin).

Equations of motion, about the origin:

\[ (M_{RB} + A_\infty)\,\dot\nu + C_{RB}(\nu)\,\nu = -\mu - C\,\eta_h + \tau_{wave} + \tau_{drift} + \tau_{visc} + \tau_{ext} \]

Data licence: the database carries its source's licence (licence and attribution in the vessel file, logged at the start). The R/V Gunnerus data of fhsim_maritime (data/vessels/gunnerus) are CC BY-NC 4.0, from the Gunnerus open data (NTNU): non-commercial use only.

Example configuration excerpt

<Lib LibName = "fhsim_maritime" SimObject = "Ship/Ship2" Name = "Gunnerus"
VesselFile = "../resources/vessels/gunnerus/gunnerus.vessel.json" Mesh = "FhSimAssets/models/gunnerus.mesh"/>
...
<InitialCondition Gunnerus.Pos = "0,0,0" Gunnerus.Quater = "1,0,0,0" Gunnerus.LocalVel = "5,0,0" Gunnerus.AngVel = "0,0,0"/>

Configuration parameters

Name Width Description
VesselFile 1 The vessel file (<name>.vessel.json), the WAMIT files beside it. Required.
NumWaveComponents 1 The number of wave components taken from the environment, the largest; 0: all. (Default: 0)
ViscousModel 1 Simple or None. (Default: Simple)
FormFactor 1 Form factor k of the ITTC-57 friction: (1 + k) C_F. (Default: 0.2)
ResidualResistance 1 Residual resistance coefficient C_R on the wetted surface; with ResidualResistanceSpeed, one value per speed. (Default: 0.0005)
ResidualResistanceSpeed n Speeds [m/s], ascending, at which ResidualResistance gives C_R: interpolated linearly in the forward speed, held beyond the ends (a resistance curve, e.g. Holtrop and Mennen's from fhsim_hydro.holtrop). (Default: none, one constant C_R)
CrossFlowDrag 1 Cross-flow drag coefficient of the sections. (Default: 0.8)
ImmersionScaling 1 1: the added mass, the radiation memory and the wave and drift forces are scaled by the wetted length (the sections with any part below the still-water level at the present heave and pitch) over the loading condition's, at most 1 (strip theory sums sectional added mass over the wetted length): an airborne hull keeps only its rigid-body mass; on the plane the added mass is about the wetted length's share (Faltinsen's planing added mass for the Mariner likeness: 0.5-0.6 of the static). The immersed volume would be far too small on the plane. For planing craft (Ship/PlaningLift, ADR 0002). 0: constant. (Default: 0)
RadiationFrame 1 Seakeeping: in heave the radiation memory is driven by the origin's vertical velocity through the water, the seakeeping frame's perturbation (w - U theta linearised: Fossen 2005), so that a hull running trimmed at speed U is not taken to heave at U sin(theta). In waves at speed it gives some 5-10 % less heave than Body (Gunnerus, VESTFART); the same in calm water and at zero speed; needed with large trims at speed (Ship/PlaningLift, ADR 0002). Body: by the body-frame velocities (before 2026-11-26). (Default: Seakeeping)
ClarkeDerivatives 1 1: Clarke's linear manoeuvring derivatives; 0: none. (Default: 1)
RollDampingRatio 1 Viscous roll damping as a fraction of critical. (Default: 0.05)
LinearDamping 6 Additional linear damping (diagonal, body frame) [N s/m, N m s]. (Default: 0)
QuadraticDamping 6 Additional quadratic damping (diagonal) [N s2/m2, N m s2]. (Default: 0)
Mesh 1 Visualisation: an Ogre mesh drawn with the body (empty: none). (Default: empty)
MeshOffset 3 Where the mesh's origin is in the body frame [m] (a mesh made for another waterline: fhsim_assets' Gunnerus has its origin at the 2.787 m waterline, 0,0,-0.287 for the data at 2.50 m). (Default: 0,0,0)

Input ports

Name Width Description
ForceNED 3 External force [N], NED, at the origin.
TorqueNED 3 External moment about the origin [N m], NED.
ForceBODY 3 External force [N], body frame, at the origin.
TorqueBODY 3 External moment about the origin [N m], body frame.

Output ports

Name Width Description
Pos 3 Position of the origin [m], NED.
Quater 4 Orientation, body to NED quaternion (w, x, y, z).
Vel 3 Velocity of the origin [m/s], NED.
LocalVel 3 Velocity of the origin [m/s], body frame.
AngVel 3 Angular velocity [rad/s], body frame.
PositionNED 3 As Pos (the name of Ship/Ship).
QuaternionNED 4 As Quater.
VelocityNED 3 As Vel.
OmegaNED 3 Angular velocity [rad/s], NED.
EulerAnglesNED 3 Roll, pitch, yaw [rad].
VelocityBody 6 Linear and angular velocity, body frame.
RelativeVelocityBODY 6 Velocity relative to the current, body frame.
FirstOrderWaveBody 6 First-order wave force, body frame.
WaveDriftBody 6 Mean wave drift force, body frame.
RadiationMemoryBody 6 The radiation memory force -mu, body frame.
RestoringForceBody 6 Restoring force, body frame.
ViscousForceBody 6 Viscous forces (resistance, cross-flow, manoeuvring, roll, dampers), body frame.
ExternalForceBody 6 The inports' force and moment, body frame.
WaterLevel 1 The still-water level the restoring uses [m], up.

States

Name Width Description
Pos 3 Position of the origin, NED.
Quater 4 Orientation quaternion.
LocalVel 3 Linear velocity, body frame.
AngVel 3 Angular velocity, body frame.
RadiationMemory n States of the radiation memory (n from the fit).