11#ifndef CT_BINARYSOLUTIONTABULATEDTHERMO_H
12#define CT_BINARYSOLUTIONTABULATEDTHERMO_H
177 return "binary-solution-tabulated";
180 bool addSpecies(shared_ptr<Species> spec)
override;
182 bool ready()
const override;
226 double interpolate(
const double x,
const vector<double>& inputData)
const;
238 void diff(
const vector<double>& inputData, vector<double>& derivedData)
const;
251 vector<double> m_enthalpy_tab;
252 vector<double> m_entropy_tab;
253 vector<double> m_molar_volume_tab;
254 vector<double> m_derived_molar_volume_tab;
Header file for an ideal solid solution model with incompressible thermodynamics (see Thermodynamic P...
A map of string keys to values whose type can vary at runtime.
Overloads the virtual methods of class IdealSolidSolnPhase to implement tabulated standard state ther...
vector< double > m_molefrac_tab
Vector for storing tabulated thermo.
double m_s0_tab
Tabulated contribution to s0[m_kk_tab] at the current composition.
void getParameters(AnyMap &phaseNode) const override
Store the parameters of a ThermoPhase object such that an identical one could be reconstructed using ...
string type() const override
String indicating the thermodynamic model implemented.
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
void getPartialMolarVolumes(double *vbar) const override
returns an array of partial molar volumes of the species in the solution.
double interpolate(const double x, const vector< double > &inputData) const
Species thermodynamics linear interpolation function.
size_t m_kk_tab
Current tabulated species index.
void diff(const vector< double > &inputData, vector< double > &derivedData) const
Numerical derivative of the molar volume table.
void calcDensity() override
Overloads the calcDensity() method of IdealSolidSoln to also consider non-ideal behavior.
double m_h0_tab
Tabulated contribution to h0[m_kk_tab] at the current composition.
void compositionChanged() override
If the compositions have changed, update the tabulated thermo lookup.
bool ready() const override
Returns a bool indicating whether the object is ready for use.
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
void _updateThermo() const override
This function gets called for every call to functions in this class.
Class IdealSolidSolnPhase represents a condensed phase ideal solution compound.
Namespace for the Cantera kernel.
const size_t npos
index returned by functions to indicate "no position"
Various templated functions that carry out common vector and polynomial operations (see Templated Arr...