Governing equation
The one-dimensional temperature field follows advection, axial dispersion and wall heat transfer:
∂T/∂t + v ∂T/∂z = α ∂²T/∂z² − λ(T − Tₐ)
Here v = Q/A, λ = UP/(ρcₚA), and α is an effective axial-dispersion coefficient. The tank is divided into equal-volume cells and advanced with a fixed 0.5 s illustrative time step using upwind advection and conservative centred diffusion fluxes.
Constants and assumptions
- Textbook: water density 998 kg/m³ and specific heat capacity 4,182 J/(kg·K), treated as constant.
- Illustrative: tank height 1.4 m, room temperature 20 °C and useful outlet threshold 45 °C.
- Illustrative: the initial profile rises smoothly from 38 °C at the base to the selected top-layer temperature.
- Simplified: one-dimensional vertical flow, constant cross-section, no buoyancy-driven recirculation, no heater coil, no draw-port geometry and no temperature-dependent properties.
- Simplified: axial dispersion represents unresolved mixing; it is not a direct measurement of molecular diffusion in water.
- Scaled: the cutaway is a schematic visualisation, not a dimensionally exact engineering drawing.
How to read the checks
The energy ledger compares the change in tank energy with inlet enthalpy, outlet enthalpy and wall loss. The diffusion test compares a separate cosine temperature mode with its continuous exponential decay. The plug-front test compares a separate no-dispersion flow calculation with the exact displaced-volume solution before the ideal front reaches the outlet. Percent differences are shown against those references.
Scope
This is an educational model for understanding thermal layering. Real tanks can have inlet jets, internal fittings, imperfect insulation, heating elements and complex three-dimensional circulation that this model does not resolve. The presets and controls are illustrative, not product specifications or design recommendations.