BinarySolutionTabulatedThermo.cpp Source File#
BinarySolutionTabulatedThermo.cpp
Go to the documentation of this file.
Header file for an binary solution model with tabulated standard state thermodynamic data (see Thermo...
Header for a general species thermodynamic property manager for a phase (see MultiSpeciesThermo).
Declarations for the virtual base class PDSS (pressure dependent standard state) which handles calcul...
Header for factory functions to build instances of classes that manage the standard-state thermodynam...
Declaration for class Cantera::Species.
Headers for the factory class that can create known ThermoPhase objects (see Thermodynamic Properties...
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
bool hasKey(const string &key) const
Returns true if the map contains an item named key.
Definition AnyMap.cpp:1423
vector< double > convertVector(const string &key, const string &units, size_t nMin=npos, size_t nMax=npos) const
Convert a vector of dimensional values.
Definition AnyMap.cpp:1555
vector< double > m_molefrac_tab
Vector for storing tabulated thermo.
Definition BinarySolutionTabulatedThermo.h:250
double m_s0_tab
Tabulated contribution to s0[m_kk_tab] at the current composition.
Definition BinarySolutionTabulatedThermo.h:247
void getParameters(AnyMap &phaseNode) const override
Store the parameters of a ThermoPhase object such that an identical one could be reconstructed using ...
Definition BinarySolutionTabulatedThermo.cpp:147
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
Definition BinarySolutionTabulatedThermo.cpp:80
void getPartialMolarVolumes(double *vbar) const override
returns an array of partial molar volumes of the species in the solution.
Definition BinarySolutionTabulatedThermo.cpp:199
double interpolate(const double x, const vector< double > &inputData) const
Species thermodynamics linear interpolation function.
Definition BinarySolutionTabulatedThermo.cpp:159
void diff(const vector< double > &inputData, vector< double > &derivedData) const
Numerical derivative of the molar volume table.
Definition BinarySolutionTabulatedThermo.cpp:179
void calcDensity() override
Overloads the calcDensity() method of IdealSolidSoln to also consider non-ideal behavior.
Definition BinarySolutionTabulatedThermo.cpp:204
BinarySolutionTabulatedThermo(const string &infile="", const string &id="")
Construct and initialize an BinarySolutionTabulatedThermo ThermoPhase object directly from an input f...
Definition BinarySolutionTabulatedThermo.cpp:22
double m_h0_tab
Tabulated contribution to h0[m_kk_tab] at the current composition.
Definition BinarySolutionTabulatedThermo.h:244
void compositionChanged() override
If the compositions have changed, update the tabulated thermo lookup.
Definition BinarySolutionTabulatedThermo.cpp:28
bool ready() const override
Returns a bool indicating whether the object is ready for use.
Definition BinarySolutionTabulatedThermo.cpp:142
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
Definition BinarySolutionTabulatedThermo.cpp:70
void _updateThermo() const override
This function gets called for every call to functions in this class.
Definition BinarySolutionTabulatedThermo.cpp:34
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
vector< double > m_g0_RT
Vector containing the species reference Gibbs functions at T = m_tlast.
Definition IdealSolidSolnPhase.h:592
vector< double > m_h0_RT
Vector containing the species reference enthalpies at T = m_tlast.
Definition IdealSolidSolnPhase.h:585
void getParameters(AnyMap &phaseNode) const override
Store the parameters of a ThermoPhase object such that an identical one could be reconstructed using ...
Definition IdealSolidSolnPhase.cpp:342
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
Definition IdealSolidSolnPhase.cpp:334
double standardConcentration(size_t k) const override
The standard concentration used to normalize the generalized concentration.
Definition IdealSolidSolnPhase.cpp:104
vector< double > m_s0_R
Vector containing the species reference entropies at T = m_tlast.
Definition IdealSolidSolnPhase.h:595
vector< double > m_speciesMolarVolume
Vector of molar volumes for each species in the solution.
Definition IdealSolidSolnPhase.h:582
void compositionChanged() override
Apply changes to the state which are needed after the composition changes.
Definition IdealSolidSolnPhase.cpp:67
vector< double > m_cp0_R
Vector containing the species reference constant pressure heat capacities at T = m_tlast.
Definition IdealSolidSolnPhase.h:589
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
Definition IdealSolidSolnPhase.cpp:290
Error thrown for problems processing information contained in an AnyMap or AnyValue.
Definition AnyMap.h:738
virtual void update(double T, double *cp_R, double *h_RT, double *s_R) const
Compute the reference-state properties for all species.
Definition MultiSpeciesThermo.cpp:94
void assignDensity(const double density_)
Set the internally stored constant density (kg/m^3) of the phase.
Definition Phase.cpp:597
size_t speciesIndex(const string &name) const
Returns the index of a species named 'name' within the Phase object.
Definition Phase.cpp:129
double moleFraction(size_t k) const
Return the mole fraction of a single species.
Definition Phase.cpp:439
double RT() const
Return the Gas Constant multiplied by the current temperature.
Definition ThermoPhase.h:1062
double m_tlast
last value of the temperature processed by reference state
Definition ThermoPhase.h:1985
void initThermoFile(const string &inputFile, const string &id)
Initialize a ThermoPhase object using an input file.
Definition ThermoPhase.cpp:995
MultiSpeciesThermo m_spthermo
Pointer to the calculation manager for species reference-state thermodynamic properties.
Definition ThermoPhase.h:1962
CachedScalar getScalar(int id)
Get a reference to a CachedValue object representing a scalar (double) with the given id.
Definition ValueCache.h:161
Contains declarations for string manipulation functions within Cantera.
A cached property value and the state at which it was evaluated.
Definition ValueCache.h:33
bool validate(double state1New)
Check whether the currently cached value is valid based on a single state variable.
Definition ValueCache.h:39
Generated by 1.9.7