rompy.swan.components.cgrid.UNSTRUCTURED#
- pydantic model rompy.swan.components.cgrid.UNSTRUCTURED[source]#
SWAN unstructured computational grid.
CGRID UNSTRUCTURED CIRCLE|SECTOR [mdc] [flow] [fhigh] [msc] READGRID UNSTRUCTURED [grid_type] ('fname')
This is a group component that includes a CGRID and a READGRID component.
Examples
In [27]: from rompy.swan.components.cgrid import UNSTRUCTURED In [28]: cgrid = UNSTRUCTURED( ....: grid_type="adcirc", ....: spectrum=dict(mdc=36, flow=0.04, fhigh=1.0), ....: ) ....: In [29]: print(cgrid.render()) CGRID UNSTRUCTURED CIRCLE mdc=36 flow=0.04 fhigh=1.0 READGRID UNSTRUCTURED ADCIRC
- Fields:
- Validators:
check_fname_required
»all fields
- field fname: str | None = None#
Name of the file containing the unstructured grid
- Constraints:
max_length = 36
- Validated by:
- field grid_type: Literal['adcirc', 'triangle', 'easymesh'] = 'adcirc'#
Unstructured grid type
- Validated by:
- field model_type: Literal['unstructured'] = 'unstructured'#
Model type discriminator
- Validated by: