Theory
With heat transfer the compressible solver the compressible solver solves the energy equation; the wall's temperature condition in 0/T is one of three (OpenFOAM user guide, 2026):
| mode | 0/T condition | inputs |
|---|---|---|
| Adiabatic | zeroGradient (no heat flux) | none |
| Fixed temperature | fixedValue, | Wall temperature |
| Heat loss | externalWallHeatFluxTemperature, mode coefficient | shell, insulation, environment, emissivity, ambient |
Heat loss models the wall as a stack of planar layers (shell, then optional insulation) between the gas-side wall face and the environment; no solid region is meshed. The solver is given the layer thicknesses and conductivities, the ambient temperature , the outer convective coefficient and the emissivity; the boundary condition itself adds the radiation to . The gas-side heat transfer comes from the turbulence wall functions (compressible::alphatJayatillekeWallFunction, turbulent Prandtl number 0.85). The heat flux leaving the gas is equation (1).
The outer depends on the outer surface temperature, which is not known before the solve:
1. The program estimates a first surface temperature from resistances in series (an assumed gas-side film of 20 W/(m² K), the layers, the outer film), equation (2), and evaluates there. 2. After the start-up (upwind) phase it re-evaluates once from the solved wall heat flux: the surface temperature that carries that flux to the surroundings, equation (3), and at that temperature, written into the restart.
Both values are recorded with the run and shown in the report.
Internal walls (baffles, tube walls inside the muffler) are always adiabatic; only outer walls offer this setting. Quality gate 2 checks the energy balance: the enthalpy the gas loses must equal the heat through the walls within 1 %; with heat transfer the automatic stop also waits for this balance.
Equations
| where | meaning | unit |
|---|---|---|
| Heat flux leaving the gas, per unit wall area | W/m² | |
| Gas-side wall-face temperature (solved) | K | |
| Ambient temperature (Ambient temperature) | K | |
| Outer convective heat-transfer coefficient | W/(m² K) | |
| Thickness and conductivity of layer (shell, insulation) | m, W/(m K) | |
| Outer surface temperature | K | |
| Inlet gas temperature | K | |
| Linearised radiation coefficient | W/(m² K) | |
| Emissivity of the outer surface | - | |
| Stefan-Boltzmann constant | W/(m² K⁴) |
Default and rule
- Default
- AdiabaticMeasured
- Rule
Adiabatic.
- Source
Validation: straight pipe D 0.3 m, L 3 m, 0.157 kg/s of air at 700 K, 1.5 mm stainless shell with a 10 mm wrap (k 0.06), still air, emissivity 0.8. The computed temperature drop is 20.205 K against 19.660 K from an analytic pipe calculation with cylindrical layer resistances (+2.8 %) and 19.053 K with the planar layers the solver uses (+6.0 %); the energy balance closes to 0.017 %. Evaluating at the gas-side face temperature instead of the outer surface temperature (574 K against 386 K in this case) overestimates the convection by 20 %; equations (2) and (3) therefore use the outer surface temperature. Correlations: Outer environment.
Valid range Adiabatic | Fixed temperature | Heat loss; outer walls, heat transfer on
Planar layers
Curvature of the shell is not resolved: the error grows for a thick insulation on a small pipe (3.1 % between planar and cylindrical resistances in the validation case).
One h update
The outer is updated once, after the start-up phase; it then stays fixed while the solution settles.
Internal walls
Always adiabatic: heat exchange between two gas streams through a tube wall is not modelled.