A discontinuous Galerkin method for mathematical modeling of ice melting at the interaction with the environment