Theory
The value enters:
- the energy equation of the compressible solver (
hConstthermodynamics, (OpenFOAM user guide, 2026)); - the heat balance of heat-transfer runs;
- the ratio of heat capacities, equation (1), which sets the speed of sound in the acoustics.
It must exceed the specific gas constant; otherwise would not be positive, equation (2).
Equations
(1)
(2)
| where | meaning | unit |
|---|---|---|
| Specific heat capacity at constant pressure | J/(kg K) | |
| Specific heat capacity at constant volume | J/(kg K) | |
| Ratio of heat capacities | - | |
| Specific gas constant | J/(kg K) | |
| Universal gas constant, 8314.47 | J/(kmol K) | |
| Molar mass | kg/kmol |
Default and rule
- Default
- 1006 (air) in a new material
- Rule
A new material starts at 1006 J/(kg K) (air at room temperature).
- Source
Ideal-gas relations; the
hConstthermodynamics of OpenFOAM (OpenFOAM user guide, 2026).
Valid range c_p > R = 8314.47 / M
Lower bound
Above : a monatomic gas has , a diatomic gas about .