Theory
With "Constant cp", the value Specific heat cp (custom gas) is used at every temperature, and the compressible solver uses OpenFOAM's hConst thermodynamics (OpenFOAM user guide, 2026).
With "cp(T) polynomial", the heat capacity is the fourth-order polynomial of cp(T) coefficients (custom gas), valid over Polynomial temperature range (custom gas), equation (1). The program writes it exactly as the 7-coefficient polynomial of OpenFOAM's janaf thermodynamics, which is expressed for the molar heat capacity divided by the universal gas constant, equation (2):
- the coefficients are scaled by ;
- the same coefficient set is used below and above the common temperature (the middle of the range);
- the enthalpy and entropy constants are 0, because only enthalpy differences enter the solution and the heat balance, equation (3).
A temperature-dependent heat capacity matters for a hot gas: it determines the enthalpy that the flow carries (heat transfer) and the ratio that sets the speed of sound.
Equations
| where | meaning | unit |
|---|---|---|
| Specific heat capacity at constant pressure | J/(kg K) | |
| Polynomial coefficients entered in the library | J/(kg K^(i+1)) | |
| Coefficients of the solver's molar polynomial | - | |
| Molar mass | kg/kmol | |
| Universal gas constant, 8314.47 | J/(kmol K) | |
| Specific sensible enthalpy | J/kg | |
| Temperature | K |
Default and rule
- Default
- constant
- Rule
Constant cp.
- Source
The
hConstandjanafthermodynamics of OpenFOAM (OpenFOAM user guide, 2026); the mapping of the entered polynomial onto thejanafcoefficients is defined by the program and written into the case'sthermophysicalProperties.
Valid range constant | cp(T) polynomial
Choices
Constant cp; cp(T) polynomial.
Outside the range
Outside the polynomial's range the solver holds the properties at the range end; the Material step shows a warning when its temperature lies outside.