Converting stress tensor from GCS to LCS

Options
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: 279
    First Anniversary First Comment 5 Likes Ansys Employee
    Options

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

  • Bipin
    Bipin Member Posts: 4
    First Comment
    Options

    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
    Options

    Resolved, please ignore.