Interface that describes unstructured grids.
bmi.grid_unstructured.BmiGridUnstructured[source]¶Bases: bmi.grid.BmiGrid
Methods that describe an unstructured grid.
Methods
get_grid_connectivity(grid_id) |
Get connectivity array of the grid. |
get_grid_offset(grid_id) |
Get offsets for the grid nodes. |
get_grid_rank(grid_id) |
Get number of dimensions of the computational grid. |
get_grid_size(grid_id) |
Get the total number of elements in the computational grid. |
get_grid_type(grid_id) |
Get the grid type as a string. |
get_grid_x(grid_id) |
Get coordinates of grid nodes in the streamwise direction. |
get_grid_y(grid_id) |
Get coordinates of grid nodes in the transverse direction. |
get_grid_z(grid_id) |
Get coordinates of grid nodes in the normal direction. |
get_grid_connectivity(grid_id)[source]¶Get connectivity array of the grid.
| Parameters: | grid_id : int
|
|---|---|
| Returns: | array_like or int
|
See also
bmi.vars.BmiVars.get_var_gridNotes
/* C */
int get_grid_connectivity(void * self, int grid_id,
int * connectivity);
get_grid_offset(grid_id)[source]¶Get offsets for the grid nodes.
| Parameters: | grid_id : int
|
|---|---|
| Returns: | array_like of int
|
See also
bmi.vars.BmiVars.get_var_gridNotes
/* C */
int get_grid_offset(void * self, int grid_id, int * offset);
get_grid_x(grid_id)[source]¶Get coordinates of grid nodes in the streamwise direction.
| Parameters: | grid_id : int
|
|---|---|
| Returns: | array_like
|
See also
bmi.vars.BmiVars.get_var_gridNotes
/* C */
int get_grid_x(void * self, int grid_id, double * x);
get_grid_y(grid_id)[source]¶Get coordinates of grid nodes in the transverse direction.
| Parameters: | grid_id : int
|
|---|---|
| Returns: | array_like
|
See also
bmi.vars.BmiVars.get_var_gridNotes
/* C */
int get_grid_y(void * self, int grid_id, double * y);
get_grid_z(grid_id)[source]¶Get coordinates of grid nodes in the normal direction.
| Parameters: | grid_id : int
|
|---|---|
| Returns: | array_like
|
See also
bmi.vars.BmiVars.get_var_gridNotes
/* C */
int get_grid_z(void * self, int grid_id, double * z);