OGS
|
Fluid density by ideal gas law.
Definition at line 28 of file IdealGasLaw.h.
#include <IdealGasLaw.h>
Public Member Functions | |
IdealGasLaw (const double molar_mass) | |
std::string | getName () const override |
Get density model name. | |
double | getValue (const ArrayType &var_vals) const override |
double | getdValue (const ArrayType &var_vals, const PropertyVariableType var) const override |
Public Member Functions inherited from MaterialLib::Fluid::FluidProperty | |
virtual | ~FluidProperty ()=default |
Private Member Functions | |
double | dIdealGasLaw_dT (const double T, const double pg) const |
double | dIdealGasLaw_dp (const double T, const double) const |
Private Attributes | |
const double | _molar_mass |
Molar mass of gas phase. | |
Additional Inherited Members | |
Public Types inherited from MaterialLib::Fluid::FluidProperty | |
using | ArrayType = std::array<double, PropertyVariableNumber> |
|
inlineexplicit |
molar_mass | Molar mass of the gas phase. |
Definition at line 32 of file IdealGasLaw.h.
|
inlineprivate |
Get the partial differential of density with the respect to pressure
T | Temperature in K. |
Definition at line 82 of file IdealGasLaw.h.
References _molar_mass, MaterialLib::PhysicalConstant::IdealGasConstant, and MaterialLib::Fluid::T.
Referenced by getdValue().
|
inlineprivate |
Get the partial differential of density with the respect to temperature
T | Temperature in K. |
pg | Gas phase pressure in Pa. |
Definition at line 75 of file IdealGasLaw.h.
References _molar_mass, MaterialLib::PhysicalConstant::IdealGasConstant, and MaterialLib::Fluid::T.
Referenced by getdValue().
|
inlineoverridevirtual |
Get the partial differential of the density with respect to temperature or gas pressure.
var_vals | Variable values in an array. The order of its elements is given in enum class PropertyVariableType. |
var | Variable type. |
Implements MaterialLib::Fluid::FluidProperty.
Definition at line 52 of file IdealGasLaw.h.
References dIdealGasLaw_dp(), dIdealGasLaw_dT(), MaterialLib::Fluid::p, and MaterialLib::Fluid::T.
|
inlineoverridevirtual |
Get density model name.
Implements MaterialLib::Fluid::FluidProperty.
Definition at line 35 of file IdealGasLaw.h.
|
inlineoverridevirtual |
Get density value.
var_vals | Variable values in an array. The order of its elements is given in enum class PropertyVariableType. |
Implements MaterialLib::Fluid::FluidProperty.
Definition at line 39 of file IdealGasLaw.h.
References _molar_mass, MaterialLib::PhysicalConstant::IdealGasConstant, MaterialLib::Fluid::p, and MaterialLib::Fluid::T.
|
private |
Molar mass of gas phase.
Definition at line 70 of file IdealGasLaw.h.
Referenced by dIdealGasLaw_dp(), dIdealGasLaw_dT(), and getValue().