CoverageDependentSurfPhase.h Source File#
CoverageDependentSurfPhase.h
Go to the documentation of this file.
Header file for class Cantera::Array2D.
Header for a simple thermodynamics model of a surface phase derived from ThermoPhase,...
Base class defining common data possessed by both AnyMap and AnyValue objects.
Definition AnyMap.h:34
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
A thermodynamic model for a coverage-dependent surface phase, applying surface species lateral intera...
Definition CoverageDependentSurfPhase.h:127
void getStandardChemPotentials(double *mu0) const override
Get the standard state chemical potential vector. Units: J/kmol.
Definition CoverageDependentSurfPhase.cpp:391
void getPureGibbs(double *g) const override
Get the standard state gibbs free energy vector. Units: J/kmol.
Definition CoverageDependentSurfPhase.cpp:383
double enthalpy_mole() const override
Return the solution's molar enthalpy. Units: J/kmol.
Definition CoverageDependentSurfPhase.cpp:433
vector< double > m_entropy
Temporary storage for the sum of reference state entropies and coverage-dependent entropies.
Definition CoverageDependentSurfPhase.h:401
vector< InterpolativeDependency > m_InterpolativeDependency
Array of enthalpy and entropy coverage dependency parameters used in the piecewise-linear and interpo...
Definition CoverageDependentSurfPhase.h:417
void getPartialMolarEnthalpies(double *hbar) const override
Get the partial molar enthalpy vector. Units: J/kmol.
Definition CoverageDependentSurfPhase.cpp:403
void getChemPotentials(double *mu) const override
Get the chemical potential vector. Units: J/kmol.
Definition CoverageDependentSurfPhase.cpp:424
void getSpeciesParameters(const string &name, AnyMap &speciesNode) const override
Get phase-specific parameters of a Species object such that an identical one could be reconstructed a...
Definition CoverageDependentSurfPhase.cpp:238
void getEntropy_R(double *sr) const override
Get the nondimensionalized standard state entropy vector.
Definition CoverageDependentSurfPhase.cpp:353
vector< double > m_enthalpy
Temporary storage for the sum of reference state enthalpies and coverage-dependent enthalpies.
Definition CoverageDependentSurfPhase.h:397
vector< HeatCapacityDependency > m_HeatCapacityDependency
Array of heat capacity coverage dependency parameters.
Definition CoverageDependentSurfPhase.h:420
void getCp_R_ref(double *cpr) const override
Returns the vector of nondimensional constant pressure heat capacities of the reference state at the ...
Definition CoverageDependentSurfPhase.cpp:341
void getCp_R(double *cpr) const override
Get the nondimensionalized standard state heat capacity vector.
Definition CoverageDependentSurfPhase.cpp:365
void getParameters(AnyMap &phaseNode) const override
Store the parameters of a ThermoPhase object such that an identical one could be reconstructed using ...
Definition CoverageDependentSurfPhase.cpp:232
string type() const override
String indicating the thermodynamic model implemented.
Definition CoverageDependentSurfPhase.h:223
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
Definition CoverageDependentSurfPhase.cpp:157
vector< double > m_h_cov
Temporary storage for the coverage-dependent enthalpies.
Definition CoverageDependentSurfPhase.h:384
void getEntropy_R_ref(double *sr) const override
Returns the vector of nondimensional entropies of the reference state at the current temperature of t...
Definition CoverageDependentSurfPhase.cpp:335
int m_stateNumlast
Last value of the state number processed.
Definition CoverageDependentSurfPhase.h:428
vector< double > m_chempot
Temporary storage for the sum of reference state chemical potentials and coverage-dependent chemical ...
Definition CoverageDependentSurfPhase.h:409
void addInterpolativeDependency(const InterpolativeDependency &int_deps)
Add interpolative coverage dependence parameters for a species.
Definition CoverageDependentSurfPhase.cpp:133
vector< double > m_heatcapacity
Temporary storage for the sum of reference state heat capacities and coverage-dependent heat capaciti...
Definition CoverageDependentSurfPhase.h:405
void _updateTotalThermo() const
Update the total (reference state + coverage-dependent) thermodynamic functions.
Definition CoverageDependentSurfPhase.cpp:530
void getEnthalpy_RT(double *hrt) const override
Get the nondimensionalized standard state enthalpy vector.
Definition CoverageDependentSurfPhase.cpp:347
double m_theta_ref
Storage for the user-defined reference state coverage which has to be greater than 0....
Definition CoverageDependentSurfPhase.h:425
void _updateCovDepThermo() const
Update the species coverage-dependent thermodynamic functions.
Definition CoverageDependentSurfPhase.cpp:456
void getGibbs_RT(double *grt) const override
Get the nondimensionalized standard state gibbs free energy vector.
Definition CoverageDependentSurfPhase.cpp:371
double entropy_mole() const override
Return the solution's molar entropy. Units: J/kmol/K.
Definition CoverageDependentSurfPhase.cpp:439
vector< double > m_mu_cov
Temporary storage for the coverage-dependent chemical potentials.
Definition CoverageDependentSurfPhase.h:393
vector< double > m_s_cov
Temporary storage for the coverage-dependent entropies.
Definition CoverageDependentSurfPhase.h:387
double cp_mole() const override
Return the solution's molar heat capacity. Units: J/kmol/K.
Definition CoverageDependentSurfPhase.cpp:450
vector< double > m_cov
Temporary storage for the coverages.
Definition CoverageDependentSurfPhase.h:381
void getPartialMolarCp(double *cpbar) const override
Get the partial molar heat capacity vector. Units: J/kmol/K.
Definition CoverageDependentSurfPhase.cpp:418
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
Definition CoverageDependentSurfPhase.cpp:215
void getGibbs_RT_ref(double *grt) const override
Returns the vector of nondimensional Gibbs Free Energies of the reference state at the current temper...
Definition CoverageDependentSurfPhase.cpp:323
vector< PolynomialDependency > m_PolynomialDependency
Array of enthalpy and entropy coverage dependency parameters used in the linear and polynomial depend...
Definition CoverageDependentSurfPhase.h:413
vector< double > m_cp_cov
Temporary storage for the coverage-dependent heat capacities.
Definition CoverageDependentSurfPhase.h:390
void getPartialMolarEntropies(double *sbar) const override
Get the partial molar entropy vector. Units: J/kmol/K.
Definition CoverageDependentSurfPhase.cpp:409
void getEnthalpy_RT_ref(double *hrt) const override
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
Definition CoverageDependentSurfPhase.cpp:329
A simple thermodynamic model for a surface phase, assuming an ideal solution model.
Definition SurfPhase.h:98
A struct to store sets of parameters used in coverage-dependent heat capacity calculations by a log-q...
Definition CoverageDependentSurfPhase.h:192
HeatCapacityDependency(size_t k, size_t j)
Definition CoverageDependentSurfPhase.h:198
double coeff_a
coefficient [J/kmol/K] in the coverage-dependent heat capacity model
Definition CoverageDependentSurfPhase.h:207
size_t k
index of a target species whose heat capacity is calculated
Definition CoverageDependentSurfPhase.h:201
size_t j
index of a species whose coverage affects heat capacity of a target species
Definition CoverageDependentSurfPhase.h:204
double coeff_b
coefficient [J/kmol/K] in the coverage-dependent heat capacity model
Definition CoverageDependentSurfPhase.h:210
A struct to store sets of parameters used in coverage-dependent enthalpy and entropy calculations by ...
Definition CoverageDependentSurfPhase.h:165
map< double, double > enthalpy_map
map of <coverage[dimensionless], enthalpy[J/kmol]> pairs
Definition CoverageDependentSurfPhase.h:182
size_t k
index of a target species whose enthalpy and entropy are calculated
Definition CoverageDependentSurfPhase.h:177
bool isPiecewise
boolean indicating whether the dependency is piecewise-linear
Definition CoverageDependentSurfPhase.h:186
size_t j
index of a species whose coverage affects enthalpy and entropy of a target species
Definition CoverageDependentSurfPhase.h:180
map< double, double > entropy_map
map of <coverage[dimensionless], entropy[J/kmol/K]> pairs
Definition CoverageDependentSurfPhase.h:184
A struct to store sets of parameters used in coverage-dependent enthalpy and entropy calculations by ...
Definition CoverageDependentSurfPhase.h:133
vector< double > entropy_coeffs
array of polynomial coefficients describing coverage-dependent entropy [J/kmol/K] in order of 1st-ord...
Definition CoverageDependentSurfPhase.h:156
vector< double > enthalpy_coeffs
array of polynomial coefficients describing coverage-dependent enthalpy [J/kmol] in order of 1st-orde...
Definition CoverageDependentSurfPhase.h:151
size_t k
index of a target species whose enthalpy and entropy is calculated
Definition CoverageDependentSurfPhase.h:143
size_t j
index of a species whose coverage affects enthalpy and entropy of a target species
Definition CoverageDependentSurfPhase.h:146
bool isLinear
boolean indicating whether the dependency is linear
Definition CoverageDependentSurfPhase.h:158
Generated by