DPF Scripting to get Nodal Force reaction

I am trying to write a script get the force reaction (and moment reaction) at each node of a specific region of a 2D body in workbench. The goal is to do moment calculations with the individual force reactions for each node. When I try to use results data, I get values that are like 10e308. When I have tried to use DPF, I am getting all 0s, even when I probe them and see that there is a reaction force. Can you do this in workbench? Also, are there any good sources for dpf documentation? The few I have found are not great

Additionally, I have the idea to use an APDL command to this, is there a way to call an apdl command (either in the tree or just include it in my python script) and give it the node number and then have it return the force reaction value?

I am using 2023 R1 and I cant use PyMAPDL or PyDPF because when I pip install ansys.dpf.core and ansys-mapdl-core, it makes my computer blue screen.

This is what I have tried

I have also tried this

Answers

  • James Derrick
    James Derrick Administrator, Employee Posts: 314
    Ancient Membership 100 Comments 100 Likes 25 Answers
    admin

    Hi @bobbyBones I'm not sure how to tackle this but someone in the @Structures-Scripting-Team might be able to help!

  • Pierre Thieffry
    Pierre Thieffry Member, Moderator, Employee Posts: 110
    25 Answers Second Anniversary 10 Comments 25 Likes
    ✭✭✭✭

    Hi @bobbyBones , I would recommend to use the dpf.operators.result.raw_reaction_force(), which gives you 6 components per node: the forces and the moments.

  • Rohith Patchigolla
    Rohith Patchigolla Member, Moderator, Employee Posts: 249
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭

    I also tried using your commands in a simple 2D axisymmetric model in 22R2 and 25R1 and it seems to be working.