Skip to content
Project-SEA-StackPublic

About

Open-source simulation software for offshore and marine energy systems.

Topics

Resources

Contributing

Security policy

Stars

9 stars

Watchers

1 watching

Forks

Repository files navigation

SEA-Stack

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.

Continuous integration status on main License: MIT Version 1.2.0 Windows, macOS and Linux

Quick start · What you can model · The viewer · New in v1.2 · Download

The RM3 point absorber on a MoorDyn mooring in the SEA-Stack viewer, with tension-coloured mooring lines, force arrows, a coloured sea surface, motion plots and a timeline

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.

Quick start

Run this model on your own machine in three steps.

  1. Download the latest package for Windows, macOS or Linux from Releases and unzip it. There is nothing to compile.

  2. Open a terminal in the unzipped folder and start the moored RM3 demo.

    Windows:

    bin\run_seastack.exe demos\rm3\mooring
    

    macOS and Linux:

    ./bin/run_seastack demos/rm3/mooring
    
  3. 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

Why SEA-Stack

  • Model a wide range of systems. Project Chrono on the back end handles any arrangement of bodies, joints, moorings and flexible (FEA) members.
  • Built for design exploration. Script mesh generation, BEM and time-domain runs end to end, and sweep sea states with run_seastack --campaign.
  • Fast. Linear cases run about 10 to 90 times faster than real time on a four-core machine, and sweeps run in parallel.
  • Free and open source. MIT licence: no fees, no licence server, and you can modify it as you wish.
  • Plain-text inputs. Models and runs are YAML files: easy to read, compare and script, and to edit by hand or with AI agents.
  • A viewer that explains the model. Watch forces, mooring tensions and body trails as the simulation runs.
  • Python for PTO and control. Write a power take-off or a controller in Python and couple it to a running simulation.
  • Verified and tested. Checked against WEC-Sim, ProteusDS and InWave; every change is tested on Windows, macOS and Linux.
  • Coming next: multi-fidelity. Coupling to CFD and SPH solvers, to check potential-flow results against higher-fidelity methods.

What you can model

Devices and dynamics

  • 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

Hydrodynamics and wave loading

  • 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

Waves and moorings

  • 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

Power take-off, control and energy

  • 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

Results and testing

  • 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

Building from source

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 --recursive only if you need optional submodules such as MoorDyn (see the walkthroughs below). Copy build-config.example.json to build-config.json and set paths to Chrono and, if you use full HydroIO, HDF5. Build/install Project Chrono for adapter builds using docs/build/BUILD_CHRONO.md. You need a C++17 toolchain, CMake, and Eigen3; the walkthroughs cover Chrono-free library builds versus the full run_seastack app and demos.
  • Build — From the repo root, run scripts/windows/build.ps1 (Windows) or scripts/unix/build.sh (macOS/Linux); -Help / --help lists options. See scripts/README.md for 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/

Further reading

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.

Project status

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.

Citing SEA-Stack

To cite SEA-Stack, use Cite this repository on the GitHub page, or the metadata in CITATION.cff. Please give the version you used.

License

Licensed under the MIT License. See LICENSE.

Copyright (c) 2026 Simocean Ltd. and The National Laboratory of the Rockies (NLR).

About

Open-source simulation software for offshore and marine energy systems.

Topics

Resources

Contributing

Security policy

Stars

9 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages