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.
General Mechanical

General Mechanical

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

Extraction of Linearized Stress Worksheet Results via Python Script

    • Gabriel Alves
      Subscriber

      I need to extract the normal and shear stresses for a big number of nodes (which I have already selected) in Ansys Workbench 2023 R2.
      What I have been doing is manually export these stresses, obtained in the Worksheet Vew, since I have been simulating the linearized equivalent stress along the thickness of the plates that are part of my structure.
      I wanted to automate the process and obtain the spreadsheets for these Worksheets. I have come across the following Python script (found in https://blog.ozeninc.com/resources/using-python-to-export-tabular-data-from-within-ansys-mechanical) that works to automate this process but to export Tabular Data, not Worksheet.



      I tried changing the "TabularData" to "Worksheet" in the Pane variable but I couldn't get the code to work in any way. How would I extract the Worksheets via python scripting in Ansys Workbench?

    • Ashish Khemka
      Forum Moderator

      Hi,

      Please see if the following link helps: Access to Worksheet Named Selection via Python console (ansys.com)

      Regards,

      Ashish Khemka

    • Gabriel Alves
      Subscriber

       

      Hi Ashish. Thank you very much for the reply. I did come accross this discussion, but it didn’t help me in finding a solution unfortunately. I still need help with the issue explained earlier. 

       

    • Gabriel Alves
      Subscriber

      Hello Ashish. Hope you are well.

      Sorry to bother, but would you have any other suggestion or comment on the problem mentioned above? 

      Thank you in advance. 

    • Ashish Khemka
      Forum Moderator

      Hi Gabriel,

       

      I have no additonal comments. Please wait for other members to comment.

       

      Regards,

      Ashish Khemka

    • Mike Rife
      Ansys Employee

      Hi Gabriel

      As far as I can tell that specific worksheet has not yet been exposed for access.  

    • Gabriel Alves
      Subscriber

      Hi Mike. Thanks for the reply. I will try another around it then. Thank you!

Viewing 6 reply threads
  • The topic ‘Extraction of Linearized Stress Worksheet Results via Python Script’ is closed to new replies.
[bingo_chatbox]