ansys / pymapdl-reader

Legacy binary interface to MAPDL binary files.
https://reader.docs.pyansys.com
MIT License
47 stars 23 forks source link

Plot Nodal stress Error #263

Open sulei27 opened 1 year ago

sulei27 commented 1 year ago

šŸ” Before submitting the issue

šŸž Description of the bug

mapdl.post_processing.nodal_eqv_stress()

2023-05-30_134925

šŸ“ Steps to reproduce

When I am trying to plot Nodal Stress using the commands: "result.plot_nodal_stress(0)" or "mapdl.post_processing.nodal_eqv_stress()" it gives me the following Error.!

ERROR: CRITICAL - - logging - handle_exception - Uncaught exception Traceback (most recent call last): File "C:\Users\dell\PycharmProjects\pythonProject15\gf.py", line 178, in result.plot_nodal_stress(0, comp='x') File "E:\python3.10\lib\site-packages\ansys\mapdl\reader\rst.py", line 3433, in plot_nodal_stress return self._plot_nodal_result( File "E:\python3.10\lib\site-packages\ansys\mapdl\reader\rst.py", line 4894, in _plot_nodalresult , result = self._nodal_result(rnum, result_type) File "E:\python3.10\lib\site-packages\ansys\mapdl\reader\rst.py", line 3707, in _nodal_result raise ValueError( ValueError: Result Nodal stresses (ENS) is not available in this result file.

Process finished with exit code 1

šŸ’» Which operating system are you using?

Windows

šŸ“€ Which ANSYS version are you using?

2021 R2

šŸ Which Python version are you using?

3.10

šŸ“¦ Installed packages

Pyansys

IDE : Pycharm
mikerife commented 1 year ago

Hi @sulei27 It looks like there are no element nodal stresses in the result file to plot. To double check print the result object:

print(result)

Which will produce a listing like shown here:

https://reader.docs.pyansys.com/user_guide/loading_results.html#result-properties

ENS should not show up (i.e. not available)...can you confirm.

Mike