BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
belfem::gastables::GasData Class Reference

The per species property record: the scalar data that describe a gas but do not depend on the state. More...

#include <cl_GT_GasData.hpp>

Public Member Functions

 GasData ()=default
 ~GasData ()=default
bool has_crit () const
bool has_cubic () const
const stringlabel () const
const stringname () const
const stringcas () const
const realR () const
const realM () const
const realacentric () const
const realdipole () const
const realHf () const
const realHref () const
const realSref () const
const Cell< string > & elements () const
const Map< string, real > & composition () const
real component_multiplicity (const string &aLabel) const
const realT_crit () const
const realp_crit () const
const realrho_crit () const
const realZ_crit () const
const Vector< real > & srk () const
const Vector< real > & pr () const

Protected Member Functions

void set_label (const string &aLabel)
void set_name (const string &aName)
void set_cas_number (const string &aCasNumber)
void set_molar_mass (const real &aM)
void set_t_crit (const real aTcrit)
void set_p_crit (const real aPcrit)
void set_rho_crit (const real &aRhocrit)
void set_z_crit (const real &aZcrit)
void set_acentric_factor (const real &aOmega)
void set_dipole_moment (const real &aDipole)
void set_formation_enthalpy (const real &aHf)
void set_reference_enthalpy (const real &aHref)
void set_reference_entropy (const real &aSref)
Vector< real > & srk ()
Vector< real > & pr ()
void set_cubic_flag ()

Detailed Description

The per species property record: the scalar data that describe a gas but do not depend on the state.

Three tables feed it. thermo.inp supplies the label and the molar mass; gasdata.inp adds the critical point, the acentric factor, the dipole moment and the CAS number; cubicalpha.inp adds the fitted alpha function coefficients for the cubic equations of state, keyed on that CAS number.

has_crit() is the gate for every real gas path - it is true only when the full set T_crit, p_crit, Z_crit, acentric and dipole is present, so a species missing any one of them stays ideal gas. has_cubic() likewise reports whether the alpha function coefficients were found.

Units are SI throughout even where the source file is not: molar mass in kg/mol ( the file is g/mol ), critical pressure in Pa ( the file is bar ), dipole moment in debye.

See also
Gas Tables Usage Guide

Constructor & Destructor Documentation

◆ GasData()

belfem::gastables::GasData::GasData ( )
default

◆ ~GasData()

belfem::gastables::GasData::~GasData ( )
default

Member Function Documentation

◆ acentric()

const real & belfem::gastables::GasData::acentric ( ) const
inline

◆ cas()

const string & belfem::gastables::GasData::cas ( ) const
inline

◆ component_multiplicity()

real belfem::gastables::GasData::component_multiplicity ( const string & aLabel) const
inline

◆ composition()

const Map< string, real > & belfem::gastables::GasData::composition ( ) const
inline

◆ dipole()

const real & belfem::gastables::GasData::dipole ( ) const
inline

◆ elements()

const Cell< string > & belfem::gastables::GasData::elements ( ) const
inline

◆ has_crit()

bool belfem::gastables::GasData::has_crit ( ) const
inline

◆ has_cubic()

bool belfem::gastables::GasData::has_cubic ( ) const
inline

◆ Hf()

const real & belfem::gastables::GasData::Hf ( ) const
inline

◆ Href()

const real & belfem::gastables::GasData::Href ( ) const
inline

◆ label()

const string & belfem::gastables::GasData::label ( ) const
inline

◆ M()

const real & belfem::gastables::GasData::M ( ) const
inline

◆ name()

const string & belfem::gastables::GasData::name ( ) const
inline

◆ p_crit()

const real & belfem::gastables::GasData::p_crit ( ) const
inline

◆ pr() [1/2]

Vector< real > & belfem::gastables::GasData::pr ( )
inlineprotected

◆ pr() [2/2]

const Vector< real > & belfem::gastables::GasData::pr ( ) const
inline

◆ R()

const real & belfem::gastables::GasData::R ( ) const
inline

◆ rho_crit()

const real & belfem::gastables::GasData::rho_crit ( ) const
inline

◆ set_acentric_factor()

void belfem::gastables::GasData::set_acentric_factor ( const real & aOmega)
protected

◆ set_cas_number()

void belfem::gastables::GasData::set_cas_number ( const string & aCasNumber)
protected

◆ set_cubic_flag()

void belfem::gastables::GasData::set_cubic_flag ( )
inlineprotected

◆ set_dipole_moment()

void belfem::gastables::GasData::set_dipole_moment ( const real & aDipole)
protected

◆ set_formation_enthalpy()

void belfem::gastables::GasData::set_formation_enthalpy ( const real & aHf)
protected

◆ set_label()

void belfem::gastables::GasData::set_label ( const string & aLabel)
protected

◆ set_molar_mass()

void belfem::gastables::GasData::set_molar_mass ( const real & aM)
protected

◆ set_name()

void belfem::gastables::GasData::set_name ( const string & aName)
protected

◆ set_p_crit()

void belfem::gastables::GasData::set_p_crit ( const real aPcrit)
protected

◆ set_reference_enthalpy()

void belfem::gastables::GasData::set_reference_enthalpy ( const real & aHref)
protected

◆ set_reference_entropy()

void belfem::gastables::GasData::set_reference_entropy ( const real & aSref)
protected

◆ set_rho_crit()

void belfem::gastables::GasData::set_rho_crit ( const real & aRhocrit)
protected

◆ set_t_crit()

void belfem::gastables::GasData::set_t_crit ( const real aTcrit)
protected

◆ set_z_crit()

void belfem::gastables::GasData::set_z_crit ( const real & aZcrit)
protected

◆ Sref()

const real & belfem::gastables::GasData::Sref ( ) const
inline

◆ srk() [1/2]

Vector< real > & belfem::gastables::GasData::srk ( )
inlineprotected

◆ srk() [2/2]

const Vector< real > & belfem::gastables::GasData::srk ( ) const
inline

◆ T_crit()

const real & belfem::gastables::GasData::T_crit ( ) const
inline

◆ Z_crit()

const real & belfem::gastables::GasData::Z_crit ( ) const
inline

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