Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Bug report
about: Report a problem with SEA-Stack
labels: bug
---

## Description

<!-- What went wrong? -->

## Steps to reproduce

<!-- The command line, the YAML case or a minimal code example. Attach input files if you can. -->

## Expected and actual behaviour

<!-- What you expected, and what happened instead. Include error messages and the relevant part of the log. -->

## Environment

- SEA-Stack version or commit:
- Release package or built from source:
- Platform and compiler (for example Windows 11, MSVC 2022):
- Project Chrono version, if built from source:
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Questions and discussion
url: https://github.com/Project-SEA-Stack/SEA-Stack/discussions
about: Ask how to use SEA-Stack, or discuss an idea before opening an issue.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest a new capability or an improvement
labels: enhancement
---

## Use case

<!-- What do you want to model or do, and why? -->

## What is missing today

<!-- Why the existing functionality does not cover it. -->

## Possible approach

<!-- Optional: a rough idea of how it could work. -->
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Summary

<!-- What does this change do, and why? -->

## How it was tested

<!-- Commands run and platforms. Continuous integration runs the unit, regression and external tests on Linux, macOS and Windows. -->

## Effect on results

<!-- Does any simulation result, reference file or tolerance change? If so, by how much and why. Write "None" otherwise. -->

## Checklist

- [ ] The pull request targets `dev`.
- [ ] New behaviour has a test, or the summary explains why it does not.
- [ ] No reference data was regenerated and no tolerance was widened to make a test pass.
- [ ] Documentation is updated where behaviour, options or outputs changed.
- [ ] The label `full-tests` is set if the change can affect verification or comparison results.
26 changes: 26 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Citation metadata for SEA-Stack (Citation File Format, https://citation-file-format.github.io).
# Update "version" and "date-released" with every release (docs/build/RELEASE_CHECKLIST.md).
cff-version: 1.2.0
message: "If you use SEA-Stack in your work, please cite it using the metadata in this file."
type: software
title: "SEA-Stack"
abstract: >-
Open-source time-domain simulation software for wave energy converters and
other offshore and marine energy systems: linear potential-flow
hydrodynamics, multibody dynamics through Project Chrono, moorings, power
take-off and control.
authors:
- name: "Simocean Ltd."
- name: "The National Laboratory of the Rockies (NLR)"
version: "1.2.0"
date-released: "2026-11-30"
license: MIT
repository-code: "https://github.com/Project-SEA-Stack/SEA-Stack"
url: "https://github.com/Project-SEA-Stack/SEA-Stack"
keywords:
- wave energy
- marine energy
- offshore engineering
- hydrodynamics
- multibody dynamics
- time-domain simulation
42 changes: 22 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</p>

<p align="center">
<a href="https://github.com/Project-SEA-Stack/SEA-Stack/actions/workflows/ci.yml"><img src="https://github.com/Project-SEA-Stack/SEA-Stack/actions/workflows/ci.yml/badge.svg?branch=main" alt="Continuous integration status on main"/></a>
<img src="https://img.shields.io/badge/license-MIT-blue" alt="License: MIT"/>
<img src="https://img.shields.io/badge/version-1.2.0-blue" alt="Version 1.2.0"/>
<img src="https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey" alt="Windows, macOS and Linux"/>
Expand Down Expand Up @@ -73,19 +74,22 @@ bin\run_seastack.exe --replay demos\rm3\mooring\outputs\results.irregular.h5

## Why SEA-Stack

- **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.
- **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

Expand Down Expand Up @@ -122,13 +126,6 @@ bin\run_seastack.exe --replay demos\rm3\mooring\outputs\results.irregular.h5
- 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

## New in v1.2: scientific correctness and reliability

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](docs/build/RELEASE_NOTES_v1.2.0.md) list the conditions under which they should be reassessed.

## Building from source

If you want to modify or extend the software, wire in a custom [Project Chrono](https://projectchrono.org/) build, or access more advanced capabilities, build from source as follows:
Expand Down Expand Up @@ -166,6 +163,11 @@ Detailed walkthroughs (toolchains, optional modules, packaging, troubleshooting,

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`](CITATION.cff). Please give the version you used.

## License

Licensed under the MIT License. See [LICENSE](LICENSE).
Expand Down
34 changes: 34 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Security policy

## Supported versions

Security fixes are made on the `dev` branch and included in the next release.
Earlier releases are not patched.

## Reporting a vulnerability

Please do not report security problems in public issues or discussions.

Use GitHub's private reporting instead: on the repository's
[Security tab](https://github.com/Project-SEA-Stack/SEA-Stack/security), choose
**Report a vulnerability**. The report is visible only to the maintainers.

Include, as far as you can:

- the SEA-Stack version or commit, and the platform;
- what an attacker could do, and under which conditions;
- steps or input files that reproduce the problem.

The maintainers will acknowledge the report and keep you informed while it is
assessed and fixed.

## Scope

SEA-Stack is simulation software that runs locally on input files chosen by its
user. Reports of particular interest concern input files (YAML, HDF5, mesh and
wave-elevation files) that make `run_seastack` or the bundled Python tools
execute code or write outside the case directory, and problems in the release
packages or the build and release scripts.

Wrong numerical results are not security problems; please report them as
ordinary [issues](https://github.com/Project-SEA-Stack/SEA-Stack/issues).
4 changes: 2 additions & 2 deletions apps/seastack/gui/vsg_water_surface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,8 @@ void AnimatedWaterSurface::Update(const std::shared_ptr<seastack::hydro::WaveBas
// point and then copying to the soup, we avoid redundant wave calculations.
//
// For irregular sea states with ~1000 frequency components:
// - Without optimization: ~24,000 � 1000 = 24M trig operations/frame
// - With optimization: ~4,000 � 1000 = 4M trig operations/frame
// - Without optimization: ~24,000 x 1000 = 24M trig operations/frame
// - With optimization: ~4,000 x 1000 = 4M trig operations/frame
// -------------------------------------------------------------------------
std::vector<float> grid_eta(orig_verts.size(), 0.0f);

Expand Down
1 change: 1 addition & 0 deletions docs/build/RELEASE_CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Keep Windows, macOS and Linux in sync before tagging.
- [`CMakeLists.txt`](../../CMakeLists.txt) — `project(VERSION X.Y.Z)` and
`SEASTACK_VERSION_SUFFIX` (e.g. `"-rc.1"`, or `""` for a release)
- [`README.md`](../../README.md) — badge + “current release” prose
- [`CITATION.cff`](../../CITATION.cff) — `version` and `date-released`
- [`TECHNICAL_OVERVIEW.md`](../../TECHNICAL_OVERVIEW.md) — version header and body mentions
- [`scripts/windows/stage_release_reports.ps1`](../../scripts/windows/stage_release_reports.ps1) — usage examples (`-Version v…`)
3. Commit: `Bump version to vX.Y.Z-rc.1`.
Expand Down
Loading