Reader for gasdata.inp, the table of critical point and molecular data. More...
#include <cl_GT_InputData.hpp>
Public Member Functions | |
| InputData (const string &aPath) | |
| ~InputData ()=default | |
| void | read_data (GasData *aData) |
| bool | entry_exists (GasData *aData) |
| Public Member Functions inherited from belfem::Ascii | |
| Ascii (const string &aPath, const enum FileMode &aMode) | |
| virtual | ~Ascii () |
| bool | save () |
| void | print (const std::string &aLine) |
| index_t | length () const |
| return the number of lines | |
| string & | line (const index_t aLineNumber) |
| const string & | line (const index_t aLineNumber) const |
Additional Inherited Members | |
| Protected Attributes inherited from belfem::Ascii | |
| string | mPath |
| const FileMode | mMode |
| Cell< string > | mBuffer |
| bool | mChangedSinceLastSave = false |
Reader for gasdata.inp, the table of critical point and molecular data.
The file is fixed column, not whitespace delimited, so the field offsets in the implementation are part of the format contract and must move together with the file. Records are indexed by species label into mMap; the map keeps the last record of a repeated label, which the shipped table avoids by carrying exactly one row per label.
Reads into GasData and converts to SI on the way: molar mass g/mol to kg/mol, critical pressure bar to Pa. The dipole moment stays in debye, which is what the correlations that use it expect.
| belfem::gastables::InputData::InputData | ( | const string & | aPath | ) |
|
default |
| bool belfem::gastables::InputData::entry_exists | ( | GasData * | aData | ) |
| void belfem::gastables::InputData::read_data | ( | GasData * | aData | ) |