Thermal Stratification in a Hot-Water Storage Tank
A cylinder can hold hot and cold water at once. Follow the invisible boundary that makes the stored heat useful — and watch flow and mixing erase it.
Change the conditions
Operating mode
iStarting conditions
SELECT A REGIMEDoes the front travel at the flow speed?
Turn off mixing and wall losses in a clean test, move one quarter of the tank volume through the inlet, then locate the 40 °C boundary. Compare the measured height with ideal plug-flow displacement.
Three independent checks
Newton cooling law
Uniform tank, no flow or mixing. The numerical temperature is compared with the analytic exponential cooling solution.
Thermal eigenmode decay
A cosine temperature profile with insulated ends decays at a known rate. Its measured amplitude is compared with the diffusion equation.
Plug-flow front position
A sharp inlet step is advected through the tank with zero physical mixing. The 40 °C crossing is compared with volume displacement.
Checks use the selected geometry, flow, mixing and insulation settings. Small finite-volume differences are expected; the model is educational, not a certified tank-design tool.
MODEL NOTESThe science+
Governing model
The tank is divided into 48 equal-volume horizontal layers. Each layer has a water temperature T. Vertical transport is represented by a one-dimensional advection–diffusion energy equation:
Here u is the signed mean vertical velocity, α is effective axial thermal diffusivity, and kloss = UAwall/(ρcpV). The flow speed is |u| = Q/A. Charging sends hot water in at the top; drawing sends cold water in at the bottom.
Constants and assumptions
- Textbook: water density ρ = 997 kg/m³ and specific heat cp = 4180 J/(kg·K), treated as constant.
- Textbook: gravity establishes the stable buoyancy ordering; warm water is less dense than cold water over the displayed range.
- Illustrative: the effective axial diffusivity combines molecular conduction with unresolved jet and turbulence mixing.
- Illustrative: the wall coefficient and inlet temperature are user-selected scenarios, not measured specifications.
What is simplified
This is a one-dimensional, cross-section-averaged model. It does not solve the full Navier–Stokes equations, resolve inlet diffuser geometry, predict a real coil plume, or calculate temperature-dependent water properties. Radial gradients and fittings are omitted. The stable hot-over-cold arrangement is physically motivated, while the rate of mixing is represented by one effective parameter.
Numerical method
Conservative finite-volume fluxes move heat between layers. Internal diffusion fluxes cancel pairwise, while the inlet and outlet carry enthalpy across the tank boundary. A fixed 0.2 s time step and second-order Runge–Kutta (Heun) update advance the layer temperatures. The chosen step remains below the advection and diffusion stability limits across the control ranges.