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

Virtual class used to describe different gases and pure materials for which viscority, diffusivity, etc. 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

 PureGas ()
 
virtual ~PureGas ()
 
virtual double getCollisionDiameter ()
 Lennard-Jones parameters.
 
virtual double getDimensionlessTemperature (const double &T)
 
virtual enMaterialID get_ID ()=0
 
virtual char * get_name ()=0
 
virtual char * get_formula ()=0
 
virtual void get_viscosity (double &mu, const double &T)=0
 
virtual void get_viscosity_Chapman_Enskog (double &mu, const double &T, const double &MW, const double &hard_sphere_diameter)
 
virtual void get_viscosity_Chapman_Enskog (double &mu, const double &T)
 
virtual void get_dMu_d_T_Chapman_Enskog (double &dmu, const double &T, const double &MW, const double &hard_sphere_diameter)
 
virtual void get_dMu_d_T_Chapman_Enskog (double &dmu, const double &T)
 
virtual double get_molar_enthalpy (const double &T) const =0
 Abstract method for defining interface to return molar enthalpy [J/mol] of an ideal gas.
 
virtual double get_dmolar_enthalpy_dT (const double &T) const =0
 Abstract method for defining interface to return derivative of molar enthalpy [J/mol] w.r.t Temperature [K], for an ideal gas.
 
virtual double get_d2molar_enthalpy_dT2 (const double &T) const =0
 Abstract method for defining interface to return second derivative of molar enthalpy [J/mol] w.r.t Temperature [K], for an ideal gas.
 

Public Attributes

double Tc
 Critical temperature in Kelvin.
 
double Pc
 Critical pressure in bar.
 
double Vc
 Critical volume in Cm3/mol.
 
double Zc
 Critical gas compressibility factor (Z).
 
double w
 Material other critical properties.
 
double M
 Molar mass in g/mol or kg/kmol.
 
double Tnb
 in Kelvin
 
double Vl
 in m3/kmol
 
double Mu_0
 dynamic viscosity at STP
 
double hard_sphere_diameter
 Hard sphere diameter in Angstrom.
 
double e_k
 epsilon/k
 

Additional Inherited Members

- Private Member Functions inherited from FuelCellShop::Material::BaseMaterial
virtual void initialize (ParameterHandler &)
 Member function used to read in data and initialize the necessary data to compute the coefficients.
 
void set_derivative_flags (const std::vector< VariableNames > &flags)
 Set the variables for which you would like to compute the derivatives.
 
const std::string & name_material ()
 Return the name of the layer.
 
virtual void print_material_properties () const
 This function prints out the material properties.
 
 BaseMaterial ()
 Constructor.
 
 BaseMaterial (const std::string &name)
 Constructor.
 
virtual ~BaseMaterial ()
 Destructor.
 
virtual void declare_parameters (ParameterHandler &) const
 Declare parameters for a parameter file.
 
virtual void set_parameters (const std::vector< std::string > &, const std::vector< double > &, ParameterHandler &)
 Member function used to change the values in the parameter file for a given list of parameters.
 

Detailed Description

Virtual class used to describe different gases and pure materials for which viscority, diffusivity, etc.

can be computed

Constructor & Destructor Documentation

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

Member Function Documentation

virtual double FuelCellShop::Material::PureGas::get_d2molar_enthalpy_dT2 ( const double &  T) const
pure virtual

Abstract method for defining interface to return second derivative of molar enthalpy [J/mol] w.r.t Temperature [K], for an ideal gas.

The method takes temperature (in Kelvins) as an input argument.

Implemented in FuelCellShop::Material::Hydrogen, FuelCellShop::Material::Water, FuelCellShop::Material::Nitrogen, and FuelCellShop::Material::Oxygen.

virtual double FuelCellShop::Material::PureGas::get_dmolar_enthalpy_dT ( const double &  T) const
pure virtual

Abstract method for defining interface to return derivative of molar enthalpy [J/mol] w.r.t Temperature [K], for an ideal gas.

The method takes temperature (in Kelvins) as an input argument.

Implemented in FuelCellShop::Material::Hydrogen, FuelCellShop::Material::Water, FuelCellShop::Material::Nitrogen, and FuelCellShop::Material::Oxygen.

virtual void FuelCellShop::Material::PureGas::get_dMu_d_T_Chapman_Enskog ( double &  dmu,
const double &  T,
const double &  MW,
const double &  hard_sphere_diameter 
)
virtual
virtual void FuelCellShop::Material::PureGas::get_dMu_d_T_Chapman_Enskog ( double &  dmu,
const double &  T 
)
virtual
virtual char* FuelCellShop::Material::PureGas::get_formula ( )
pure virtual
virtual enMaterialID FuelCellShop::Material::PureGas::get_ID ( )
pure virtual
virtual double FuelCellShop::Material::PureGas::get_molar_enthalpy ( const double &  T) const
pure virtual

Abstract method for defining interface to return molar enthalpy [J/mol] of an ideal gas.

For an ideal gas, it's just a function of temperature. The method takes temperature (in Kelvins) as an input argument.

Implemented in FuelCellShop::Material::Hydrogen, FuelCellShop::Material::Water, FuelCellShop::Material::Nitrogen, and FuelCellShop::Material::Oxygen.

virtual char* FuelCellShop::Material::PureGas::get_name ( )
pure virtual
virtual void FuelCellShop::Material::PureGas::get_viscosity ( double &  mu,
const double &  T 
)
pure virtual
virtual void FuelCellShop::Material::PureGas::get_viscosity_Chapman_Enskog ( double &  mu,
const double &  T,
const double &  MW,
const double &  hard_sphere_diameter 
)
virtual
virtual void FuelCellShop::Material::PureGas::get_viscosity_Chapman_Enskog ( double &  mu,
const double &  T 
)
virtual
virtual double FuelCellShop::Material::PureGas::getCollisionDiameter ( )
virtual

Lennard-Jones parameters.

virtual double FuelCellShop::Material::PureGas::getDimensionlessTemperature ( const double &  T)
virtual

Member Data Documentation

double FuelCellShop::Material::PureGas::e_k

epsilon/k

double FuelCellShop::Material::PureGas::hard_sphere_diameter

Hard sphere diameter in Angstrom.

double FuelCellShop::Material::PureGas::M

Molar mass in g/mol or kg/kmol.

double FuelCellShop::Material::PureGas::Mu_0

dynamic viscosity at STP

double FuelCellShop::Material::PureGas::Pc

Critical pressure in bar.

double FuelCellShop::Material::PureGas::Tc

Critical temperature in Kelvin.

double FuelCellShop::Material::PureGas::Tnb

in Kelvin

double FuelCellShop::Material::PureGas::Vc

Critical volume in Cm3/mol.

double FuelCellShop::Material::PureGas::Vl

in m3/kmol

double FuelCellShop::Material::PureGas::w

Material other critical properties.

double FuelCellShop::Material::PureGas::Zc

Critical gas compressibility factor (Z).

It is a useful thermodynamic property for modifying the ideal gas law to account for the real gas behavior


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