Grid & Flow
Core data structures for representing base flow data.
Grid
The Grid class holds the computational grid coordinates.
lst_tools.core.Grid
dataclass
Flow
The Flow class holds the flow field variables on the grid.
lst_tools.core.Flow
dataclass
Flow fields defined on a Grid.
field
Return the named field array, checking shape against the grid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Key into the |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: The field array. |
Raises:
| Type | Description |
|---|---|
KeyError
|
If name is not in |
ValueError
|
If the field shape does not match the grid shape. |