Modeling of Latent Heat Effects

Category: Thermal Analysis | Revised 2026-09-30
CAE visualization for latent heat theory - technical simulation diagram
Modeling of Latent Heat Effects

Theory: heat that flows without changing temperature

Overview

🙋

In a thermal analysis of a heat-storage material, results change a lot with time step once the melting point is crossed. Is my latent-heat setup wrong?

🎓

Probably how latent heat is entered. When water freezes it stays at 0 °C while releasing 334 kJ per kg — about as much heat as cooling water by 80 K. Ordinary thermal solvers, with temperature as the unknown, struggle with heat flowing at constant temperature, so they approximate it with a specific-heat peak around the melting point. If a time step jumps over that peak, latent heat drops out of the calculation.

Apparent-heat-capacity method

$$ c_{app}(T) = c + \frac{L}{\Delta T_m}\quad (T_m - \Delta T_m < T \le T_m) $$

Latent heat $L$ is spread as specific heat over a range $\Delta T_m$ below the melting point $T_m$. Natural for alloys that solidify over a range, artificial for pure substances. A narrower range is more realistic, but a step that jumps across it omits the latent heat.

Enthalpy method

$$ \rho\frac{\partial H}{\partial t} = \nabla\cdot(k\nabla T), \qquad H(T) = \int c\,dT + L\,f_l(T) $$

$H$ is enthalpy per unit mass and $f_l$ liquid fraction. Solving for heat content as the conserved variable means latent heat is not lost even if a step crosses the melting point. The kinked temperature–enthalpy relation needs iteration, but the latent heat is preserved.

Exact solution for verification (Stefan problem)

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

$s$ is frozen-layer thickness, $\alpha$ solid thermal diffusivity and $Ste$ the Stefan number (sensible to latent heat ratio). This exact solution for one-sided freezing from a constant-temperature wall is the benchmark for checking latent-heat handling.

Coffee Break Trivia

A problem that began with Arctic sea ice

The Stefan problem is named after the Austrian physicist Stefan, who around 1889 analysed how fast polar sea ice thickens; expedition records had already shown ice thickness growing with the square root of time. Problems in which the boundary itself moves as an unknown are mathematically awkward, and the same form appears in freezing, casting, welding, crystal growth and even food freezing. The enthalpy method, which avoids tracking the boundary, spread as a computational approach in the 1970s.

Worked example: freezing water

Example 1: exact solution

Water at 0 °C freezing from a −10 °C wall (ice conductivity 2.2 W/(m·K), specific heat 2,100 J/(kg·K), latent heat 334 kJ/kg). The Stefan number is a small 0.063, so latent heat dominates.

TimeIce thickness (exact)Quasi-steady estimate
1 h22.5 mm22.7 mm
6 h55.1 mm55.7 mm
24 h110.3 mm111.4 mm

Thickness grows with the square root of time, so going from 6 to 24 hours only doubles it. With a small Stefan number, the quasi-steady estimate treating the ice temperature profile as linear is within about 1%.

Example 2: comparing the two methods

The same problem solved in 1D with a 1 mm grid and an implicit scheme, comparing ice thickness after 6 hours (exact 55.1 mm). Apparent heat capacity was evaluated at each step's starting temperature.

Time stepEnthalpyApparent cp, 2 K range0.5 K range0.1 K range
10 s54.6 mm53.8 mm54.4 mm54.4 mm
60 s54.6 mm53.6 mm53.8 mm52.9 mm
600 s54.6 mm52.3 mm48.4 mm42.4 mm
🙋

Narrowing the range to be more realistic actually makes things worse with a large step.

🎓

Right. With a 0.1 K range, a grid point's temperature sweeps straight through it in 600 s, never properly sitting on the latent-heat peak. When the latent-heat bookkeeping goes wrong, whether the error comes out thick or thin depends on the implementation and how heat capacity is evaluated; here it came out thin. Either way, results that change with time step are the telltale sign of skipped latent heat. The enthalpy method stays at 54.6 mm even with a 60-fold larger step. If you use apparent heat capacity, check that the temperature change per step is well below the range.

How to approach the analysis

Checks

  1. Confirm how the software handles latent heat (apparent heat capacity or enthalpy).
  2. Set grid and time step against an exact solution such as the Stefan problem.
  3. Halve the time step and confirm results don't change.
  4. Check the global energy balance: heat in = change in sensible + latent heat.

Cautions

  • Alloy freezing range: alloys solidify over a range; take liquid fraction versus temperature from material data.
  • Supercooling: water and PCMs may stay liquid below the melting point, then rebound in temperature once freezing starts.
  • Volume change and convection: expansion on freezing and natural convection in the liquid need separate modelling where relevant.
Coffee Break Trivia

“The PCM stores less heat than expected”

An analysis of a PCM cool box predicted longer holding time than the experiment. The latent-heat peak had been spread over a wide temperature range, so latent heat acted at temperatures where the material had not yet begun to melt. Too narrow a range, conversely, gets skipped by the time step. Reading how much heat is absorbed at each temperature from differential scanning calorimetry (DSC) data and entering that shape directly is the reliable approach. When comparing with experiments, compare cumulative absorbed heat, not just temperature, to see the cause.

Common mistakes

Mistakes and fixes

MistakeEffectFix
Narrow range with large stepsLatent heat skippedWiden range or use enthalpy
No time-step sensitivity checkError goes unnoticedHalve and compare
Overly wide rangePremature meltingEnter DSC shape
Not checking energy balanceMissing latent heat undetectedCompare cumulative heat
Ignoring supercoolingWrong freezing onsetCheck experimentally, model if needed
🙋

I'd like to try melting and freezing calculations myself.

Related Simulators

Experience the theory firsthand with the interactive simulator for this field

All Simulators

Related fields

Structural AnalysisFluid AnalysisManufacturing Process Analysis
Rate this article
Thank you for your feedback!
Helpful
More details
Report error
Helpful
0
More details
0
Report error
0