Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Set Bodyselection for Result Path by Scripting

    • Niklas Sellmann
      Subscriber

      Hello,

      i want to generate a Result for a Path from the Construction Geometry ("Threadrootpath") with a Python Script. The path touches several bodies, but the evaluation should be done only on certain bodies ("body_selection"). The picuture shows the function from the GUI of Ansys Mechanical, that i want to use by the Script but i cant find any documentation for the correct command. Can anyone help me?

      sol=Model.Analyses[0].Solution

      new_sol=sol.AddEquivalentStress()

      new_sol.ScopingMethod=GeometryDefineByType.Path

      new_sol.Location=Threadrootpath

      new_sol.???=body_selection

       

    • ErKo
      Ansys Employee
      Hi This post shows how to do this: https://discuss.ansys.com/discussion/2491/how-to-set-path-and-geometry-scoping-when-defining-result-object-with-path-as-the-scoping-method All the best Erik
Viewing 1 reply thread
  • The topic ‘Set Bodyselection for Result Path by Scripting’ is closed to new replies.
[bingo_chatbox]