Hello,
I'm currently attempting to retrieve nodal stresses from a model utilizing PyMAPDL. My approach involves employing both mapdl.result.nodal_stress and mapdl.post_processing.nodal_component_stress commands. While these commands successfully fetch stress values at the nodes, I aim to integrate the options 'power graphics' and 'full graphics' from mapdl.graphics. Irrespective of the chosen option within mapdl.graphics, the results obtained via mapdl.result or mapdl.post_processing commands remain consistent across all nodes. I'm seeking guidance on how to obtain nodal stress values while incorporating the mapdl.graphics option.
I experimented with mapdl.prnsol; however, the precision of the results fell short of my requirements. I'm in need of greater precision. Is there an alternative method to achieve the same objective?
Sample code:
from ansys.mapdl.core import launch_mapdl
import numpy as np
mapdl = launch_mapdl()
filename = 'static.db'
mapdl.resume(filename)
mapdl.post1()
mapdl.file('static.rst')
mapdl.graphics("POWER")
mapdl.graphics("FULL")
data = mapdl.result.nodal_stress(0)[0]
Thanks,
Dr. Samukham