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 | |
| RefGasFactory & | operator= (const RefGasFactory &)=delete |
| RefGas * | create_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) |
| RefGas * | create_interaction_viscosity (const string &aA, const string &aB) |
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.
| belfem::gastables::RefGasFactory::RefGasFactory | ( | const string | aDataPath = gastables::data_path() | ) |
| belfem::gastables::RefGasFactory::~RefGasFactory | ( | ) |
|
delete |
| void belfem::gastables::RefGasFactory::create_helpmatrix | ( | SpMatrix & | aHelpMatrix | ) |
| RefGas * belfem::gastables::RefGasFactory::create_interaction_viscosity | ( | const string & | aA, |
| const string & | aB ) |
| void belfem::gastables::RefGasFactory::create_temperature_steps | ( | Vector< real > & | aTemperatureSteps | ) |
| bool belfem::gastables::RefGasFactory::interaction_viscosity_exists | ( | const string & | aA, |
| const string & | aB ) |
|
delete |