How do I calculate the Moment for BEAM188?
import ansys.dpf.core as dpf server = dpf.start_local_server(ansys_path=r"C:\Program Files\ANSYS Inc\v252") print(server.info) rst_path = r"D:\…\file.rst" ds = dpf.DataSources(rst_path) model = dpf.Model(rst_path) mesh = model.metadata.meshed_region mesh.available_property_fields field = mesh.property_field("apdl_element_type") # Elements supported by DPF print(set(field.data)) prop = dpf.operators.scoping.on_property( property_name="mapdl_element_type", data_sources=ds, property_id=188) prop_scoping = prop.outputs.mesh_scoping.get_data() moment = dpf.operators.result.smisc(data_sources=ds) moment.inputs.item_index.connect(15) moment.inputs.mesh_scoping.connect(prop_scoping) my_fields_container = moment.outputs.fields_container() print(my_fields_container[0].data)
note the code above gets SMISC15, which is the moment Y at node j. There are other values for moment Z and node i, and the total moment would be the vector combination of moments Y and Z.
Torsion, shear, etc can also be found in same ways, and refer to the Beam188 documentation in MAPDL.
Refer to table 188.2 of BEAM 188 documentation, item_index input should be adapted accordingly.