I am writting a code to simulate elasto-plastic behaviour of a 2D plane stress model.The finite element discretization is based on quadrilateral elements.My question is based on calculation of stresses. Suppose the the displacement solution is obtained at each node.Thus, for the calculation of the yield function do I have to calculate stresses at each Gauss point for every element obtaining a stress tensor at each GP and then calculate yield function? Is that procedure correct? Does the calculation of yield function or equivalent stresses refer to every element at every Gauss Point and further the elastic predictor steps and return mapping should be done for every GP?