Examples¶
These notebooks demonstrate common rompy-swan workflows.
Getting Started¶
-
Declarative Configuration
Configure SWAN simulations using YAML files for reproducible workflows.
-
Procedural Configuration
Build SWAN configurations programmatically using Python for dynamic setups.
-
Sensitivity Analysis
Run parameter sensitivity studies by varying configuration values.
Boundary Conditions¶
-
BOUNDSPEC Side
Apply boundary conditions to entire domain sides.
-
BOUNDSPEC Segment
Apply boundary conditions to specific segments.
-
BOUNDNEST1
Nested boundary conditions from coarser SWAN runs.
Components¶
-
Output
Configure SWAN output options (BLOCK, TABLE, SPECOUT).
-
CGRID
Define computational grids (REGULAR, CURVILINEAR, UNSTRUCTURED).
-
Startup
Initialize SWAN runs (PROJECT, SET, MODE, COORDINATES).
-
Physics
Configure physical processes (generation, breaking, friction).
-
Numerics
Set numerical schemes and iteration settings (PROP, NUMERIC).
-
INPGRID
Define input grids for forcing data (bathymetry, wind, currents).
Running the Examples¶
To run these notebooks locally:
# Clone the notebooks repository
git clone https://github.com/rom-py/rompy-notebooks.git
# Install dependencies
pip install rompy-swan jupyter
# Navigate to SWAN examples
cd rompy-notebooks/notebooks/swan
# Start Jupyter
jupyter notebook
SWAN Executable Required
These examples require a working SWAN installation. See the installation guide for setup instructions.