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

Reader for cubicalpha.inp, the fitted alpha function coefficients of Mahmoodi and Sedigh ( doi 10.1016/j.fluid.2016.12.015 ). More...

#include <cl_GT_InputAlpha.hpp>

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

Public Member Functions

 InputAlpha (const string &aPath)
 ~InputAlpha ()=default
bool entry_exists (GasData *aData)
void read_data (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 cubicalpha.inp, the fitted alpha function coefficients of Mahmoodi and Sedigh ( doi 10.1016/j.fluid.2016.12.015 ).

Records are keyed on CAS number rather than on species label, which is what lets the join work across the different nomenclatures of the source tables. read_data applies the structural factors of the paper's Eq. ( 14 ) - c1 = 2 C1, c2 = -C2^2, c3 = (2/3) C3^3 - so the evaluator downstream sees a plain polynomial and the transform lives in exactly one place.

It also overwrites the critical temperature and pressure of the GasData with the values of this file, so that the alpha function and the critical point it was fitted against stay consistent.

A species with no record here simply keeps has_cubic() false and falls back to the Coquelet correlation, which needs only the acentric factor. That is a designed fallback, not a failure.

Constructor & Destructor Documentation

◆ InputAlpha()

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

◆ ~InputAlpha()

belfem::gastables::InputAlpha::~InputAlpha ( )
default

Member Function Documentation

◆ entry_exists()

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

◆ read_data()

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

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