pymt.services.constant package¶
Submodules¶
pymt.services.constant.constant module¶
- class pymt.services.constant.constant.ConstantScalars[source]¶
Bases:
object
Service component that returns scalars.
- get_grid_origin(grid_id)[source]¶
Origin of grid.
- Parameters:
grid_id (int) – Grid identifier.
- Returns:
origin – Origin of nodes in each dimension.
- Return type:
tuple
- get_grid_shape(grid_id)[source]¶
Shape of grid.
- Parameters:
grid_id (int) – Grid identifier.
- Returns:
shape – Shape of the grid.
- Return type:
tuple
- get_grid_spacing(grid_id)[source]¶
Spacing of grid.
- Parameters:
grid_id (int) – Grid identifier.
- Returns:
spacing – Spacing of nodes in each dimension.
- Return type:
tuple
- get_value(name)[source]¶
Values on nodes of a grid.
- Parameters:
var (str) – Name of grid variable.
- Returns:
values – Values of the nodes of a grid.
- Return type:
ndarray
- get_var_grid(var)[source]¶
Grid identifier for a variable.
- Parameters:
var (str) – Name of grid variable.
- Returns:
Grid identifier.
- Return type:
int
- class pymt.services.constant.constant.River[source]¶
Bases:
ConstantScalars
pymt.services.constant.river module¶
- class pymt.services.constant.river.River[source]¶
Bases:
ConstantScalars