I want to get averaged stress values at nodes. It is a really common problem/question but it does not work for me.
I tried the following way:
node=odb.rootAssembly.instances[key].getNodeFromLabel(v)
(v is some value) It is the node where I can ask node.label node.coordinates etc.
field = odb.steps[currentstepname].frames[currentframe].fieldOutputs[outputVariable]
gives me the field of e.g. stress tensor
tensor_output=session.xyDataListFromField(odb=odb,outputPosition=NODAL,variable=var,nodeLabels=((node.instanceName,node.label),))
gives me the averaged values of stress tensor over time.
In session.xyDataObjects I can iterate over the keys/values of the xyDataObjects. But I want the single value of the stress I can request about the probe values feature. If the average threshold is e.g. 75% I get more than one value. Yes i know this is physically correct and depends on the mesh density but I really need just the one value I can see in the visualization module and I don't know why it is so hard to get access to it.
I tried to google the solution but I got no solution to my problem.
Can anybody help me, please?
Best Regards
mk