Governing model
The tank is represented as vertical, equal-volume cells. Temperature is transported upward by the mean flow, spread by an effective diffusivity, and relaxed toward room temperature by wall losses.
∂T/∂t + u ∂T/∂z = Deff ∂²T/∂z² − λ(T − Ta)
u = Q/A · λ = U As /(ρ cp V)
The energy ledger is dE/dt = ρcpQ(Tin − Tout) − UAs(T̄ − Ta). The solver uses conservative face fluxes and a fixed forward-Euler time step. Clock speed changes playback, not the integration step.
Independent checks
- Heat balance: the cell enthalpy change is compared with the accumulated inlet/outlet heat and wall-loss ledger.
- Diffusion mode: a separate insulated cosine profile is compared with its exact first-mode exponential decay.
- Tracer inventory: a passive inlet tracer is compared with its independently accumulated inflow-minus-outflow volume.
Experiment theory
For a uniform initial tank and a step change at the inlet, the midpoint of an ideal advection–diffusion front travels at the mean velocity. The upper-cell sensor prediction is t = (H − Δz/2)/u. The test turns wall losses off to isolate transport.
What is simplified
This is a one-dimensional plug-flow model. It does not resolve inlet jets, buoyant plume shape, coils, internal baffles, radial temperature gradients, pressure changes, or a detailed heat-pump cycle. Effective mixing is a tunable stand-in for unresolved turbulence and internal circulation. The tank is drawn as a scaled cutaway; the flow and temperature field are computed, not decorative animation.
Numbers and constants
TEXTBOOK approximations: water density ρ = 997 kg/m³ and specific heat cp = 4,180 J/(kg·K), treated as constant. ILLUSTRATIVE settings: volume, flow, inlet temperature, effective mixing and wall U-value. SCALED geometry: tank height is fixed for the visual model; cross-sectional area changes with selected volume.
An educational physical model; not a design tool for a particular installation.