We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
General Mechanical

General Mechanical

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

How To set pre-stress environment definition with the python code?

    • tigers1227
      Subscriber

      How 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?

    • Erik Kostson
      Ansys Employee

      Hi

       

      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

    • 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.