ansys / pydpf-core

Data Processing Framework - Python Core
http://dpf.docs.pyansys.com/
MIT License
71 stars 25 forks source link

Operator for Reaction Moments #1443

Open GitHubUser120282 opened 9 months ago

GitHubUser120282 commented 9 months ago

Before submitting the issue

Description of the bug

Hi, Is an operator for reaction moments (as for reaction force) available? https://dpf.docs.pyansys.com/version/0.11/api/ansys.dpf.core.operators.result.reaction_force.html

Steps To Reproduce

Nothing

Which Operating System causes the issue?

Windows

Which DPF/Ansys version are you using?

Ansys 2024 R1

Which Python version causes the issue?

3.12

Installed packages

....

js4561207 commented 9 months ago

I also can't find any way to extract the reaction force in pydpf, but I can use pymapdl combined with APDL FSUM command and *GET command to extract the reaction force. Hopefully this will help you !

PProfizi commented 9 months ago

Hi @js4561207, For the reaction force moment, have you tried result.raw_reaction_force? Also, to extract the reaction force, you should be able to use result.reaction_force, does it not work? Can you try to load your results in a Model and print the available results as shown in this example.

js4561207 commented 9 months ago

Hi @PProfizi, thanks for your reply.

Results

This is pydpf results and I need to scope to nodes that are constrained. pydpf If i try to scope to all nodes, the results are not correct. (Ie. the node 118341 don't have reaction forces in the xlsx file) reaction.xlsx image

This is pymapdl and apdl results, which extracts all reaction forces at all constrained nodes. pymapdl apdl

The results of these three are slightly different because of graphics control in MAPDL. (Full graphics or Power graphics)

System and environments

Windows python3.9.16 pyansys-dpf-core 0.11.0 Ansys 2023R1

GitHubUser120282 commented 9 months ago

Hi, my initial question is related to nodes with rotational DOFs (e.g. for shell elements) that are constrained and then to get the reaction moments. Using operator reaction_force will give the forces only ...

js4561207 commented 9 months ago

@GitHubUser120282 Using raw_reaction_forces. image BUT the results is still different with APDL's output 41a5194f57b4fe56335c751bef04df1

PProfizi commented 7 months ago

Hi @js4561207, sorry for the late reply but despite our best efforts we could not reproduce the behavior you communicated above. Would you happen to have a small sample result file for us to reproduce?