Methodology for design and control of thermomechanical processes