Stratified Thermal Storage Tank Observatory
Watch a moving boundary separate hot water from cold, and discover why keeping that boundary sharp matters.
Hot water is introduced at the top. It displaces cooler water downward while a narrow transition layer separates the two.
MODEL NOTESThe scienceEquations, assumptions and numerical checks +
Governing model
The tank is treated as a vertical, constant-area column. Temperature is represented by 72 well-mixed horizontal control volumes, indexed from bottom to top. The one-dimensional energy equation is
Here u = Q/A is signed superficial velocity, αeff is effective axial diffusivity, and Ta is ambient temperature. The wall-loss rate is λ = UP/(ρcpA), with cylindrical perimeter P = πD.
Advection uses first-order upwind face fluxes. Axial diffusion uses conservative face fluxes with zero diffusive flux at the ends. The wall term is integrated locally. All updates use a fixed 0.5 s step.
Constants and simplifications
- Water density: 997 kg/m³ (textbook reference near 25 °C).
- Specific heat: 4,182 J/(kg·K) (textbook reference).
- Tank height 1.60 m and diameter 0.65 m (illustrative geometry; about 530 L).
- Effective diffusivity and wall U-value are user-set (illustrative lumped parameters).
The model assumes a constant cross-section, incompressible water, fixed flow rate and a uniform wall-loss coefficient. It does not resolve inlet jets, radial circulation, buoyancy-driven plume shape, pipework, or temperature-dependent properties. The high-mixing preset represents diffuser failure by increasing axial mixing; it is not a CFD model of a broken diffuser.
Stored heat is the sensible energy above a 20 °C reference. Outlet heat rate uses the outlet temperature relative to the same reference.
Independent numerical checks
These checks run automatically using separate test profiles and analytical results.
Percentage difference is measured against the stated conservation law or analytical solution. The checks test numerical operators, not the completeness of the physical model.