Boundary value problem for a phase transition model