OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
FuelCellShop::Material::PureGas Class Referenceabstract

This class is a base class for all pure gases used in OpenFCST. More...

#include <PureGas.h>

Inheritance diagram for FuelCellShop::Material::PureGas:
Inheritance graph
[legend]
Collaboration diagram for FuelCellShop::Material::PureGas:
Collaboration graph
[legend]

Public Member Functions

Accessors and info
const double & get_molar_mass () const
 This function returns molar_mass [kg/mol]. More...
 
const double & get_collision_diameter () const
 This function returns collision_diameter [Angstrom]. More...
 
const double & get_eps_BY_k () const
 This function returns eps_BY_k (K). More...
 
const double & get_Prandtl () const
 This function returns Prandtl. More...
 
virtual enMaterialID get_ID () const =0
 This function returns a number from enMaterialID enumeration. More...
 
const std::string & get_chemical_formula () const
 This function returns chemical_formula. More...
 
const std::string & get_dynamic_viscosity_mode () const
 This function returns dynamic_viscosity_mode. More...
 
const std::string & get_bulk_viscosity_mode () const
 This function returns bulk_viscosity_mode. More...
 
const std::string & get_thermal_conductivity_mode () const
 This function returns thermal_conductivity_mode. More...
 
Service functions. EoS.
const double get_pressure (const double &density, const double &temperature) const
 This function returns pressure (Pa) of a pure ideal gas. More...
 
void get_pressure (const std::vector< double > &density, const double &temperature, std::vector< double > &pressure) const
 This function returns pressure (Pa) of a pure ideal gas in the quadrature points of a mesh entity at a constant temperature (isothermal case). More...
 
void get_pressure (const std::vector< double > &density, const std::vector< double > &temperature, std::vector< double > &pressure) const
 This function returns pressure (Pa) of a pure ideal gas in the quadrature points of a mesh entity at a variable temperature (non-isothermal case). More...
 
const double get_Dpressure_Ddensity (const double &temperature) const
 This function returns $ \quad \frac{\partial p}{\partial \rho} \quad $ of a pure ideal gas. More...
 
void get_Dpressure_Ddensity (const std::vector< double > &temperature, std::vector< double > &dst) const
 This function returns $ \quad \frac{\partial p}{\partial \rho} \quad $ of a pure ideal gas in the quadrature points of a mesh entity. More...
 
const double get_Dpressure_Dtemperature (const double &density) const
 This function returns $ \quad \frac{\partial p}{\partial T} \quad $ of a pure ideal gas. More...
 
void get_Dpressure_Dtemperature (const std::vector< double > &density, std::vector< double > &dst) const
 This function returns $ \quad \frac{\partial p}{\partial T} \quad $ of a pure ideal gas in the quadrature points of a mesh entity. More...
 
Service functions. Density.
const double get_density (const double &temperature, const double &pressure, const double &molarMass) const
 This function returns density [kg/m^3] of a pure ideal gas. More...
 
Service functions. Sutherland dynamic viscosity.
const double get_Sutherland_dynamic_viscosity (const double &temperature) const
 This function returns Sutherland dynamic viscosity [kg/(m s)] of a pure gas. More...
 
void get_Sutherland_dynamic_viscosity (const std::vector< double > &temperature, std::vector< double > &dynamic_viscosity) const
 This function returns Sutherland dynamic viscosity [kg/(m s)] of a pure gas in the quadrature points of a mesh entity. More...
 
const double get_DSutherland_dynamic_viscosity_Dtemperature (const double &temperature) const
 This function returns the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the Sutherland dynamic viscosity of a pure gas. More...
 
void get_DSutherland_dynamic_viscosity_Dtemperature (const std::vector< double > &temperature, std::vector< double > &dst) const
 This function returns the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the Sutherland dynamic viscosity of a pure gas in the quadrature points of a mesh entity. More...
 
Service functions. Chapman Enskog dynamic viscosity.
const double get_ChapmanEnskog_dynamic_viscosity (const double &temperature) const
 This function returns Chapman Enskog dynamic viscosity [kg/(m s)] of a pure gas. More...
 
void get_ChapmanEnskog_dynamic_viscosity (const std::vector< double > &temperature, std::vector< double > &dynamic_viscosity) const
 This function returns Chapman Enskog dynamic viscosity [kg/(m s)] of a pure gas in the quadrature points of a mesh entity. More...
 
const double get_DChapmanEnskog_dynamic_viscosity_Dtemperature (const double &temperature) const
 This function returns the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the Chapman Enskog dynamic viscosity of a pure gas. More...
 
void get_DChapmanEnskog_dynamic_viscosity_Dtemperature (const std::vector< double > &temperature, std::vector< double > &dst) const
 This function returns the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the Chapman Enskog dynamic viscosity of a pure gas in the quadrature points of a mesh entity. More...
 
Service functions. Dynamic viscosity.
const double get_dynamic_viscosity (const double &temperature) const
 This function returns desired dynamic viscosity [kg/(m s)] of a pure gas. More...
 
void get_dynamic_viscosity (const std::vector< double > &temperature, std::vector< double > &dynamic_viscosity) const
 This function returns desired dynamic viscosity [kg/(m s)] of a pure gas in the quadrature points of a mesh entity. More...
 
const double get_Ddynamic_viscosity_Dtemperature (const double &temperature) const
 This function returns the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the desired dynamic viscosity of a pure gas. More...
 
void get_Ddynamic_viscosity_Dtemperature (const std::vector< double > &temperature, std::vector< double > &dst) const
 This function returns the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the desired dynamic viscosity of a pure gas in the quadrature points of a mesh entity. More...
 
Service functions. Bulk viscosity.
const double get_bulk_viscosity (const double &dynamic_viscosity) const
 This function returns desired bulk viscosity of a pure gas. More...
 
void get_bulk_viscosity (const std::vector< double > &dynamic_viscosity, std::vector< double > &bulk_viscosity) const
 This function returns desired bulk viscosity of a pure gas in the quadrature points of a mesh entity. More...
 
const double get_Dbulk_viscosity_Dtemperature (const double &src) const
 This function returns the first derivative $ \quad \frac{\partial \lambda}{\partial T} \quad $ of the desired bulk viscosity of a pure gas. More...
 
void get_Dbulk_viscosity_Dtemperature (const std::vector< double > &src, std::vector< double > &dst) const
 This function returns the first derivative $ \quad \frac{\partial \lambda}{\partial T} \quad $ of the desired bulk viscosity of a pure gas in the quadrature points of a mesh entity. More...
 
Service functions. Sutherland thermal conductivity.
const double get_Sutherland_thermal_conductivity (const double &temperature) const
 This function returns Sutherland thermal conductivity of a pure gas. More...
 
void get_Sutherland_thermal_conductivity (const std::vector< double > &temperature, std::vector< double > &thermal_conductivity) const
 This function returns Sutherland thermal conductivity of a pure gas in the quadrature points of a mesh entity. More...
 
const double get_DSutherland_thermal_conductivity_Dtemperature (const double &temperature) const
 This function returns the first derivative $ \quad \frac{\partial \kappa}{\partial T} \quad $ of the Sutherland thermal conductivity of a pure gas. More...
 
void get_DSutherland_thermal_conductivity_Dtemperature (const std::vector< double > &temperature, std::vector< double > &dst) const
 This function returns the first derivative $ \quad \frac{\partial \kappa}{\partial T} \quad $ of the Sutherland thermal conductivity of a pure gas in the quadrature points of a mesh entity. More...
 
Service functions. Chapman Enskog thermal conductivity.
const double get_ChapmanEnskog_thermal_conductivity (const double &temperature) const
 This function returns Chapman Enskog thermal conductivity [W/(m K)] of a pure gas. More...
 
void get_ChapmanEnskog_thermal_conductivity (const std::vector< double > &temperature, std::vector< double > &thermal_conductivity) const
 This function returns Chapman Enskog thermal conductivity of a pure gas in the quadrature points of a mesh entity. More...
 
const double get_DChapmanEnskog_thermal_conductivity_Dtemperature (const double &temperature) const
 This function returns the first derivative $ \quad \frac{\partial \kappa}{\partial T} \quad $ of the Chapman Enskog thermal conductivity of a pure gas. More...
 
void get_DChapmanEnskog_thermal_conductivity_Dtemperature (const std::vector< double > &temperature, std::vector< double > &dst) const
 This function returns the first derivative $ \quad \frac{\partial \kappa}{\partial T} \quad $ of the Chapman Enskog thermal conductivity of a pure gas in the quadrature points of a mesh entity. More...
 
Service functions. Thermal conductivity.
const double get_thermal_conductivity (const double &temperature) const
 This function returns desired thermal conductivity [W/(m K)] of a pure gas. More...
 
void get_thermal_conductivity (const std::vector< double > &temperature, std::vector< double > &thermal_conductivity) const
 This function returns desired thermal conductivity of a pure gas in the quadrature points of a mesh entity. More...
 
const double get_Dthermal_conductivity_Dtemperature (const double &temperature) const
 This function returns the first derivative $ \quad \frac{\partial \kappa}{\partial T} \quad $ of the desired thermal conductivity of a pure gas. More...
 
void get_Dthermal_conductivity_Dtemperature (const std::vector< double > &temperature, std::vector< double > &dst) const
 This function returns the first derivative $ \quad \frac{\partial \kappa}{\partial T} \quad $ of the desired thermal conductivity of a pure gas in the quadrature points of a mesh entity. More...
 
Service functions. Molar enthalpy.
const double get_molar_enthalpy (const double &temperature) const
 This function returns molar enthalpy [J/mol] of a pure gas. More...
 
void get_molar_enthalpy (const std::vector< double > &temperature, std::vector< double > &molar_enthalpy) const
 This function returns molar enthalpy of a pure gas in the quadrature points of a mesh entity. More...
 
const double get_Dmolar_enthalpy_Dtemperature (const double &temperature) const
 This function returns the first derivative $ \quad \frac{\partial H}{\partial T} \quad $ of the molar enthalpy of a pure gas. More...
 
void get_Dmolar_enthalpy_Dtemperature (const std::vector< double > &temperature, std::vector< double > &dst) const
 This function returns the first derivative $ \quad \frac{\partial H}{\partial T} \quad $ of the molar enthalpy of a pure gas in the quadrature points of a mesh entity. More...
 
const double get_D2molar_enthalpy_Dtemperature2 (const double &temperature) const
 This function returns the second derivative $ \quad \frac{\partial^2 H}{\partial T^2} \quad $ of the molar enthalpy of a pure gas. More...
 
void get_D2molar_enthalpy_Dtemperature2 (const std::vector< double > &temperature, std::vector< double > &dst) const
 This function returns the second derivative $ \quad \frac{\partial^2 H}{\partial T^2} \quad $ of the molar enthalpy of a pure gas in the quadrature points of a mesh entity. More...
 
Service functions. Water vapor saturation pressure.
const double get_water_vapor_saturation_pressure (const double &temperature) const
 This function returns saturation pressure [Pa] of water vapor. More...
 
void get_water_vapor_saturation_pressure (const std::vector< double > &temperature, std::vector< double > &water_vapor_saturation_pressure) const
 This function returns saturation pressure of water vapor in the quadrature points of a mesh entity. More...
 
const double get_Dwater_vapor_saturation_pressure_Dtemperature (const double &temperature) const
 This function returns the first derivative $ \quad \frac{\partial p_{\text{sat}}^{H_2O}}{\partial T} \quad $ of the saturation pressure of water vapor. More...
 
void get_Dwater_vapor_saturation_pressure_Dtemperature (const std::vector< double > &temperature, std::vector< double > &dst) const
 This function returns the first derivative $ \quad \frac{\partial p_{\text{sat}}^{H_2O}}{\partial T} \quad $ of the saturation pressure of water vapor in the quadrature points of a mesh entity. More...
 
Service functions. Collision integral.
const double get_collision_integral (const double &temperature) const
 This function returns collision integral of a pure gas. More...
 
void get_collision_integral (const std::vector< double > &temperature, std::vector< double > &collision_integral) const
 This function returns collision integral of a pure gas in the quadrature points of a mesh entity. More...
 
const double get_Dcollision_integral_Dtemperature (const double &temperature) const
 This function returns the first derivative $ \quad \frac{\partial \Omega_{\mu, \kappa}}{\partial T} \quad $ of the collision integral of a pure gas. More...
 
void get_Dcollision_integral_Dtemperature (const std::vector< double > &temperature, std::vector< double > &dst) const
 This function returns the first derivative $ \quad \frac{\partial \Omega_{\mu, \kappa}}{\partial T} \quad $ of the collision integral of a pure gas in the quadrature points of a mesh entity. More...
 
Service functions. Specific heat capacity at constant pressure.
const double get_specific_heat_capacity (const double &temperature) const
 This function returns specific heat capacity [J/(g C)] at constant pressure of a pure gas. More...
 
void get_specific_heat_capacity (const std::vector< double > &temperature, std::vector< double > &specific_heat_capacity) const
 This function returns specific heat capacity at constant pressure of a pure gas in the quadrature points of a mesh entity. More...
 
const double get_Dspecific_heat_capacity_Dtemperature (const double &temperature) const
 This function returns the first derivative $ \quad \frac{\partial c_p}{\partial T} \quad $ of the specific heat capacity at constant pressure of a pure gas. More...
 
void get_Dspecific_heat_capacity_Dtemperature (const std::vector< double > &temperature, std::vector< double > &dst) const
 This function returns the first derivative $ \quad \frac{\partial c_p}{\partial T} \quad $ of the specific heat capacity at constant pressure of a pure gas in the quadrature points of a mesh entity. More...
 
const double get_D2specific_heat_capacity_Dtemperature2 (const double &temperature) const
 This function returns the second derivative $ \quad \frac{\partial^2 c_p}{\partial T^2} \quad $ of the specific heat capacity at constant pressure of a pure gas. More...
 
void get_D2specific_heat_capacity_Dtemperature2 (const std::vector< double > &temperature, std::vector< double > &dst) const
 This function returns the second derivative $ \quad \frac{\partial^2 c_p}{\partial T^2} \quad $ of the specific heat capacity at constant pressure of a pure gas in the quadrature points of a mesh entity. More...
 
- Public Member Functions inherited from FuelCellShop::Material::BaseMaterial
void set_derivative_flags (const std::vector< VariableNames > &flags)
 Set the names of FCST solution variables with respect to which you would like to compute the derivatives of material properties. More...
 
const std::string & name_material () const
 Return the name of the layer. More...
 
virtual void print_material_properties () const
 This function prints out the material properties. More...
 

Protected Attributes

Fluid properties
double molar_mass
 Molar mass [kg/mol], $ M \quad \left[ \frac{\text{kg}}{\text{mol}} \right] $. More...
 
double collision_diameter
 Collision diameter [Angstrom], $ \sigma \quad \left[ \text{Angstrom} \right] $. More...
 
double eps_BY_k
 The maximum energy of attraction divided by the Boltzmann constant, $ \frac{\epsilon}{k} \quad \left[ \text{K} \right] $. More...
 
double Prandtl
 Prandtl number, $ \text{Pr} $. More...
 
Coefficients
double A_Sutherland
 Coefficient of the Sutherland dynamic viscosity formula, $ A \quad \left[ \frac{\text{Pa sec}}{\text{K}^{1/2}} \right] $. More...
 
double B_Sutherland
 Coefficient of the Sutherland dynamic viscosity formula, $ B \quad \left[ \text{K} \right] $. More...
 
double c_0
 Coefficient of the specific heat capacity at constant pressure formula, $ c_0 \quad \left[ \frac{\text{J}}{\text{kg K}} \right] $. More...
 
double c_1
 Coefficient of the specific heat capacity at constant pressure formula, $ c_1 \quad \left[ \frac{\text{J}}{\text{kg } \text{K}^2} \right] $. More...
 
double c_2
 Coefficient of the specific heat capacity at constant pressure formula, $ c_2 \quad \left[ \frac{\text{J}}{\text{kg } \text{K}^3} \right] $. More...
 
double c_3
 Coefficient of the specific heat capacity at constant pressure formula, $ c_3 \quad \left[ \frac{\text{J}}{\text{kg } \text{K}^4} \right] $. More...
 
double H_ref
 Coefficient of the molar enthalpy formula $ H^{\text{ref}} \quad \left[ \frac{\text{J}}{\text{mol}} \right] $. More...
 
double T_ref
 Coefficient of the molar enthalpy formula $ T^{\text{ref}} \quad \left[ \text{K} \right] $. More...
 
Names and modes
std::string chemical_formula
 Chemical formula of the pure gas. More...
 
std::string dynamic_viscosity_mode
 
std::string bulk_viscosity_mode
 
std::string thermal_conductivity_mode
 
- Protected Attributes inherited from FuelCellShop::Material::BaseMaterial
const std::string name
 Name of the layer. More...
 
std::vector< VariableNamesderivative_flags
 Flags for derivatives: These flags are used to request derivatives of material properties. More...
 

Constructors, destructor, and initialization

virtual ~PureGas ()
 Destructor. More...
 
virtual void declare_parameters (ParameterHandler &param) const
 Declare parameters. More...
 
virtual void initialize (ParameterHandler &param)
 Initialize parameters. More...
 
 PureGas (const std::string &name)
 Constructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from FuelCellShop::Material::BaseMaterial
 BaseMaterial ()
 Constructor. More...
 
 BaseMaterial (const std::string &name)
 Constructor. More...
 
virtual ~BaseMaterial ()
 Destructor. More...
 

Detailed Description

This class is a base class for all pure gases used in OpenFCST.

This class contains data provided by its children and implements the methods by means of which different properties of pure gases can be computed.

These methods include:

All those methods receive data in SI units. All those methods return the results in SI units.

Warning
Do not create an object of this class. Use its children instead.
Note
For developers: Please update this info appropriately if you add a new method.
Author
Valentin N. Zingan, Chad Balen and Marc Secanell, 2013-16

Constructor & Destructor Documentation

virtual FuelCellShop::Material::PureGas::~PureGas ( )
virtual

Destructor.

FuelCellShop::Material::PureGas::PureGas ( const std::string &  name)
protected

Constructor.

Member Function Documentation

virtual void FuelCellShop::Material::PureGas::declare_parameters ( ParameterHandler &  param) const
virtual

Declare parameters.

Reimplemented from FuelCellShop::Material::BaseMaterial.

const double FuelCellShop::Material::PureGas::get_bulk_viscosity ( const double &  dynamic_viscosity) const

This function returns desired bulk viscosity of a pure gas.

Parameters
dynamic_viscosity- dynamic viscosity [kg/(m s)].
void FuelCellShop::Material::PureGas::get_bulk_viscosity ( const std::vector< double > &  dynamic_viscosity,
std::vector< double > &  bulk_viscosity 
) const

This function returns desired bulk viscosity of a pure gas in the quadrature points of a mesh entity.

Parameters
dynamic_viscosity- dynamic viscosity in the quadrature points of a mesh entity [kg/(m s)],
bulk_viscosity- bulk viscosity in the quadrature points of a mesh entity [kg/(m s)].
const std::string& FuelCellShop::Material::PureGas::get_bulk_viscosity_mode ( ) const
inline

This function returns bulk_viscosity_mode.

References bulk_viscosity_mode.

const double FuelCellShop::Material::PureGas::get_ChapmanEnskog_dynamic_viscosity ( const double &  temperature) const

This function returns Chapman Enskog dynamic viscosity [kg/(m s)] of a pure gas.

Parameters:

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_ChapmanEnskog_dynamic_viscosity ( const std::vector< double > &  temperature,
std::vector< double > &  dynamic_viscosity 
) const

This function returns Chapman Enskog dynamic viscosity [kg/(m s)] of a pure gas in the quadrature points of a mesh entity.

Parameters:

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dynamic_viscosity- dynamic viscosity in the quadrature points of a mesh entity [kg/(m s)].
const double FuelCellShop::Material::PureGas::get_ChapmanEnskog_thermal_conductivity ( const double &  temperature) const

This function returns Chapman Enskog thermal conductivity [W/(m K)] of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_ChapmanEnskog_thermal_conductivity ( const std::vector< double > &  temperature,
std::vector< double > &  thermal_conductivity 
) const

This function returns Chapman Enskog thermal conductivity of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
thermal_conductivity- thermal conductivity in the quadrature points of a mesh entity [W/(m K)].
const std::string& FuelCellShop::Material::PureGas::get_chemical_formula ( ) const
inline

This function returns chemical_formula.

References chemical_formula.

const double& FuelCellShop::Material::PureGas::get_collision_diameter ( ) const
inline

This function returns collision_diameter [Angstrom].

References collision_diameter.

const double FuelCellShop::Material::PureGas::get_collision_integral ( const double &  temperature) const

This function returns collision integral of a pure gas.

Parameters
temperature- temperature [K].
  • Neufeld, Philip D., A. R. Janzen, and R. A. Aziz. "Empirical Equations to Calculate 16 of the Transport Collision Integrals Ω (l, s)* for the Lennard‐Jones (12–6) Potential." The Journal of Chemical Physics 57.3 (1972): 1100-1102.
void FuelCellShop::Material::PureGas::get_collision_integral ( const std::vector< double > &  temperature,
std::vector< double > &  collision_integral 
) const

This function returns collision integral of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
collision_integral- collision integral in the quadrature points of a mesh entity.
  • Neufeld, Philip D., A. R. Janzen, and R. A. Aziz. "Empirical Equations to Calculate 16 of the Transport Collision Integrals Ω (l, s)* for the Lennard‐Jones (12–6) Potential." The Journal of Chemical Physics 57.3 (1972): 1100-1102.
const double FuelCellShop::Material::PureGas::get_D2molar_enthalpy_Dtemperature2 ( const double &  temperature) const

This function returns the second derivative $ \quad \frac{\partial^2 H}{\partial T^2} \quad $ of the molar enthalpy of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_D2molar_enthalpy_Dtemperature2 ( const std::vector< double > &  temperature,
std::vector< double > &  dst 
) const

This function returns the second derivative $ \quad \frac{\partial^2 H}{\partial T^2} \quad $ of the molar enthalpy of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dst- $ \frac{\partial^2 H}{\partial T^2} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_D2specific_heat_capacity_Dtemperature2 ( const double &  temperature) const

This function returns the second derivative $ \quad \frac{\partial^2 c_p}{\partial T^2} \quad $ of the specific heat capacity at constant pressure of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_D2specific_heat_capacity_Dtemperature2 ( const std::vector< double > &  temperature,
std::vector< double > &  dst 
) const

This function returns the second derivative $ \quad \frac{\partial^2 c_p}{\partial T^2} \quad $ of the specific heat capacity at constant pressure of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity,
dst- $ \frac{\partial^2 c_p}{\partial T^2} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_Dbulk_viscosity_Dtemperature ( const double &  src) const

This function returns the first derivative $ \quad \frac{\partial \lambda}{\partial T} \quad $ of the desired bulk viscosity of a pure gas.

Parameters
src- the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the desired dynamic viscosity of a pure gas.
void FuelCellShop::Material::PureGas::get_Dbulk_viscosity_Dtemperature ( const std::vector< double > &  src,
std::vector< double > &  dst 
) const

This function returns the first derivative $ \quad \frac{\partial \lambda}{\partial T} \quad $ of the desired bulk viscosity of a pure gas in the quadrature points of a mesh entity.

Parameters
src- the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the desired dynamic viscosity of a pure gas in the quadrature points of a mesh entity,
dst- the first derivative $ \quad \frac{\partial \lambda}{\partial T} \quad $ of the desired bulk viscosity of a pure gas in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_DChapmanEnskog_dynamic_viscosity_Dtemperature ( const double &  temperature) const

This function returns the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the Chapman Enskog dynamic viscosity of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_DChapmanEnskog_dynamic_viscosity_Dtemperature ( const std::vector< double > &  temperature,
std::vector< double > &  dst 
) const

This function returns the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the Chapman Enskog dynamic viscosity of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dst- $ \frac{\partial \mu}{\partial T} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_DChapmanEnskog_thermal_conductivity_Dtemperature ( const double &  temperature) const

This function returns the first derivative $ \quad \frac{\partial \kappa}{\partial T} \quad $ of the Chapman Enskog thermal conductivity of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_DChapmanEnskog_thermal_conductivity_Dtemperature ( const std::vector< double > &  temperature,
std::vector< double > &  dst 
) const

This function returns the first derivative $ \quad \frac{\partial \kappa}{\partial T} \quad $ of the Chapman Enskog thermal conductivity of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dst- $ \frac{\partial \kappa}{\partial T} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_Dcollision_integral_Dtemperature ( const double &  temperature) const

This function returns the first derivative $ \quad \frac{\partial \Omega_{\mu, \kappa}}{\partial T} \quad $ of the collision integral of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_Dcollision_integral_Dtemperature ( const std::vector< double > &  temperature,
std::vector< double > &  dst 
) const

This function returns the first derivative $ \quad \frac{\partial \Omega_{\mu, \kappa}}{\partial T} \quad $ of the collision integral of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dst- $ \frac{\partial \Omega_{\mu, \kappa}}{\partial T} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_Ddynamic_viscosity_Dtemperature ( const double &  temperature) const

This function returns the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the desired dynamic viscosity of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_Ddynamic_viscosity_Dtemperature ( const std::vector< double > &  temperature,
std::vector< double > &  dst 
) const

This function returns the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the desired dynamic viscosity of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dst- $ \frac{\partial \mu}{\partial T} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_density ( const double &  temperature,
const double &  pressure,
const double &  molarMass 
) const

This function returns density [kg/m^3] of a pure ideal gas.

Parameters
temperature- temperature [K],
pressure- pressure [Pa],
molarMass- molar mass [kg/mol].
const double FuelCellShop::Material::PureGas::get_Dmolar_enthalpy_Dtemperature ( const double &  temperature) const

This function returns the first derivative $ \quad \frac{\partial H}{\partial T} \quad $ of the molar enthalpy of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_Dmolar_enthalpy_Dtemperature ( const std::vector< double > &  temperature,
std::vector< double > &  dst 
) const

This function returns the first derivative $ \quad \frac{\partial H}{\partial T} \quad $ of the molar enthalpy of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dst- $ \frac{\partial H}{\partial T} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_Dpressure_Ddensity ( const double &  temperature) const

This function returns $ \quad \frac{\partial p}{\partial \rho} \quad $ of a pure ideal gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_Dpressure_Ddensity ( const std::vector< double > &  temperature,
std::vector< double > &  dst 
) const

This function returns $ \quad \frac{\partial p}{\partial \rho} \quad $ of a pure ideal gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dst- $ \frac{\partial p}{\partial \rho} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_Dpressure_Dtemperature ( const double &  density) const

This function returns $ \quad \frac{\partial p}{\partial T} \quad $ of a pure ideal gas.

Parameters
density- density [kg/m^3].
void FuelCellShop::Material::PureGas::get_Dpressure_Dtemperature ( const std::vector< double > &  density,
std::vector< double > &  dst 
) const

This function returns $ \quad \frac{\partial p}{\partial T} \quad $ of a pure ideal gas in the quadrature points of a mesh entity.

Parameters
density- density in the quadrature points of a mesh entity,
dst- $ \frac{\partial p}{\partial T} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_Dspecific_heat_capacity_Dtemperature ( const double &  temperature) const

This function returns the first derivative $ \quad \frac{\partial c_p}{\partial T} \quad $ of the specific heat capacity at constant pressure of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_Dspecific_heat_capacity_Dtemperature ( const std::vector< double > &  temperature,
std::vector< double > &  dst 
) const

This function returns the first derivative $ \quad \frac{\partial c_p}{\partial T} \quad $ of the specific heat capacity at constant pressure of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dst- $ \frac{\partial c_p}{\partial T} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_DSutherland_dynamic_viscosity_Dtemperature ( const double &  temperature) const

This function returns the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the Sutherland dynamic viscosity of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_DSutherland_dynamic_viscosity_Dtemperature ( const std::vector< double > &  temperature,
std::vector< double > &  dst 
) const

This function returns the first derivative $ \quad \frac{\partial \mu}{\partial T} \quad $ of the Sutherland dynamic viscosity of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dst- $ \frac{\partial \mu}{\partial T} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_DSutherland_thermal_conductivity_Dtemperature ( const double &  temperature) const

This function returns the first derivative $ \quad \frac{\partial \kappa}{\partial T} \quad $ of the Sutherland thermal conductivity of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_DSutherland_thermal_conductivity_Dtemperature ( const std::vector< double > &  temperature,
std::vector< double > &  dst 
) const

This function returns the first derivative $ \quad \frac{\partial \kappa}{\partial T} \quad $ of the Sutherland thermal conductivity of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dst- $ \frac{\partial \kappa}{\partial T} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_Dthermal_conductivity_Dtemperature ( const double &  temperature) const

This function returns the first derivative $ \quad \frac{\partial \kappa}{\partial T} \quad $ of the desired thermal conductivity of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_Dthermal_conductivity_Dtemperature ( const std::vector< double > &  temperature,
std::vector< double > &  dst 
) const

This function returns the first derivative $ \quad \frac{\partial \kappa}{\partial T} \quad $ of the desired thermal conductivity of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dst- $ \frac{\partial \kappa}{\partial T} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_Dwater_vapor_saturation_pressure_Dtemperature ( const double &  temperature) const

This function returns the first derivative $ \quad \frac{\partial p_{\text{sat}}^{H_2O}}{\partial T} \quad $ of the saturation pressure of water vapor.

Parameters
temperature- temperature [K].

Referenced by FuelCellShop::Equation::LiquidSourceEquation< dim >::get_temp_related_parameters().

Here is the caller graph for this function:

void FuelCellShop::Material::PureGas::get_Dwater_vapor_saturation_pressure_Dtemperature ( const std::vector< double > &  temperature,
std::vector< double > &  dst 
) const

This function returns the first derivative $ \quad \frac{\partial p_{\text{sat}}^{H_2O}}{\partial T} \quad $ of the saturation pressure of water vapor in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dst- $ \frac{\partial p_{\text{sat}}^{H_2O}}{\partial T} \quad $ in the quadrature points of a mesh entity.
const double FuelCellShop::Material::PureGas::get_dynamic_viscosity ( const double &  temperature) const

This function returns desired dynamic viscosity [kg/(m s)] of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_dynamic_viscosity ( const std::vector< double > &  temperature,
std::vector< double > &  dynamic_viscosity 
) const

This function returns desired dynamic viscosity [kg/(m s)] of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dynamic_viscosity- dynamic viscosity in the quadrature points of a mesh entity [kg/(m s)].
const std::string& FuelCellShop::Material::PureGas::get_dynamic_viscosity_mode ( ) const
inline

This function returns dynamic_viscosity_mode.

References dynamic_viscosity_mode.

const double& FuelCellShop::Material::PureGas::get_eps_BY_k ( ) const
inline

This function returns eps_BY_k (K).

References eps_BY_k.

virtual enMaterialID FuelCellShop::Material::PureGas::get_ID ( ) const
pure virtual
const double FuelCellShop::Material::PureGas::get_molar_enthalpy ( const double &  temperature) const

This function returns molar enthalpy [J/mol] of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_molar_enthalpy ( const std::vector< double > &  temperature,
std::vector< double > &  molar_enthalpy 
) const

This function returns molar enthalpy of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
molar_enthalpy- molar enthalpy in the quadrature points of a mesh entity [J/mol].
const double& FuelCellShop::Material::PureGas::get_molar_mass ( ) const
inline

This function returns molar_mass [kg/mol].

References molar_mass.

const double& FuelCellShop::Material::PureGas::get_Prandtl ( ) const
inline

This function returns Prandtl.

References Prandtl.

const double FuelCellShop::Material::PureGas::get_pressure ( const double &  density,
const double &  temperature 
) const

This function returns pressure (Pa) of a pure ideal gas.

Parameters
density- density [kg/m^3],
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_pressure ( const std::vector< double > &  density,
const double &  temperature,
std::vector< double > &  pressure 
) const

This function returns pressure (Pa) of a pure ideal gas in the quadrature points of a mesh entity at a constant temperature (isothermal case).

Parameters
density- density in the quadrature points of a mesh entity [kg/m^3],
temperature- temperature [K],
pressure- pressure in the quadrature points of a mesh entity [Pa].
void FuelCellShop::Material::PureGas::get_pressure ( const std::vector< double > &  density,
const std::vector< double > &  temperature,
std::vector< double > &  pressure 
) const

This function returns pressure (Pa) of a pure ideal gas in the quadrature points of a mesh entity at a variable temperature (non-isothermal case).

Parameters
density- density in the quadrature points of a mesh entity [kg/m^3],
temperature- temperature in the quadrature points of a mesh entity [K],
pressure- pressure in the quadrature points of a mesh entity [Pa].
const double FuelCellShop::Material::PureGas::get_specific_heat_capacity ( const double &  temperature) const

This function returns specific heat capacity [J/(g C)] at constant pressure of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_specific_heat_capacity ( const std::vector< double > &  temperature,
std::vector< double > &  specific_heat_capacity 
) const

This function returns specific heat capacity at constant pressure of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
specific_heat_capacity- specific heat capacity at constant pressure in the quadrature points of a mesh entity [J/(g C)].
const double FuelCellShop::Material::PureGas::get_Sutherland_dynamic_viscosity ( const double &  temperature) const

This function returns Sutherland dynamic viscosity [kg/(m s)] of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_Sutherland_dynamic_viscosity ( const std::vector< double > &  temperature,
std::vector< double > &  dynamic_viscosity 
) const

This function returns Sutherland dynamic viscosity [kg/(m s)] of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
dynamic_viscosity- dynamic viscosity in the quadrature points of a mesh entity [kg/(m s)].
const double FuelCellShop::Material::PureGas::get_Sutherland_thermal_conductivity ( const double &  temperature) const

This function returns Sutherland thermal conductivity of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_Sutherland_thermal_conductivity ( const std::vector< double > &  temperature,
std::vector< double > &  thermal_conductivity 
) const

This function returns Sutherland thermal conductivity of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
thermal_conductivity- thermal conductivity in the quadrature points of a mesh entity [W/(m K)].
const double FuelCellShop::Material::PureGas::get_thermal_conductivity ( const double &  temperature) const

This function returns desired thermal conductivity [W/(m K)] of a pure gas.

Parameters
temperature- temperature [K].
void FuelCellShop::Material::PureGas::get_thermal_conductivity ( const std::vector< double > &  temperature,
std::vector< double > &  thermal_conductivity 
) const

This function returns desired thermal conductivity of a pure gas in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
thermal_conductivity- thermal conductivity in the quadrature points of a mesh entity [W/(m K)].
const std::string& FuelCellShop::Material::PureGas::get_thermal_conductivity_mode ( ) const
inline

This function returns thermal_conductivity_mode.

References thermal_conductivity_mode.

const double FuelCellShop::Material::PureGas::get_water_vapor_saturation_pressure ( const double &  temperature) const

This function returns saturation pressure [Pa] of water vapor.

Parameters
temperature- temperature [K].

Referenced by FuelCellShop::Equation::LiquidSourceEquation< dim >::get_temp_related_parameters().

Here is the caller graph for this function:

void FuelCellShop::Material::PureGas::get_water_vapor_saturation_pressure ( const std::vector< double > &  temperature,
std::vector< double > &  water_vapor_saturation_pressure 
) const

This function returns saturation pressure of water vapor in the quadrature points of a mesh entity.

Parameters
temperature- temperature in the quadrature points of a mesh entity [K],
water_vapor_saturation_pressure- water vapor saturation pressure in the quadrature points of a mesh entity [Pa].
virtual void FuelCellShop::Material::PureGas::initialize ( ParameterHandler &  param)
virtual

Initialize parameters.

Reimplemented from FuelCellShop::Material::BaseMaterial.

Member Data Documentation

double FuelCellShop::Material::PureGas::A_Sutherland
protected
double FuelCellShop::Material::PureGas::B_Sutherland
protected
std::string FuelCellShop::Material::PureGas::bulk_viscosity_mode
protected
Parameters
bulk_viscosity_mode=zero- zero bulk viscosity formula is used,
bulk_viscosity_mode=Stokes- Stokes bulk viscosity formula is used.

Referenced by get_bulk_viscosity_mode().

double FuelCellShop::Material::PureGas::c_0
protected
double FuelCellShop::Material::PureGas::c_1
protected
double FuelCellShop::Material::PureGas::c_2
protected
double FuelCellShop::Material::PureGas::c_3
protected
std::string FuelCellShop::Material::PureGas::chemical_formula
protected
double FuelCellShop::Material::PureGas::collision_diameter
protected
std::string FuelCellShop::Material::PureGas::dynamic_viscosity_mode
protected
Parameters
dynamic_viscosity_mode=Sutherland- Sutherland dynamic viscosity formula is used,
dynamic_viscosity_mode=ChapmanEnskog- Chapman Enskog dynamic viscosity formula is used.

Referenced by get_dynamic_viscosity_mode().

double FuelCellShop::Material::PureGas::eps_BY_k
protected
double FuelCellShop::Material::PureGas::H_ref
protected
double FuelCellShop::Material::PureGas::molar_mass
protected
double FuelCellShop::Material::PureGas::Prandtl
protected
double FuelCellShop::Material::PureGas::T_ref
protected
std::string FuelCellShop::Material::PureGas::thermal_conductivity_mode
protected
Parameters
thermal_conductivity_mode=Sutherland- Sutherland thermal conductivity formula is used,
thermal_conductivity_mode=ChapmanEnskog- Chapman Enskog thermal conductivity formula is used.

Referenced by get_thermal_conductivity_mode().


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