Consistent perturbation expansion for phase‐changing material in a finite domain