TAGGED: #python-#ironpython, api, path-results, result-postprocessing, script
-
-
October 25, 2023 at 12:45 pm
Niklas Sellmann
SubscriberHello,
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
Â
-
October 25, 2023 at 1:07 pm
Erik Kostson
Ansys EmployeeHi 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.
Ansys Innovation Space
Trending discussions
- The legend values are not changing.
- LPBF Simulation of dissimilar materials in ANSYS mechanical (Thermal Transient)
- Convergence error in modal analysis
- APDL, memory, solid
- How to model a bimodular material in Mechanical
- Meaning of the error
- Simulate a fan on the end of shaft
- Nonlinear load cases combinations
- Real Life Example of a non-symmetric eigenvalue problem
- How can the results of Pressures and Motions for all elements be obtained?
Top Contributors
-
3882
-
1414
-
1241
-
1118
-
1015
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.