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

Builds RefGas objects from the shipped data tables. More...

#include <cl_GT_RefGasFactory.hpp>

Public Member Functions

 RefGasFactory (const string aDataPath=gastables::data_path())
 ~RefGasFactory ()
 RefGasFactory (const RefGasFactory &)=delete
RefGasFactoryoperator= (const RefGasFactory &)=delete
RefGascreate_refgas (const string &aLabel)
void create_temperature_steps (Vector< real > &aTemperatureSteps)
void create_helpmatrix (SpMatrix &aHelpMatrix)
bool interaction_viscosity_exists (const string &aA, const string &aB)
RefGascreate_interaction_viscosity (const string &aA, const string &aB)

Detailed Description

Builds RefGas objects from the shipped data tables.

The factory owns the four readers for the lifetime of the object, so the tables are parsed once however many species are created. Its work is more than lookup: a raw record covers only the temperature range the source data covers, and create_refgas fills the rest in - glue polynomials across interval junctions, a cryogenic interval below the lowest tabulated one, a hot extrapolation above the highest, and, for species that have a critical point but no transport record, viscosity and conductivity synthesized from the Lucas and Chung correlations.

The returned RefGas is owned by the caller and must be deleted by it. The factory holds no reference to what it produced and may be destroyed first.

The data path defaults to gastables::data_path(), which resolves $BELFEM_DATA and otherwise searches for share/fluid relative to the working directory.

See also
Gas Tables Usage Guide

Constructor & Destructor Documentation

◆ RefGasFactory() [1/2]

belfem::gastables::RefGasFactory::RefGasFactory ( const string aDataPath = gastables::data_path())

◆ ~RefGasFactory()

belfem::gastables::RefGasFactory::~RefGasFactory ( )

◆ RefGasFactory() [2/2]

belfem::gastables::RefGasFactory::RefGasFactory ( const RefGasFactory & )
delete

Member Function Documentation

◆ create_helpmatrix()

void belfem::gastables::RefGasFactory::create_helpmatrix ( SpMatrix & aHelpMatrix)

◆ create_interaction_viscosity()

RefGas * belfem::gastables::RefGasFactory::create_interaction_viscosity ( const string & aA,
const string & aB )

◆ create_refgas()

RefGas * belfem::gastables::RefGasFactory::create_refgas ( const string & aLabel)

◆ create_temperature_steps()

void belfem::gastables::RefGasFactory::create_temperature_steps ( Vector< real > & aTemperatureSteps)

◆ interaction_viscosity_exists()

bool belfem::gastables::RefGasFactory::interaction_viscosity_exists ( const string & aA,
const string & aB )

◆ operator=()

RefGasFactory & belfem::gastables::RefGasFactory::operator= ( const RefGasFactory & )
delete

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