June 16, 2023 at 6:52 am
Ansys Employee
Hi
You can create a named selection of the nodes you want and then scope a result to that (use export then).
If you want to use scripting (say dpf or pythonresult) see here on how to obtain nodal data (as for saving to file see any python tutorial online).
https://forum.ansys.com/forums/topic/getting-stress-values-by-act-scripting/
For doing it in mechanical script below is an example to get the deformation at list of nodes (nodes array):
analysis = model.Analyses[0]
meshdata = analysis.MeshData
reader = analysis.GetResultsData()
stress = reader.GetResult("U")
nodes=[8,9,10,11,12]
utot=[]
for n in nodes:
u = stress.GetNodeValues(n)
ux=(u[0])
uy=(u[1])
uz=(u[2])
us = (ux*ux+uy*uy+uz*uz)
utot.append(sqrt(us))
All the best
Erik