Finite element ANSYS APDL code to demonstrate the effects of wall thickness (i.e., mechanical clamping) on the residual stress upon the release of the applied field.