MSS-Capytaine
Home
Recognitions Appointments

Open-source marine hydrodynamics · Version 1.2

From hull geometry to
marine craft simulation

MSS-Capytaine connects the open-source Capytaine boundary-element solver with the Marine Systems Simulator (MSS). Import CSV, MGF, GDF or STL hull geometry, compute six-degree-of-freedom hydrodynamic data in Python, and inspect the results in MATLAB or GNU Octave. Take the exported model into MSS for refinement and time-domain simulation.

Ships, AUVs & twin-hull USVs

Eight cases, four geometry formats

Start from CSV hull-section points, MGF hull sections, GDF panel geometry or an STL triangle mesh. Capytaine computes the hydrodynamics for every format. Select a case to open its geometry, configuration and documentation on GitHub.

CaseGeometryExample
testShip_csvCSVSynthetic surface monohull; default calculation.
LAUV_marie_csvCSVIdealized submerged hull inspired by NTNU’s 2.15 m LAUV Marie.
otter_55kg_csvCSVApproximate Otter twin hulls at the 55 kg load condition.
otter_80kg_csvCSVThe same assumed Otter hull with 25 kg payload, giving 80 kg total mass.
wigley_stlSTLPublic Wigley benchmark hull supplied as a triangle mesh.
supply_mgfMGFSupply-vessel hull sections, clipped to draft and meshed for Capytaine.
s175_mgfMGFS175 container-ship hull sections, with Capytaine coefficients and wave loads.
tanker_gdfGDFTanker panel geometry used for numerical comparison with WAMIT.

MGF import happens in MSS-Capytaine. MGF files provide ShipX/VERES hull geometry; Capytaine computes the added mass, radiation damping, wave excitation and mean drift. GDF likewise supplies geometry. These workflows require no commercial ShipX or WAMIT solver licence.

The catalogue demonstrates the workflow. Geometry, physical properties, mesh convergence and vessel-response predictions need validation for the intended application. The Otter cases use assumed hull lines.

New in version 1.2

Wave loads, damping & standalone viewers

Excitation & mean drift

Export added mass, radiation damping, hydrostatic restoring, first-order force and motion RAOs, and signed mean-drift coefficients for surge, sway and yaw.

Zero forward speed; 36 propagation headings. Mean drift is diagonal only; cross-frequency difference-frequency loads are outside the current export.

Configure damping once

Store damping inputs in the case JSON. MATLAB/Octave computes the power-based equivalent matrices and additional viscous damping using a common JONSWAP reference.

Peak frequency 1.0 rad/s, gamma 3.3. After a damping-only edit, use --update-damping to refresh the MAT-file without another boundary-element solve.

Inspect without MSS

The matlab/ folder contains two standalone viewers: plotVesselGeometry for source geometry and saved panels, and plotVesselHydrodynamics for coefficients, RAOs, drift and damping.

MATLAB uses tabbed result windows; GNU Octave uses separate figures. Source geometry can be previewed before solving.

Tanker comparison with WAMIT

Across 40 finite-frequency samples from 0.0424 to 1.8003 rad/s, relative norm differences are 0.31–0.69% for diagonal added mass, 0.49–1.72% for diagonal radiation damping, and 0.09–0.61% for complex excitation-force RAOs pooled across headings.

These are norm differences over the stated band, rather than maximum errors at each sample. The comparison checks agreement with an independent numerical solver; experimental validation and mesh-convergence checks remain separate. View comparison plots and interpretation ↗

Two example geometries

Surface ship & underwater vehicle

The current geometry viewer compares source hull sections with the saved Capytaine panels in MSS forward-starboard-down coordinates. Red crosses mark the center of gravity. Select any figure to view it at full size.

testShip and LAUV Marie source hull sections above their saved Capytaine meshes, with red crosses marking the center of gravity
Source geometry and saved mesh from plotVesselGeometry · View full size ↗

The plots below show the frequency-dependent added mass and radiation damping for these two cases.

testShip

Surface ship

A synthetic monohull demonstrating the surface-vessel workflow.

Added mass versus angular frequency for the Surface ship
Added mass View full size ↗
Radiation damping versus angular frequency for the Surface ship
Radiation damping View full size ↗

LAUV_marie

LAUV Marie-inspired AUV

An idealized submerged hull demonstrating the underwater-vehicle workflow.

Added mass versus angular frequency for the LAUV Marie-inspired AUV
Added mass View full size ↗
Radiation damping versus angular frequency for the LAUV Marie-inspired AUV
Radiation damping View full size ↗
Signed testShip mean-drift coefficients for surge, sway and yaw at all 36 propagation headings
testShip mean drift · Signed coefficients at all 36 headings · View full size ↗

Figures come from the repository’s saved results. The synthetic and idealized geometries illustrate the workflow and are not measured hull reconstructions.

The Capytaine-to-MSS workflow

Build, inspect, simulate

Start with vessel geometry, check the calculated data, and carry the resulting model into MSS.

  1. 01

    Describe the vessel

    Create vessels_capytaine/myVessel_csv/config.json and supply CSV, MGF, GDF or STL geometry. Enter mass, center of gravity and inertia using the configuration guide. For CSV hull sections, prepare offsets from drawings or measurements, with AI assistance if useful.

    Geometry + configuration; preview with plotVesselGeometry
  2. 02

    Compute in Capytaine

    Generate or read the hull panels and solve for hydrodynamic coefficients, first-order wave loads and mean drift. Export the common MSS vessel structure beside the case JSON.

    python main.py myVessel_csv

    Example MGF cases: python main.py supply_mgf or python main.py s175_mgf.

  3. 03

    Inspect & refine

    Add the repository’s matlab/ folder to the MATLAB or GNU Octave path. Inspect source geometry, saved panels, coefficients, wave RAOs and drift. Review accuracy warnings and check mesh convergence before simulation.

    plotVesselGeometry('myVessel')
    plotVesselHydrodynamics('myVessel')

    ↩ Refine geometry or mesh settings and rerun Python when needed.

  4. 04

    Simulate in MSS

    Run SIMhydroVessel and choose Load vessel MAT-file to open vessels_capytaine/myVessel_csv/myVessel.mat directly. Review currents, waves, damping and controller settings, then run the simulation. Optionally copy the file into MSS/HYDRO/vessels_capytaine/myVessel/.

    SIMhydroVessel
  5. 05

    Refine & validate the model

    Calibrate viscous damping against measurements, add relevant nonlinear loads and actuator models, and compare the simulation with independent data. Iterate for the intended application.

    Measurements → calibration → validation
Installation, examples and full workflow on GitHub ↗

Get started

Installation & guides

Generating data requires Python 3.11 or later, Capytaine 3.0 or later and the repository’s Python dependencies. The MATLAB/Octave viewers run without MSS. Pre-generated vessel MAT-files can be loaded in MSS without installing Python or Capytaine.