Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products.

Ansys Scripting – Exporting Results

    • Matthew Little
      Subscriber

      I am writing a Python script to extract all results for each step of my analysis.  I figured out how to do this, but it requires me to change the time of each Linearized stress result one at a time (which takes forever).  Using Mechanical, you can easily highlight multipe solutions and change the solution time for all at once.  Does anyone know how to do this with a script instead?

      I am currently creating a list of the solutions (Model.Analyses[0].Solution.Children), and then using Child.DisplayTime=Time.  Looking to see if there is a way to change all Children at once.

    • Aniket Chavan
      Forum Moderator

       

      I think you are concerned about the time it takes the script to change the display time for each result, not the time it takes to evaluate the result at that time, right?

      Have you used with Transaction method?

      https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v222/en/act_ref/item19554109141371852151632141872091817875102223713324049.html

      https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v222/en/act_script/act_script_examples_result_objecdts_tag_and_group.html

      -Aniket

      How to access Ansys help links

      Guidelines for Posting on Ansys Learning Forum

    • Matthew Little
      Subscriber

      Aniket,

      Yes, you are right in that it's the changing of each individual display time which takes up a lot of time, not evaluating.

      Thank you for your recommendations.  I need to get my Company's license information to sign up to view, but once I do, I will let you know if that works.

      • Matthew Little
        Subscriber

        Using Transaction was the fix for this.  Works quick for batch interactions.

Viewing 2 reply threads
  • The topic ‘Ansys Scripting – Exporting Results’ is closed to new replies.
[bingo_chatbox]