NodeLoad¶
- class NodeLoad(dll: SofDll)¶
Bases:
objectThe
NodeLoadclass provides abstractions to load and access information about the nodal loads, contained in keys23/LCof the CDB file.Data are stored in a
pandas.DataFramehaving the following columns:LOAD_CASE: load combination numberID: node numberPX: X component of the nodal load (force, [kN])PY: Y component of the nodal load (force, [kN])PZ: Z component of the nodal load (force, [kN])MX: X component of the nodal load (moment, [kN/m])MY: Y component of the nodal load (moment, [kN/m])MZ: Z component of the nodal load (moment, [kN/m])MB: warping of the nodal load (moment, [kN/m])
- get(node_id: int, load_case: int, quantity: str, default: float | None = None) float¶
Retrieve the requested nodal load.
- Parameters:
- Returns:
value – The requested value if found. If not found, returns
defaultwhen it is not None.- Return type:
Notes
If there are multiple entries for the same node and load case, this method returns the sum of all corresponding values. To access the individual entries without aggregation, use the
get_datamethod.- Raises:
LookupError – If the requested load is not found and
defaultis None.
- get_data(deep: bool = True) DataFrame¶
Return the
pandas.DataFramecontaining the loaded keys23/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).