SpectraSim Documentation
Parameter · 04 Material

cp(T) coefficients (custom gas)

custom_gas.cp_coeffs Unit: J/(kg K^(i+1)) Step 04 · Material

The five coefficients c0c_0 to c4c_4 of the heat-capacity polynomial of the custom gas, with cpc_p in J/(kg K) and TT in kelvin. Unused higher coefficients remain 0.

Last updated

Theory

The heat capacity is evaluated with equation (1). The material library checks it at 51 temperatures across Polynomial temperature range (custom gas) and rejects the material if cpc_p does not exceed the gas constant anywhere in that range. The program converts the coefficients exactly into the molar polynomial of the solver's janaf thermodynamics (OpenFOAM user guide, 2026); see Heat capacity model (custom gas).

Data published as a molar heat capacity cˉp(T)\bar{c}_p(T) in J/(mol K) convert to these coefficients by multiplication by 1000/M1000/M; data given as cˉp/R\bar{c}_p/\mathcal{R} (the usual 7-coefficient form) convert by multiplication by R/M\mathcal{R}/M, equation (2).

Equations

cp(T)=c0+c1T+c2T2+c3T3+c4T4c_p(T) = c_0 + c_1 T + c_2 T^2 + c_3 T^3 + c_4 T^4
(1)
ci=ai+1 RMc_i = a_{i+1}\,\frac{\mathcal{R}}{M}
(2)
wheremeaningunit
cpc_pSpecific heat capacity at constant pressureJ/(kg K)
cic_iCoefficient of TiT^iJ/(kg K^(i+1))
ai+1a_{i+1}Coefficient of TiT^i in the molar form cpM/Rc_p M/\mathcal{R}-
MMMolar masskg/kmol
R\mathcal{R}Universal gas constant, 8314.47J/(kmol K)

Default and rule

Default
c0 = 1006, others 0
Rule

c0=1006c_0 = 1006, the others 0 (a constant air value) in a new material.

Source

The polynomial form and its conversion to the janaf coefficients are defined by the program; the janaf form is that of OpenFOAM (OpenFOAM user guide, 2026).

Valid range c_p(T) > R over the whole range

Positive cv

cp(T)>Rc_p(T) > R at every temperature of the range.

References 1

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