rompy.swan.components.cgrid.REGULAR#
- pydantic model rompy.swan.components.cgrid.REGULAR[source]#
SWAN regular computational grid.
CGRID REGULAR [xpc] [ypc] [alpc] [xlenc] [ylenc] [mxc] [myc] & ->CIRCLE|SECTOR [mdc] [flow] [fhigh] [msc]
This is a group component that includes a CGRID and a READGRID component.
Note
In 1D-mode, alpc should be equal to the direction alpinp.
Examples
In [24]: from rompy.swan.components.cgrid import REGULAR In [25]: cgrid = REGULAR( ....: grid=dict(xp=0, yp=0, alp=0, xlen=2000, ylen=1300, mx=100, my=100), ....: spectrum=dict(mdc=36, flow=0.04, fhigh=1.0), ....: ) ....: In [26]: print(cgrid.render()) CGRID REGULAR xpc=0.0 ypc=0.0 alpc=0.0 xlenc=2000.0 ylenc=1300.0 mxc=100 myc=100 CIRCLE mdc=36 flow=0.04 fhigh=1.0
- Fields:
- Validators:
grid_suffix
»all fields
- field grid: GRIDREGULAR [Required]#
Computational grid definition
- Validated by:
- field model_type: Literal['regular', 'REGULAR'] = 'regular'#
Model type discriminator
- Validated by: