get_model_data¶
- opstool.post.get_model_data(odb_tag=None, data_type='Nodal', from_responses=False)[source]¶
Read model data from a file.
Parameters¶
- odb_tag: Union[int, str], default: one
Tag of output databases (ODB) to be read.
- data_type: str, default: Nodal
Type of data to be read. Optional: “Nodal”, “Frame”, “Link”, “Truss”, “Shell”, “Plane”, “Brick”.
- … Note::
For element data, the cells represent the index of the nodes in “Nodal” data. You can use the
.iselmethod of xarray to select node information by cell index.
- from_responses: bool, default: False
Whether to read data from response data. If True, the data will be read from the response data file. This is useful when the model data is updated in an analysis process.
Returns¶
ModelData: xarray.Dataset if model_update is True, otherwise xarray.DataArray