API reference¶
The reference is generated from the rompy-swan source code. Each class lists all its fields, including those it inherits from rompy, with their types, defaults and descriptions. Most classes are SWAN commands: their docstring shows the command syntax and an example of what they write, and the command index finds the component for a given command.
| Page | What it covers |
|---|---|
| Config | SwanConfig, the model configuration |
| Grid | SwanGrid, the computational grid as a rompy grid |
| Data and boundary interfaces | Input grids and boundary spectra from data sources, and the times set from the run |
| Startup | PROJECT, SET, MODE, COORDINATES |
| Computational grid | CGRID: regular, curvilinear and unstructured grids |
| Input grids | INPGRID, READINP, constant WIND and ICE |
| Boundary and initial conditions | BOUNDSPEC, BOUNDNEST1/2/3, INITIAL |
| Physics | Generation, dissipation, nonlinear interactions and other processes |
| Numerics | PROP, NUMERIC |
| Output | Output locations, quantities and write commands |
| Lockup | COMPUTE, HOTFILE, STOP |
| Command groups | The groups SwanConfig takes as one field |
| Subcomponents | Parts of commands shared by several components |
| Base components | Base classes of the components and subcomponents |
| Types | Enumerations |
| Command index | Every SWAN command and the component that writes it |