← All case studies

Gallium PCM Melting: Tracking a Moving Melt Front and Making the Energy Books Balance

“Before we commit to a phase-change thermal buffer, can your solver track a solid-liquid melt front with natural convection — and prove the energy going in actually shows up as melted material?”

GO Phase-change CFD (enthalpy-porosity melting, laminar, Boussinesq buoyancy) · unedited output from a real Smidr run

The ask

The classic gallium melting benchmark: a 9 x 6 cm cavity of solid gallium held at 28.3 C, with the left wall stepped to 38.0 C — 8.2 K above the liquidus. Gallium is the standard liquid-metal test for phase-change solvers because the observables that matter are unforgiving: the position and shape of the melt front, and the buoyancy-driven convection cell that tilts it. The job was to run the transient melt with the enthalpy-porosity method (apparent heat capacity plus a Carman-Kozeny mushy zone) and let the pipeline's own QA checks decide whether the physics holds together.

What the pipeline ran

Smidr's structured finite-volume solver on a 45 x 30 x 1 grid (1,350 cells, quasi-2D): incompressible projection on a staggered grid, first-order upwind transport, Boussinesq buoyancy, enthalpy-porosity phase change, laminar. The run advanced 6,000 adaptive time steps covering 76.3 s of melting, with the time step ending at 12.7 ms. Total wall time: 2.9 seconds, including QA checks and report generation.

The verdict

GO
  • All four automated QA checks passed: stability (solution remained finite), incompressibility (max post-projection divergence 1.44e-15 1/s), energy balance (0.2% imbalance), melt margin (melt fraction 11.3%)

Key numbers

MetricValueNote
VerdictGOAll four automated QA checks passed; no human in the loop
Melt fraction at 76.3 s11.3%Liquid fraction integrated over the cavity; melting still in progress by design
Energy balance closure0.2%Boundary heat rejection (-23.9 W) vs energy storage (+24.0 W); the melted mass is accounted for
Max post-projection divergence1.44e-15 1/sIncompressibility enforced to machine precision
Peak melt velocity11.5 mm/sBuoyancy-driven convection cell rising along the hot wall
Hot-wall superheat8.2 K above liquidus311.15 K wall against a 302.98 K liquidus
Grid45 x 30 x 1 (1,350 cells)Quasi-2D 9 x 6 cm cavity, benchmark resolution
Simulated time76.3 s (6,000 steps)Adaptive time stepping, final dt 12.7 ms
Wall time2.9 sFull transient including QA checks and report

Quality, stated plainly

The run's QA gate checked four things and passed all four: the solution stayed finite, post-projection divergence sat at machine precision (1.44e-15 1/s), the energy books closed to 0.2% (heat leaving through the walls matched the energy stored in warming and melting the gallium), and the melt fraction cleared its margin at 11.3%. The physics signature is visible in the field render: the melt front is tilted — wider at the top of the cavity than the bottom — which is exactly what the rising convection cell should do, and is the classic qualitative observable this benchmark exists to test. The report is equally clear about what this run is not: screening fidelity with diffusive first-order upwind transport (trust the integral quantities — melt fraction, heat splits, temperatures — over fine flow structure), no mesh-refinement study in this run, steady state not reached because melting was still under way when the clock stopped, and the report itself recommends a film-coefficient sensitivity sweep before any hard sign-off. Those caveats are printed in the deliverable, not buried.

Figures from the run

Liquid fraction at 76.3 s: the melt front is tilted — advanced to ~23 mm at the top of the cavity but only ~7 mm at the bottom — the signature of the buoyancy-driven convection cell that makes gallium the standard phase-change benchmark.
Liquid fraction at 76.3 s: the melt front is tilted — advanced to ~23 mm at the top of the cavity but only ~7 mm at the bottom — the signature of the buoyancy-driven convection cell that makes gallium the standard phase-change benchmark.
Temperature field (28.3-37.7 C): superheat concentrates in the melt layer against the hot wall, with warm liquid carried up and across the top of the front.
Temperature field (28.3-37.7 C): superheat concentrates in the melt layer against the hot wall, with warm liquid carried up and across the top of the front.
Velocity magnitude, peaking at 11.5 mm/s in the rising plume along the hot wall; the still-solid region is motionless, as the Carman-Kozeny mushy-zone drag requires.
Velocity magnitude, peaking at 11.5 mm/s in the rising plume along the hot wall; the still-solid region is motionless, as the Carman-Kozeny mushy-zone drag requires.

Why this matters

Phase-change thermal design — PCM heat buffers, melt processing, thermal batteries — lives or dies on two questions: where is the melt front, and did the energy actually go where the solver says it did. Most CFD reports hand you a pretty temperature plot and ask you to trust it. This run hands you a closed energy budget (0.2%), a divergence-free velocity field to machine precision, and a melt front whose convection-driven tilt matches the known behavior of the hardest standard benchmark in the category — with the solver's fidelity limits stated in the same report as the verdict. If a screening run fails these checks, you get a NO-GO, not a prettier plot. That is what makes a 3-second transient useful to an engineering manager: it is fast enough to sweep, and honest enough to trust.

Scope of this run

Your part. Your question. Same rigor.

Send us the geometry and the question — get the analysis, the honest error bars, and a verdict you can defend.

Request pilot access