_NodeResidual¶
- class _NodeResidual(dll: SofDll)¶
Bases:
objectThis class provides methods and a data structure to:
access keys
170/LCof the CDB file;store the retrieved data in a convenient format;
provide access to the data after the CDB is closed.
The underlying data structure is a
pandas.DataFramewith the following columns:LOAD_CASE: load combination numberID: node numberUX: X component of the nodal residual displacement (translation)UY: Y component of the nodal residual displacement (translation)UZ: Z component of the nodal residual displacement (translation)URX: X component of the nodal residual displacement (rotation)URY: Y component of the nodal residual displacement (rotation)URZ: Z component of the nodal residual displacement (rotation)URB: twist residual rotationPX: X component of the nodal residual reaction (translation)PY: Y component of the nodal residual reaction (translation)PZ: Z component of the nodal residual reaction (translation)MX: X component of the nodal residual reaction (rotation)MY: Y component of the nodal residual reaction (rotation)MZ: Z component of the nodal residual reaction (rotation)MB: warping residual moment
The
DataFrameuses a MultiIndex with levelsIDandLOAD_CASE(in this specific order) to enable fast lookups via thegetmethod. The index column is not dropped from theDataFrame.- get(node_id: int, load_case: int, quantity: str, default: float | None = None) float¶
Retrieve the requested nodal result.
- Parameters:
- Returns:
value – The requested value if found. If not found, returns
defaultwhen it is not None.- Return type:
- Raises:
LookupError – If the requested result is not found and
defaultis None.
- get_data(deep: bool = True) DataFrame¶
Return the
pandas.DataFramecontaining the loaded keys26/LC.- Parameters:
deep (bool, default True) – When
deep=True, a new object will be created with a copy of the calling object’s data and indices. Modifications to the data or indices of the copy will not be reflected in the original object (refer topandas.DataFrame.copy()documentation for details).