-
-
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
Erik Kostson
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
Erik Kostson
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.
Ansys Innovation Space
Trending discussions
Top Contributors
-
3165
-
1014
-
956
-
858
-
798
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.