Governing model
The tank is represented as a one-dimensional water column. Distance x is measured downward from the hot inlet.
∂T/∂t + u ∂T/∂x = α ∂²T/∂x²
u = Q/A, with A = πD²/4. Advection carries the hot layer down; effective diffusivity α spreads the thermocline.
E = ρcpA ∫(T − T₀) dx
Pnet = ρcpQ(Tin − Tout)
Numerics and checks
A conservative finite-volume scheme uses upwind advection, centred diffusion and a fixed 0.25 s step SCALED. The step is chosen so the combined advection and diffusion stability measure remains below one across the control ranges.
Water density ρ = 997 kg/m³ and specific heat cp = 4,180 J/(kg·K) are TEXTBOOK reference values. The displayed tank dimensions, flow, temperatures and effective diffusivity are ILLUSTRATIVE.
What is simplified
The cross-section is assumed uniform. The model does not resolve inlet jets, turbulence, buoyancy-driven circulation, wall heat capacity, insulation losses or temperature-dependent water properties. Effective diffusivity stands in for unresolved axial mixing. The bottom outlet carries the local bottom-cell temperature.
Consequently, the simulation explains how advection and mixing shape a thermocline; it is not a design calculator for a real installation.