Method for residual strain modeling taking into account mold and distribution of heat transfer coefficients for thermoset composite material parts