rompy.swan.components.group.STARTUP#

pydantic model rompy.swan.components.group.STARTUP[source]#

Startup group component.

PROJECT ...
SET ...
MODE ...
COORDINATES ...

This group component is used to group individual startup components. Only fields that are explicitly prescribed are rendered by this group component.

Examples

In [55]: from rompy.swan.components.startup import PROJECT, SET, MODE, COORDINATES

In [56]: from rompy.swan.components.group import STARTUP

In [57]: proj = PROJECT(nr="01")

In [58]: set = SET(level=0.5, direction_convention="nautical")

In [59]: mode = MODE(kind="nonstationary", dim="twodimensional")

In [60]: coords = COORDINATES(kind=dict(model_type="spherical", projection="ccm"))

In [61]: startup = STARTUP(
   ....:     project=proj,
   ....:     set=set,
   ....:     mode=mode,
   ....:     coordinates=coords,
   ....: )
   ....: 

In [62]: print(startup.render())
PROJECT nr='01'

SET level=0.5 NAUTICAL

MODE NONSTATIONARY TWODIMENSIONAL

COORDINATES SPHERICAL CCM
Fields:
field coordinates: COORDINATES | None = None#
field mode: MODE | None = None#
field model_type: Literal['startup', 'STARTUP'] = 'startup'#

Model type discriminator

field project: PROJECT | None = None#
field set: SET | None = None#
cmd() str[source]#

Command file string for this component.