I am trying to generate scripts to automatically create views of a model at the max stress location. I know I could read every node and check the stress of each with python but this will take a while due to the size of the model. As this feature appears in CAE is there an easy way to script this? Once I know the node I am interested in I can then utilize the location of this to generate the views I want.
FWIW here is the best approach I know..:
field=frame.fieldOutputs['S'].getScalarField(componentLabel='S11')
maxp = max([ (g.data,g.elementLabel,g.integrationPoint) for g in field.values ])
( 242.4324 , 10333 , 1 )
Considering what you are doing I think the max integration point value is likely what you want. Getting the nodal average value will be a lot slower and more complicated.