-
-
October 8, 2024 at 7:49 am
tigers1227
SubscriberHow To set pre-stress environment definition with the python code?Â
By use ansys pymechanical codes, LikeÂ
Â
mechanical.run_python_script('''Âinitial_condition = DataModel.GetObjectById(82)Âwith Transaction():Â Â initial_condition.PreStressDefineBy = PreStressStateType.ProgramControlled''')Â, But, this code can't set the definition none to static structural. How can i set this definition by pymechanical code? -
October 8, 2024 at 8:55 am
ErKo
Ansys EmployeeHi
Â
See this post where it is done using mechanical scripting like you show in your image above:
https://discuss.ansys.com/discussion/4453/set-pre-stress-enviormentÂ
All the best
Â
Erik
-
October 8, 2024 at 8:57 am
ErKo
Ansys EmployeeÂ
Closing this post as otherforum members might find it useful.
All the best
Erik
Â
-
Viewing 2 reply threads
- The topic ‘How To set pre-stress environment definition with the python code?’ is closed to new replies.
Innovation Space
Trending discussions
- LPBF Simulation of dissimilar materials in ANSYS mechanical (Thermal Transient)
- Real Life Example of a non-symmetric eigenvalue problem
- How can the results of Pressures and Motions for all elements be obtained?
- BackGround Color
- Contact stiffness too big
- Element Birth and Death
- Python-Script to Export all Children of a Solution Tree
- Which equations and in what form are valid for defining excitations?
Top Contributors
-
4597
-
1495
-
1386
-
1209
-
1021
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.
