How can I add a shear stress result through scripting?

Options
Pernelle Marone-Hitz
Pernelle Marone-Hitz Member, Moderator, Employee Posts: 810
First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
edited June 2023 in Structures

How can I add a shear stress result through scripting ?

Tagged:

Answers

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 810
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Answer ✓
    Options

    One can use:

    solu=ExtAPI.DataModel.Project.Model.Analyses[0].Solution # reference solution
    
    newRes = solu.AddShearStress() # add shear stress result
    
    newRes.ShearOrientation=ShearOrientationType.XZPlane # select orientation