Get max stress values at the nodes instead of averaged
I am currently working on developing a Python script model in which an rst file will be read through dpf reader (dpf.Model(rst_file)) and get the nodal stress values. But, the problem here is that the nodal stress values should not be the averaged ones but the maximum among the element contributions. I mean let's say node 1 is connected to elements 1,2,3 and 4. So, what's happening now is when I convert the elementalNodal stress values to nodal internally it is averaging nodal stress values at node 1 from all the elements (1,2,3 and 4). But what I need is the maximum nodal stress value at node 1 among all the element's contributions (max. of stress at node 1 among elements 1,2,3 and 4). I am able to do this using a for loop and iterating through all the nodes and elements but it consumes a lot of time for bigger models. So, is there any efficient way of doing this?