Analyses of plane stress and plane strain through energy minimization. (October 2021)