Converting stress tensor from GCS to LCS

Bipin
Bipin Member Posts: 4
First Comment
**

Hi,
is there a way to convert the stress tensor from the global coordinate system to local coordinate system? in pyDPF

Tagged:

Comments

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

    You do this with the geo.rotate operator. Convert the local CS into a rotation matrix input.

  • Bipin
    Bipin Member Posts: 4
    First Comment
    **

    thanks Mike, i´m tring to generate the rot max for the loacl CS. but it gives me error.

    cs = model.operator(r"mapdl::rst::CS")
    cs.inputs.cs_id.connect(31)
    cs_rot_mat = cs.outputs.field.get_data().data.T[0:9]
    print(cs_rot_mat)

  • Bipin
    Bipin Member Posts: 4
    First Comment
    **

    Resolved, please ignore.