Residual stress and domain structure