Using a linear inverse heat conduction model to estimate the boundary heat flux with a material undergoing phase transformation