Equivalence of stress and energy calculations of mean stress