-
I can get nodal reaction forces from results for whole load steap. But how i can get reaction forces just for defined area in format:
I tried with dpf-core like: from ansys.dpf import core as dpf
.....
.....
self.result = mapdl.result # Geting result
self.result_file = mapdl._result_file
def MaxResults(self, container):
scoping = dpf.Scoping()
scoping.ids = range(1, int(self.sub_step_spinbox.value()) + 1)
container.inputs.time_scoping.connect(scoping)
fc = container.outputs.fields_container()
#tfq = fc.time_freq_support
#time_field = tfq.frequencies
normOp = dpf.Operator("norm_fc")
minmaxOp = dpf.Operator("min_max_fc")
normOp.inputs.fields_container.connect(fc)
minmaxOp.inputs.connect(normOp.outputs)
fieldMax = minmaxOp.outputs.field_max()
return fieldMax.data
model = dpf.Model(self.result_file)
force_reaction = model.results.force()
print(self.MaxResults(force_reaction)) But getting wrong results |
Beta Was this translation helpful? Give feedback.
Answered by
germa89
Jun 17, 2022
Replies: 1 comment
-
Hi @bedermaus, since you are using DPF I would recommend you to open an issue in their repo: https://github.com/pyansys/pydpf-core/issues |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
germa89
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @bedermaus, since you are using DPF I would recommend you to open an issue in their repo: https://github.com/pyansys/pydpf-core/issues