41 Temperature, energy and entropy
Research exposition; book author: Puma. Read the review guide for scope and the bibliography for inspected source limits. This chapter extends Chapters 2 and 26 without changing their published text. Every derivation below is original exposition under its stated hypotheses; none is a machine-checked theorem or evidence of an implemented thermal solver.
41.1 What temperature measures
Temperature is an intensive state variable. Internal energy is extensive: twice as much material at the same state has twice the energy. Specific internal energy has units J/kg; internal-energy density has units J/m³. Heat is energy crossing a boundary because of a temperature difference, not a substance stored inside a particle. A fluid may warm through compression or viscous dissipation without receiving boundary heat.
Assume a locally equilibrated, simple compressible pure material, with fixed composition and no independent elastic, electrical or magnetic work. For specific entropy , specific volume , and differentiable equilibrium energy , define
Here is absolute temperature, in kelvin, is J/(kg K), and is absolute thermodynamic pressure, in Pa. A pressure multiplier in an incompressible calculation can be defined only up to an additive gauge; an equation of state cannot. The formula is a local equilibrium constitutive statement, not a description of a molecular interface far from equilibrium. Mixtures require composition terms.
Define enthalpy , Helmholtz free energy , and Gibbs free energy . Direct differentiation of (41.1) gives
The same letter often denotes gravitational acceleration; here gravity is . For a pure substance, the mass-specific chemical potential is ; molar chemical potential is , with molar mass . Never mix molar and mass-specific latent heat in an exponential containing a gas constant.
An EOS is more than a pressure formula. A consistent provides
These follow by changing to in (41.2). The IAPWS-95 release, §4 and Table 3 is an authoritative pure-water example built from a Helmholtz potential; its saturation properties are calculated consistently with that potential. This is a model with a specified validity region and uncertainty, not a universal EOS for every Rheon preset.
41.2 The first law in a moving fluid
Work in a single smooth phase with density , velocity , Cauchy stress , body acceleration , conductive heat flux , and volumetric heating . Adopt outward heat flux as positive. Let , excluding gravitational potential for now. Local conservation is
Stress is symmetric in this classical continuum. Its mechanical energy flux is therefore ; equivalently total-energy advection includes , and viscous work is on the right. Integrating over a fixed volume makes each sign testable: outward cools the contents. If gravity derives from a stationary potential , moving into total energy removes the gravity work source, by mass conservation. Time-dependent external fields still do work.
Conditional identity. Dot (41.5) with velocity and use (41.4). The product rule gives the kinetic-energy equation with stress power after separating its flux. Subtracting this from (41.6) gives
This proof requires differentiability. Across shocks or phase boundaries the conservative integral equations and jump relations replace this manipulation. A discretization that separately damps velocity and transports temperature does not inherit (41.7): it must account for the lost kinetic energy, boundary work and any intended heat reservoir.
For a three-dimensional isotropic Newtonian fluid, let , , and . The closure
requires ; the skew part of the velocity gradient contracts to zero with symmetric stress. Nonnegative continuum dissipation does not prove a positive or stable explicit finite step. Artificial SPH viscosity, turbulence closures and physical viscosity also have different calibration meanings.
41.3 The second law is a constraint on closure
Under the hypotheses of (41.1), mass conservation gives . Substitute (41.7) into the Gibbs relation, divide by positive temperature and use the product rule for :
Fourier conduction , , makes the last two terms nonnegative. Entropy can leave an open domain, so total entropy inside need not increase. The inequality concerns internal production after entropy flux and heat supply are included. Setting a temperature floor adds energy unless its exchange is explicitly recorded. An energy-conserving method can still violate positive temperature or the entropy inequality.
Mixtures add species diffusion, chemical potential driving forces and enthalpy transported by diffusing species. The entropy flux need not be just . Heat and mass diffusion may have cross effects; an Onsager formulation constrains the transport matrix to yield nonnegative production. This draft’s later binary Fick model deliberately omits Soret and Dufour effects and does not claim a complete multicomponent entropy theorem.
41.4 Temperature equations have hypotheses
Define , , thermal expansion , and isothermal compressibility . Maxwell symmetry applied to a smooth Gibbs potential yields
For example, , obtained by differentiating ; substituting in proves the first identity. Combining that entropy differential with its constant-volume counterpart proves the second. These are equilibrium identities where derivatives exist and ; a constant-density idealization is a constrained limit, not permission to divide by zero compressibility.
Adding to (41.7) gives
Only for negligible pressure heating and viscous heating, no species/phase transfer, and the specified heat capacity does this reduce to an advection–diffusion equation. Even then variable belongs inside the divergence. An ideal gas has ; a liquid under strong compression can also require pressure work. Low Mach alone does not justify discarding the thermodynamic pressure derivative in a sealed heated vessel.
41.5 What must be stored and measured
A thermal state needs a consistent energy reference, composition, EOS branch and energy-to-temperature inverse. For constant heat capacity in one phase, is convenient. Using as a conserved variable across arbitrary pressure changes confuses enthalpy and internal energy. Across phase change, separate phase offsets carry latent energy; they cannot be chosen independently after the fact.
Rheon’s particle preview stores temperature and has wall-contact relaxation, while its ideal-gas Euler prototype stores conservative total energy. Neither fact supplies a coupled two-phase energy balance. The gap map identifies the exact inspected source. Before implementation, decide whether a proposed stage claims conserved total energy, an approximate low-Mach enthalpy budget, or merely prescribed temperature. Their acceptance tests are different.