residual stress formulation example
threshold updates for ub and lb calculation