IdealGas

class IdealGas : public fprops::SinglePhaseFluidProperties

Ideal gas.

Public Functions

IdealGas(double gamma, double molar_mass)

Constructor.

Parameters:
  • gamma – Adiabatic index (ratio of specific heats cp/cv)

  • molar_mass – Molar mass \([kg/mol]\)

double gamma() const

Get adiabatic index.

Returns:

Adiabatic index (ratio of specific heats cp/cv)

double molar_mass() const

Get molar mass.

Returns:

Molar mass \([kg/mol]\)

double R_specific() const

Get specific gas constant.

Returns:

Specific gas constant

double cp() const

Get specific heat at constant pressure.

Returns:

Specific heat at constant pressure \([J/(kg-K)]\)

double cv() const

Specific heat at constant volume \([J/(kg-K)]\).

Returns:

Specific heat at constant volume \([J/(kg-K)]\)

double mu() const

Get dynamic viscosity.

Returns:

Dynamic viscosity \([Pa-s]\)

double k() const

Get thermal conductivity.

Returns:

Thermal conductivity \([W/(m-K)]\)

void set_mu(double mu)

Set dynamic viscosity.

Parameters:

mu – Dynamic viscosity \([Pa-s]\)

void set_k(double k)

Set thermal conductivity.

Parameters:

k – Thermal conductivity \([W/(m-K)]\)