General Mechanical

General Mechanical

Topics relate 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

       

    • Erik Kostson
      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
  • You must be logged in to reply to this topic.