How to reverse the orientation

Akane Ito
Akane Ito Member Posts: 39
10 Comments First Anniversary 5 Likes Name Dropper
**

How can I reverse the orientation in a script, as shown in the figure below?

Best Answers

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 327
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited October 2024 Answer ✓

    Hi @Akane Ito

    You are showing a picture of the coordinate system definition/details.

    See here how to set that up (coordinate system):

    https://discuss.ansys.com/discussion/1302/create-and-rotate-coordinate-system

    Let us know if this helps or if you refer to something else (explain more if that is the case, e.g., if you refer to a force direction)

    If it is a force we can get the current direction (force_33 is the defined force object) and then flip it (by vector multiplication):

    Vec=force_33.Direction # current direction

    Nvec=Ansys.ACT.Math.Vector3D( float(Vec.X) * -1.00,float(Vec.Y) * -1.00, float(Vec.Z)*-1.00) # flip Vec

    force_33.Direction=Nvec

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 327
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited October 2024 Answer ✓

    Hope the above helps

Answers