SpectraSim Documentation
Parameter · 04 Material

Specific heat cp (custom gas)

custom_gas.cp Unit: J/(kg K) Step 04 · Material

The constant specific heat capacity at constant pressure of the custom gas, used when the heat capacity model is "Constant cp".

Last updated

Theory

The value enters:

  • the energy equation of the compressible solver (hConst thermodynamics, h=cp(T−Tstd)h = c_p (T - T_\mathrm{std}) (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 cv=cp−Rc_v = c_p - R would not be positive, equation (2).

Equations

γ=cpcp−R\gamma = \frac{c_p}{c_p - R}
(1)
cv=cp−R>0,R=RMc_v = c_p - R > 0, \qquad R = \frac{\mathcal{R}}{M}
(2)
wheremeaningunit
cpc_pSpecific heat capacity at constant pressureJ/(kg K)
cvc_vSpecific heat capacity at constant volumeJ/(kg K)
γ\gammaRatio of heat capacities-
RRSpecific gas constantJ/(kg K)
R\mathcal{R}Universal gas constant, 8314.47J/(kmol K)
MMMolar masskg/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 hConst thermodynamics of OpenFOAM (OpenFOAM user guide, 2026).

Valid range c_p > R = 8314.47 / M

Lower bound

Above RR: a monatomic gas has cp=2.5Rc_p = 2.5 R, a diatomic gas about 3.5R3.5 R.

References 1

  1. OpenCFD Ltd. (2026). OpenFOAM user guide. openfoam.com. Web page