diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..a2d9a82 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,24 @@ +--- +name: Bug report +about: Report a problem with SEA-Stack +labels: bug +--- + +## Description + + + +## Steps to reproduce + + + +## Expected and actual behaviour + + + +## 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: diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..c08a5a2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -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. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..5eea060 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,17 @@ +--- +name: Feature request +about: Suggest a new capability or an improvement +labels: enhancement +--- + +## Use case + + + +## What is missing today + + + +## Possible approach + + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..ac53d48 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,19 @@ +## Summary + + + +## How it was tested + + + +## Effect on results + + + +## 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. diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 0000000..3b23708 --- /dev/null +++ b/CITATION.cff @@ -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 diff --git a/README.md b/README.md index 9852e65..85fcb78 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@

+ Continuous integration status on main License: MIT Version 1.2.0 Windows, macOS and Linux @@ -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 @@ -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: @@ -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). diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..e0bb2be --- /dev/null +++ b/SECURITY.md @@ -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). diff --git a/apps/seastack/gui/vsg_water_surface.cpp b/apps/seastack/gui/vsg_water_surface.cpp index 1dafe87..9a12fd1 100644 --- a/apps/seastack/gui/vsg_water_surface.cpp +++ b/apps/seastack/gui/vsg_water_surface.cpp @@ -749,8 +749,8 @@ void AnimatedWaterSurface::Update(const std::shared_ptr grid_eta(orig_verts.size(), 0.0f); diff --git a/docs/build/RELEASE_CHECKLIST.md b/docs/build/RELEASE_CHECKLIST.md index 22a46f3..f60ea3a 100644 --- a/docs/build/RELEASE_CHECKLIST.md +++ b/docs/build/RELEASE_CHECKLIST.md @@ -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`.