123 explicit SurfPhase(
const string& infile=
"",
const string&
id=
"");
126 return "ideal-surface";
162 double cp_mole()
const override;
163 double cv_mole()
const override;
221 bool addSpecies(shared_ptr<Species> spec)
override;
250 void getCp_R(span<double> cpr)
const override;
270 void getCp_R_ref(span<double> cprt)
const override;
Header file for class ThermoPhase, the base class for phases with thermodynamic properties,...
A map of string keys to values whose type can vary at runtime.
A simple thermodynamic model for a surface phase, assuming an ideal solution model.
double molarVolume() const override
Since interface phases have no volume, this returns 0.0.
double enthalpy_mole() const override
Return the Molar Enthalpy. Units: J/kmol.
void setSiteDensity(double n0)
Set the site density of the surface phase (kmol m-2)
double logStandardConc(size_t k=0) const override
Natural logarithm of the standard concentration of the kth species.
void setState(const AnyMap &state) override
Set the state using an AnyMap containing any combination of properties supported by the thermodynamic...
void getCp_R(span< double > cpr) const override
Get the nondimensional Heat Capacities at constant pressure for the species standard states at the cu...
void getStandardChemPotentials(span< double > mu0) const override
Get the array of chemical potentials at unit activity for the species at their standard states at the...
void getEntropy_R_ref(span< double > er) const override
Returns the vector of nondimensional entropies of the reference state at the current temperature of t...
void getPartialMolarEnthalpies(span< double > hbar) const override
Returns an array of partial molar enthalpies for the species in the mixture.
double pressure() const override
Return the thermodynamic pressure (Pa).
bool isCompressible() const override
Return whether phase represents a compressible substance.
void setCoverages(span< const double > theta)
Set the surface site fractions to a specified state.
void getPartialMolarCp(span< double > cpbar) const override
Return an array of partial molar heat capacities for the species in the mixture.
vector< double > m_logsize
vector storing the log of the size of each species.
void getGibbs_RT(span< double > grt) const override
Get the nondimensional Gibbs functions for the species in their standard states at the current T and ...
void getCp_R_ref(span< double > cprt) const override
Returns the vector of nondimensional constant pressure heat capacities of the reference state at the ...
vector< double > m_work
Temporary work array.
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.
double m_n0
Surface site density (kmol m-2)
double size(size_t k) const
Returns the number of sites occupied by one molecule of species k.
void setPressure(double p) override
Set the internally stored pressure (Pa) at constant temperature and composition.
vector< double > m_h0
Temporary storage for the reference state enthalpies.
void getEnthalpy_RT_ref(span< double > hrt) const override
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
double cv_mole() const override
Molar heat capacity at constant volume and composition [J/kmol/K].
void getEnthalpy_RT(span< double > hrt) const override
Get the nondimensional Enthalpy functions for the species at their standard states at the current T a...
vector< double > m_s0
Temporary storage for the reference state entropies.
vector< double > m_cp0
Temporary storage for the reference state heat capacities.
vector< double > m_speciesSize
Vector of species sizes (number of sites occupied). length m_kk.
double m_press
Current value of the pressure (Pa)
double siteDensity() const
Returns the site density.
void getEntropy_R(span< double > sr) const override
Get the array of nondimensional Entropy functions for the standard state species at the current T and...
double intEnergy_mole() const override
Return the Molar Internal Energy. Units: J/kmol.
double entropy_mole() const override
Return the Molar Entropy. Units: J/kmol-K.
void _updateThermo(bool force=false) const
Update the species reference state thermodynamic functions.
void getGibbs_RT_ref(span< double > grt) const override
Returns the vector of nondimensional Gibbs Free Energies of the reference state at the current temper...
double cp_mole() const override
Molar heat capacity at constant pressure and composition [J/kmol/K].
void setCoveragesNoNorm(span< const double > theta)
Set the surface site fractions to a specified state.
void getPartialMolarVolumes(span< double > vbar) const override
Return an array of partial molar volumes for the species in the mixture.
void getStandardVolumes(span< double > vol) const override
Get the molar volumes of the species standard states at the current T and P of the solution.
void compositionChanged() override
Apply changes to the state which are needed after the composition changes.
void getCoverages(span< double > theta) const
Return a vector of surface coverages.
void getPartialMolarEntropies(span< double > sbar) const override
Returns an array of partial molar entropies of the species in the solution.
double standardConcentration(size_t k=0) const override
Return the standard concentration for the kth species.
vector< double > m_mu0
Temporary storage for the reference state Gibbs energies.
bool addSpecies(shared_ptr< Species > spec) override
Add a Species to this Phase.
void setCoveragesByName(const string &cov)
Set the coverages from a string of colon-separated name:value pairs.
void getChemPotentials(span< double > mu) const override
Get the species chemical potentials. Units: J/kmol.
void getActivityConcentrations(span< double > c) const override
Return a vector of activity concentrations for each species.
double m_logn0
log of the surface site density
Base class for a phase with thermodynamic properties.
const double OneAtm
One atmosphere [Pa].
Namespace for the Cantera kernel.
map< string, double > Composition
Map from string names to doubles.