Open-source time-domain simulation for wave energy converters and other offshore systems.
Hydrodynamics, moorings, power take-off and control in one fast, scriptable tool,
with a viewer that shows the forces as they act.
Quick start · What you can model · The viewer · New in v1.2 · Download
The RM3 two-body point absorber on a MoorDyn mooring, in the SEA-Stack viewer. Mooring lines are coloured by tension and the sea by elevation; arrows show the excitation, radiation and mooring loads on each body.
Run this model on your own machine in three steps.
-
Download the latest package for Windows, macOS or Linux from Releases and unzip it. There is nothing to compile.
-
Open a terminal in the unzipped folder and start the moored RM3 demo.
Windows:
bin\run_seastack.exe demos\rm3\mooringmacOS and Linux:
./bin/run_seastack demos/rm3/mooring -
Press Play in the bottom-left corner, or the space bar. Drag to rotate the view and scroll to zoom. In the Inspector on the right, tick Force arrows and Plots, and drag the timeline to scrub back through the run.
Then change something. Each demo is a folder of YAML files, so you can edit the device, the sea state or the PTO and run again. The demo suite lists every packaged case, and the viewer guide covers the controls. Two more commands to try (Windows form shown):
Run a case without a window:
bin\run_seastack.exe demos\5sa\spreading --nogui
Replay a finished run in the viewer:
bin\run_seastack.exe --replay demos\rm3\mooring\outputs\results.irregular.h5
- See what the model is doing. The viewer draws the solver's own forces on every body, colours mooring lines by tension, plots motions and loads, and records the run so you can scrub back through it or replay a results file later. Change the sea state or the PTO damping while it runs, then export those changes and rerun them headless.
- Fast enough to explore a design space. Ten minutes of irregular sea for the RM3 point absorber simulates in
under half a minute on a desktop workstation. A sea-state sweep, a power matrix and an annual-energy estimate are
one command:
run_seastack --campaign. - No C++ needed to use it. Models, sea states and runs are YAML files; results are HDF5. Power take-offs and controllers can be written in Python and coupled to a running simulation.
- Physics you can check. Linear potential-flow hydrodynamics from BEM data, nonlinear hydrostatics and Froude-Krylov forces, compared against WEC-Sim, ProteusDS, InWave and other codes in an automated verification suite. An input that cannot be used as written stops the run with a message naming the file and the setting.
- Built to be taken apart. The hydrodynamics, PTO and control libraries do not depend on the multibody solver. Use them on their own, or link them to another backend.
- Multibody systems with joints, springs and dampers, and flexible (FEA) members through the C++ API, using Project Chrono for multibody dynamics and time integration
- Infinite-frequency added mass from BEM included directly in the solver's mass matrix through Chrono's
ChLoadHydrodynamics - Shipped examples: point absorbers (RM3, IEA sphere), an oscillating surge flap (OSWEC), a five-segment attenuator (5SA), the F3OF platform, a trimaran and a crane vessel
- Linear potential-flow hydrodynamics from BEMIO-format HDF5: added mass, radiation and excitation impulse responses, hydrostatic stiffness
- Radiation by convolution or a state-space approximation; excitation by frequency-domain transfer functions or IRF convolution
- Nonlinear hydrostatics from the instantaneous submerged volume of the hull mesh
- Nonlinear Froude-Krylov forces on the instantaneous wetted hull, for large waves
- Linear and quadratic damping per degree of freedom
- Regular, irregular, bimodal and directionally spread seas, with wave kinematics
- Measured or precomputed surface-elevation records as input
- Moorings with MoorDyn, drawn in 3D and coloured by tension
- Linear PTO and a rectified hydraulic PTO with check-valve bridge, accumulators and motor-generator
- External PTO and controller modules in Python, coupled to the running simulation over a local socket
- Power matrices with
run_seastack --campaign: sweeps over Hs, Tp, heading and seed, a time-domain run per cell, HDF5 and CSV summaries, and annual energy from a site scatter table
- HDF5 results with the inputs, settings and their SHA-256 digests recorded in the file
- Unit, regression, verification, comparison and benchmark suites, with PDF reports of the comparisons
v1.2 adds no new physics. It corrects defects that could give wrong results or report a failed run as a success, stops a run before the first step when an input cannot be used as written, and makes the tests fail when a comparison cannot be made. If you have results from v1.1 or earlier, the release notes list the conditions under which they should be reassessed.
If you want to modify or extend the software, wire in a custom Project Chrono build, or access more advanced capabilities, build from source as follows:
- Clone & configure — Clone on Windows, macOS, or Linux; use
git clone --recursiveonly if you need optional submodules such as MoorDyn (see the walkthroughs below). Copybuild-config.example.jsontobuild-config.jsonand set paths to Chrono and, if you use full HydroIO, HDF5. Build/install Project Chrono for adapter builds usingdocs/build/BUILD_CHRONO.md. You need a C++17 toolchain, CMake, and Eigen3; the walkthroughs cover Chrono-free library builds versus the fullrun_seastackapp and demos. - Build — From the repo root, run
scripts/windows/build.ps1(Windows) orscripts/unix/build.sh(macOS/Linux);-Help/--helplists options. Seescripts/README.mdfor how the drivers map to CMake. - Validate (recommended) — Run the CTest suites (unit, regression, verification, comparison, benchmark) to check your build against references and baselines: §6 in the Windows and macOS / Linux guides; full detail in
tests/README.md.
Detailed walkthroughs (toolchains, optional modules, packaging, troubleshooting, §5 tests):
| Topic | Doc |
|---|---|
| Windows | docs/build/BUILD_WINDOWS.md |
| macOS / Linux | docs/build/BUILD_MACOS.md |
| Project Chrono (for SEA-Stack) | docs/build/BUILD_CHRONO.md |
| Selective CMake / modules | docs/build/BUILD_MODULES.md |
build.ps1 / build.sh |
scripts/README.md |
| CMake flags (overview §6.1) | TECHNICAL_OVERVIEW.md |
| Other build notes | docs/build/ |
| If you want to… | Document | What it offers |
|---|---|---|
| See the big picture—architecture, physics flow, module boundaries | TECHNICAL_OVERVIEW.md |
End-to-end design, hydrodynamics and Chrono coupling, configuration, I/O and architectural diagrams. |
| Add a new hydrodynamic force (extra loads on bodies, custom physics in the hydro pipeline) | docs/extending/EXTENDING.md — Add a new hydrodynamic force component |
Implement IHydroForceComponent, place sources under libs/hydro/, register with the force model, add a unit test. |
| Add a new PTO, controller, or solver adapter | docs/extending/EXTENDING.md (other sections) |
Same cookbook style: interfaces (WaveBase, IPTOModel, IController, Chrono-style adapters), file layout, tests. |
| Use SEA-Stack from another CMake project | docs/usage/DOWNSTREAM_PROJECT.md |
find_package(SEAStack), imported targets, install layout, typical consumption patterns. |
Run worked examples (standalone libraries, run_seastack, demo YAML cases) |
docs/usage/EXAMPLE_WORKFLOWS.md |
Entry points into examples/ and the demo suite README. |
| Use the viewer (controls, timeline and replay, live changes, schedules) | docs/usage/GUI.md |
Keyboard and mouse, --replay, parameters you can change while running, schedule files, water and radiated-wave display. |
| Run tests or dig into labels, baselines, reports, and plots | tests/README.md · tests/TEST_SUITES_REFERENCE.md · tests/REPORTING_AND_PLOTS.md |
User-facing how-to; reference tables; Markdown/PDF reports and figures. |
| Contribute code or docs | CONTRIBUTING.md |
Workflow, expectations, and repo conventions for contributors. |
SEA-Stack is under active development. The current release is v1.2.0, with packages for Windows, macOS and Linux. It provides the modular core, the workflows and demos described above, and the test suites that check them. Multi-fidelity capabilities and coupling to higher-fidelity methods are planned as the platform evolves.
Licensed under the MIT License. See LICENSE.
Copyright (c) 2026 Simocean Ltd. and The National Laboratory of the Rockies (NLR).