You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Ansys 2024 R2 and trying to programmatically generate needed linear stress results. I get two different results using the same code internally and externally. Specifically the external script does not create results sets.
In my project I record to click operations to generate the following.
If I put this same script into a text file and execute it the results are not generated. The tree shows no change. Am I missing something simple? The primary portion is an exact copy of why Ansys Mechanical Generates so I am confused as to why it would not work.
It seems that the sets aren't being created because the data is not cleared but the data clear fails
In [8]: solution.ClearGeneratedData()
2024-12-09 19:48:15.406346 (Thread 0x00006390) [POST.ReaderPluginMgr, error] --- : Request to instantiate unknown reader type
2024-12-09 19:48:15.407432 (Thread 0x00006390) [POST.ReaderPluginMgr, error] --- : Request to instantiate unknown reader type
In [9]: curr_lns.EvaluateAllResults()
2024-12-09 19:48:21.401400 (Thread 0x00006390) [POST, warning] ----------------- : Result repository message 0: "The result file cannot be opened."
2024-12-09 19:48:21.401400 (Thread 0x00006390) [POST, warning] ----------------- : Result repository message 1: "Current result file may not contain requested result data . Please clear the solution and solve again."
I tested with a simple model with same code but I am seeing no issues. May its specific to the file you are using. Could you please share the .mechdb files and script if possible? If you want to share directly, please email to [email protected] with title "pymechanical issue 1002 requested files"
🔍 Before submitting the issue
🐞 Description of the bug
I am using Ansys 2024 R2 and trying to programmatically generate needed linear stress results. I get two different results using the same code internally and externally. Specifically the external script does not create results sets.
In my project I record to click operations to generate the following.
If I put this same script into a text file and execute it the results are not generated. The tree shows no change. Am I missing something simple? The primary portion is an exact copy of why Ansys Mechanical Generates so I am confused as to why it would not work.
📝 Steps to reproduce
Follow the steps described above.
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2024 R2
🐍 Which Python version are you using?
3.12
📦 Installed packages
The text was updated successfully, but these errors were encountered: