Public Member Functions | List of all members
IdealGas Class Reference

Ideal gas equation of state. More...

#include <ideal_gas.hpp>

Inheritance diagram for IdealGas:
Inheritance graph
[legend]
Collaboration diagram for IdealGas:
Collaboration graph
[legend]

Public Member Functions

 IdealGas (double AdiabaticIndex)
 Class constructor. More...
 
double getAdiabaticIndex (void) const
 Returns the adiabatic index. More...
 
double dp2e (double d, double p, tvector const &tracers, vector< string > const &tracernames) const
 Calculates the thermal energy per unit mass. More...
 
double de2p (double d, double e, tvector const &tracers, vector< string > const &tracernames) const
 Calculates the pressure. More...
 
double dp2c (double d, double p, tvector const &tracers, vector< string > const &tracernames) const
 Calculates the speed of sound. More...
 
double de2c (double d, double e, tvector const &tracers, vector< string > const &tracernames) const
 Calculates the speed of sound. More...
 
double dp2s (double d, double p, tvector const &tracers, vector< string > const &tracernames) const
 Calculates the entropy per unit mass. More...
 
double sd2p (double s, double d, tvector const &tracers, vector< string > const &tracernames) const
 Calculates the pressure from the netropy. More...
 

Detailed Description

Ideal gas equation of state.

Definition at line 13 of file ideal_gas.hpp.

Constructor & Destructor Documentation

◆ IdealGas()

IdealGas::IdealGas ( double  AdiabaticIndex)
explicit

Class constructor.

Parameters
AdiabaticIndexAdiabatic index

Definition at line 5 of file ideal_gas.cpp.

Member Function Documentation

◆ de2c()

double IdealGas::de2c ( double  d,
double  e,
tvector const &  tracers,
vector< string > const &  tracernames 
) const
virtual

Calculates the speed of sound.

Parameters
dDensity
eSpecific thermal energy
tracersTracers
tracernamesThe names of the tracers
Returns
Speed of sound

Implements EquationOfState.

Definition at line 53 of file ideal_gas.cpp.

Here is the call graph for this function:

◆ de2p()

double IdealGas::de2p ( double  d,
double  e,
tvector const &  tracers,
vector< string > const &  tracernames 
) const
virtual

Calculates the pressure.

Parameters
dDensity
eSpecific thermal energy
tracersTracers
tracernamesThe names of the tracers
Returns
Presusre

Implements EquationOfState.

Definition at line 18 of file ideal_gas.cpp.

Here is the caller graph for this function:

◆ dp2c()

double IdealGas::dp2c ( double  d,
double  p,
tvector const &  tracers,
vector< string > const &  tracernames 
) const
virtual

Calculates the speed of sound.

Parameters
dDensity
pPressure
tracersTracers
tracernamesThe names of the tracers
Returns
Speed of sound

Implements EquationOfState.

Definition at line 40 of file ideal_gas.cpp.

Here is the call graph for this function:

◆ dp2e()

double IdealGas::dp2e ( double  d,
double  p,
tvector const &  tracers,
vector< string > const &  tracernames 
) const
virtual

Calculates the thermal energy per unit mass.

Parameters
dDensity
pPressure
tracersTracers
tracernamesThe names of the tracers
Returns
Thermal energy per unit mass

Implements EquationOfState.

Definition at line 13 of file ideal_gas.cpp.

◆ dp2s()

double IdealGas::dp2s ( double  d,
double  p,
tvector const &  tracers,
vector< string > const &  tracernames 
) const
virtual

Calculates the entropy per unit mass.

Parameters
dDensity
pPressure
tracersTracers
tracernamesThe names of the tracers
Returns
Entropy

Implements EquationOfState.

Definition at line 59 of file ideal_gas.cpp.

◆ getAdiabaticIndex()

double IdealGas::getAdiabaticIndex ( void  ) const

Returns the adiabatic index.

Returns
Adiabatic index

Definition at line 8 of file ideal_gas.cpp.

Here is the caller graph for this function:

◆ sd2p()

double IdealGas::sd2p ( double  s,
double  d,
tvector const &  tracers,
vector< string > const &  tracernames 
) const
virtual

Calculates the pressure from the netropy.

Parameters
sEntropy
dDensity
tracersTracers
tracernamesThe names of the tracers
Returns
Entropy

Implements EquationOfState.

Definition at line 64 of file ideal_gas.cpp.


The documentation for this class was generated from the following files: