The Basic Model Interface¶
The functions that comprise the Basic Model Interface can be grouped into categories:
Table 3 lists the individual BMI functions along with a brief description. Following the table is a detailed description of each function, including the function prototype in SIDL, grouped by functional category.
Function |
Description |
---|---|
Version of the BMI implemented. |
|
Perform startup tasks for the model. |
|
Advance model state by one time step. |
|
Advance model state until the given time. |
|
Perform tear-down tasks for the model. |
|
Name of the model. |
|
Count of a model’s input variables. |
|
Count of a model’s output variables. |
|
List of a model’s input variables. |
|
List of a model’s output variables. |
|
Get the grid identifier for a variable. |
|
Get the data type of a variable. |
|
Get the units of a variable. |
|
Get the size (in bytes) of one element of a variable. |
|
Get the total size (in bytes) of a variable. |
|
Get the grid element type of a variable. |
|
Current time of the model. |
|
Start time of the model. |
|
End time of the model. |
|
Time units used in the model. |
|
Time step used in the model. |
|
Get a copy of values of a given variable. |
|
Get a reference to the values of a given variable. |
|
Get variable values at specific locations. |
|
Set the values of a given variable. |
|
Set the values of a variable at specific locations. |
|
Get the number of dimensions of a computational grid. |
|
Get the total number of elements of a computational grid. |
|
Get the grid type as a string. |
|
Get the dimensions of a computational grid. |
|
Get the spacing between grid nodes. |
|
Get the origin of a grid. |
|
Get the locations of a grid’s nodes in dimension 1. |
|
Get the locations of a grid’s nodes in dimension 2. |
|
Get the locations of a grid’s nodes in dimension 3. |
|
Get the number of nodes in the grid. |
|
Get the number of edges in the grid. |
|
Get the number of faces in the grid. |
|
Get the edge-node connectivity. |
|
Get the face-edge connectivity. |
|
Get the face-node connectivity. |
|
Get the number of nodes for each face. |