Stefan problem

Category: Phase Change | Revised 2026-10-01
CAE visualization for stefan problem theory - technical simulation diagram
Stefan Problem

Theory: conduction with a moving front

Overview

🙋

I want to calculate how fast a phase-change material melts. How does it differ from ordinary conduction?

🎓

The difference is that the boundary (front) between melted liquid and remaining solid moves with time. The front absorbs latent heat to melt, so heat is spent advancing the front and barely reaches beyond. Problems where the front position is part of the answer are called Stefan problems. The simplest case has an exact solution, often used to verify numerical codes. Start with the exact solution to see how fast the front moves.

Neumann's exact solution

$$ s(t) = 2\lambda\sqrt{\alpha t}, \qquad \lambda\,e^{\lambda^2}\,\mathrm{erf}(\lambda) = \frac{Ste}{\sqrt{\pi}}, \qquad Ste = \frac{c\,(T_w - T_m)}{L} $$

Solid initially at melting point $T_m$, melted by a wall held at $T_w$. The front $s$ advances with the square root of time, with coefficient $\lambda$ set solely by the Stefan number $Ste$ (sensible-to-latent heat ratio). $\alpha$ is the liquid thermal diffusivity.

The enthalpy method

$$ \frac{\partial H}{\partial t} = \nabla\cdot(k\nabla T), \qquad T = \begin{cases} T_m & 0 \le H \le \rho L \\ T_m + (H - \rho L)/(\rho c) & H > \rho L \end{cases} $$

Solving for enthalpy $H$ (heat content including latent heat) instead of temperature handles phase change without tracking the front. A melting cell stays at the melting point while its enthalpy rises by the latent heat.

Coffee Break Trivia

A problem born of polar ice thickness

The problem is named after the Slovenian-born physicist Stefan, who around 1889 studied how fast polar sea ice thickens. Comparing with Arctic expedition data, he showed ice thickness grows with the square root of time. An exact solution of the same form had reportedly been presented earlier by Neumann in lectures, and it is now often called the Neumann solution. It is the starting point for moving-front heat problems: freezing, casting solidification, thermal storage and welding.

Worked examples

Example 1: exact versus quasi-steady

Assuming a linear liquid profile (quasi-steady) gives $\lambda = \sqrt{Ste/2}$:

Stefan number0.010.10.20.512
Exact λ0.07060.22000.30640.46480.62010.8006
Quasi-steady error+0.2%+1.6%+3.2%+7.6%+14.0%+24.9%

Example 2: melting paraffin

Paraffin (conductivity 0.2 W/mK, density 800 kg/m³, specific heat 2,000 J/kgK, latent heat 200 kJ/kg, melting point 50 °C) melted by a 70 °C wall (Stefan 0.2, convection ignored). The front reaches 13.0 mm in 1 h, 26.0 mm in 4 h and 63.7 mm in 24 h; wall heat flux at 4 h is 158.7 W/m².

Example 3: enthalpy-method accuracy

Cells (50 mm)Front at 4 hErrorWall-flux oscillation
2526.022 mm0.021 mm−1.8% to +2.6%
5026.009 mm0.008 mm—
10026.004 mm0.003 mm±0.1%
20026.002 mm0.001 mm—
🙋

The front is almost exact even on 25 cells, yet the heat flux oscillates.

🎓

In the enthalpy method a cell stays pinned at the melting point until it finishes melting, then starts to warm. So the temperature gradient seen from the wall — the heat flux — changes stepwise each time a cell melts. The front position, from summing melted fractions, follows the overall energy balance and comes out accurately. But for wall heat flux or a point's temperature history, refine the grid or smooth by spreading latent heat over a small temperature range around the melting point.

Analysis workflow

  1. Compute the Stefan number to see whether sensible or latent heat dominates.
  2. Get a first estimate of front motion from the 1D exact solution.
  3. Use the enthalpy or apparent-heat-capacity method and verify against the exact solution under the same conditions.
  4. Where liquid natural convection matters (e.g. PCM melting), solve the flow too.
  5. For alloys with a melting range, include the mushy zone.
Coffee Break Trivia

“It melted twice as fast as calculated”

A thermal-storage unit's paraffin, designed with conduction-only calculations, melted about twice as fast as predicted in the prototype. Warmed liquid rose and melted the upper solid first: natural convection in the liquid carried far more heat than conduction alone. Melting in a vertical container differs completely from a horizontal one. The exact Stefan solution is an important verification starting point, but real devices need the flow solved as well.

Common mistakes

Mistakes and fixes

MistakeEffectFix
Quasi-steady at large Stefan numberFront too fastExact or numerical solution
Heat flux on a coarse gridStaircase oscillationFiner grid or smoothing
Ignoring liquid convectionMelting time overestimatedSolve the flow
Ignoring volume changeVoids and pressure missedAccount for density change
Ignoring supercoolingSolidification onset wrongMeasure and include supercooling
🙋

I'd like to try related calculations.

Related Simulators

Experience the theory firsthand with the interactive simulator for this field

All Simulators

Related fields

Structural AnalysisFluid Analysis (CFD)Manufacturing & Process Simulation
Rate this article
Thank you for your feedback!
Helpful
More details
Report error
Helpful
0
More details
0
Report error
0