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

Reader for gasdata.inp, the table of critical point and molecular data. More...

#include <cl_GT_InputData.hpp>

Inheritance diagram for belfem::gastables::InputData:
[legend]
Collaboration diagram for belfem::gastables::InputData:
[legend]

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
stringline (const index_t aLineNumber)
const stringline (const index_t aLineNumber) const

Additional Inherited Members

Protected Attributes inherited from belfem::Ascii
string mPath
const FileMode mMode
Cell< stringmBuffer
bool mChangedSinceLastSave = false

Detailed Description

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.

Constructor & Destructor Documentation

◆ InputData()

belfem::gastables::InputData::InputData ( const string & aPath)

◆ ~InputData()

belfem::gastables::InputData::~InputData ( )
default

Member Function Documentation

◆ entry_exists()

bool belfem::gastables::InputData::entry_exists ( GasData * aData)

◆ read_data()

void belfem::gastables::InputData::read_data ( GasData * aData)

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