Inverse Resolution of the Heat- Transfer Equation: Application to Steel and Aluminum Alloy Quenching