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”.
- 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