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.
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.
Tanker 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.
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 View full size ↗Radiation damping View full size ↗
LAUV_marie
LAUV Marie-inspired AUV
An idealized submerged hull demonstrating the underwater-vehicle workflow.
Added mass View full size ↗Radiation damping View full size ↗
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.
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
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.
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.
↩ Refine geometry or mesh settings and rerun Python when needed.
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
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.
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.