transform direction stresses to a different coordinate system node for node

Peter
Peter Member Posts: 6
First Anniversary Name Dropper First Comment
**

for rotating the stress tensor I use the dpf.operators.geo.rotate function
with an op.inputs.fields_container
and an op.inputs.coordinate_system for an rotation field
the problem is, the rotation is just performt for the first entry in the rotation field, not used as a field as I expected.
Use case is getting stress in a direction along a path/curved edge for e.g. welding.
Is there a way to do it with dpf? The now used way is looping over the elements again

Tagged:

Comments

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 345
    25 Answers 100 Comments 25 Likes First Anniversary
    ✭✭✭✭

    Have you considered orienting the element coordinate systems prior to the solve so the results are in the correct orientation?
    In your DPF operator to retrieve stress, you should set the rotate to global property as false to keep them in the element orientation.

  • Jaaroon
    Jaaroon Member Posts: 7
    Name Dropper First Comment
    **

    @Peter, have you ever figured out a good way to go about this? I would also be very interested in extracting component nodal stresses in a local coordinate system. Currently I am using MAPDL, but I would like to optimize my workflow using pyDPF. At this point I am not sure how to extract stresses in a user COS. Could you maybe share an example of your code using the rotation?