rompy.swan.subcomponents.boundary.HOTSINGLE#

pydantic model rompy.swan.subcomponents.boundary.HOTSINGLE[source]#

Hotstart single initial conditions.

HOTSTART SINGLE fname='fname' FREE|UNFORMATTED

Initial wave field is read from file; this file was generated in a previous SWAN run by means of the HOTFILE command. If the previous run was nonstationary, the time found on the file will be assumed to be the initial time of computation. It can also be used for stationary computation as first guess. The computational grid (both in geographical space and in spectral space) must be identical to the one in the run in which the initial wave field was computed

Input will be read from a single (concatenated) hotfile. In the case of a previous parallel MPI run, the concatenated hotfile can be created from a set of multiple hotfiles using the program hcat.exe, see Implementation Manual.

Examples

In [253]: from rompy.swan.subcomponents.boundary import HOTSINGLE

In [254]: init = HOTSINGLE(fname="hotstart.swn", format="free")

In [255]: print(init.render())
HOTSTART SINGLE fname='hotstart.swn' FREE
Fields:
field fname: str [Required]#

Name of the file containing the initial wave field

Constraints:
  • max_length = 36

field format: Literal['free', 'unformatted'] = 'free'#

Format of the file containing the initial wave field. FREE: free format, UNFORMATTED: binary format

field model_type: Literal['hotsingle', 'HOTSINGLE'] = 'hotsingle'#

Model type discriminator

cmd() str[source]#

Render subcomponent cmd.