Numerical analysis and optimal design of composite thermoforming process