12 #ifndef CT_SURFPHASE_H 13 #define CT_SURFPHASE_H 159 SurfPhase(
const std::string& infile,
const std::string&
id);
168 virtual std::string
type()
const {
201 virtual doublereal
cp_mole()
const;
202 virtual doublereal
cv_mole()
const;
288 virtual bool addSpecies(shared_ptr<Species> spec);
317 virtual double size(
size_t k)
const {
330 virtual void getCp_R(doublereal* cpr)
const;
std::map< std::string, doublereal > compositionMap
Map connecting a string name with a double.
void setCoveragesNoNorm(const doublereal *theta)
Set the surface site fractions to a specified state.
virtual double size(size_t k) const
Returns the number of sites occupied by one molecule of species k.
virtual void getPartialMolarVolumes(doublereal *vbar) const
Return an array of partial molar volumes for the species in the mixture.
virtual void getEntropy_R(doublereal *sr) const
Get the array of nondimensional Entropy functions for the standard state species at the current T and...
virtual void getGibbs_RT_ref(doublereal *grt) const
Returns the vector of nondimensional Gibbs Free Energies of the reference state at the current temper...
virtual void getCp_R(doublereal *cpr) const
Get the nondimensional Heat Capacities at constant pressure for the species standard states at the cu...
virtual void getEnthalpy_RT(doublereal *hrt) const
Get the nondimensional Enthalpy functions for the species at their standard states at the current T a...
void setCoveragesByName(const std::string &cov)
Set the coverages from a string of colon-separated name:value pairs.
virtual doublereal standardConcentration(size_t k=0) const
Return the standard concentration for the kth species.
doublereal m_press
Current value of the pressure (Pa)
void setCoverages(const doublereal *theta)
Set the surface site fractions to a specified state.
SurfPhase(doublereal n0=1.0)
Constructor.
Class XML_Node is a tree-based representation of the contents of an XML file.
virtual void getPureGibbs(doublereal *g) const
Get the Gibbs functions for the standard state of the species at the current T and P of the solution...
virtual void getGibbs_RT(doublereal *grt) const
Get the nondimensional Gibbs functions for the species in their standard states at the current T and ...
vector_fp m_work
Temporary work array.
Base class for a phase with thermodynamic properties.
vector_fp m_speciesSize
Vector of species sizes (number of sites occupied). length m_kk.
doublereal m_n0
Surface site density (kmol m-2)
virtual std::string type() const
String indicating the thermodynamic model implemented.
virtual doublereal logStandardConc(size_t k=0) const
Natural logarithm of the standard concentration of the kth species.
A simple thermodynamic model for a surface phase, assuming an ideal solution model.
doublereal m_logn0
log of the surface site density
virtual doublereal enthalpy_mole() const
Return the Molar Enthalpy. Units: J/kmol.
void getCoverages(doublereal *theta) const
Return a vector of surface coverages.
virtual doublereal intEnergy_mole() const
Return the Molar Internal Energy. Units: J/kmol.
virtual void setStateFromXML(const XML_Node &state)
Set the initial state of the Surface Phase from an XML_Node.
virtual void getChemPotentials(doublereal *mu) const
Get the species chemical potentials. Units: J/kmol.
virtual doublereal cp_mole() const
Molar heat capacity at constant pressure. Units: J/kmol/K.
vector_fp m_logsize
vector storing the log of the size of each species.
vector_fp m_s0
Temporary storage for the reference state entropies.
virtual void getEnthalpy_RT_ref(doublereal *hrt) const
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
virtual void getActivityConcentrations(doublereal *c) const
Return a vector of activity concentrations for each species.
void _updateThermo(bool force=false) const
Update the species reference state thermodynamic functions.
virtual doublereal pressure() const
Return the thermodynamic pressure (Pa).
virtual void setPressure(doublereal p)
Set the internally stored pressure (Pa) at constant temperature and composition.
vector_fp m_h0
Temporary storage for the reference state enthalpies.
virtual void getStandardVolumes(doublereal *vol) const
Get the molar volumes of the species standard states at the current T and P of the solution...
virtual void getPartialMolarEntropies(doublereal *sbar) const
Returns an array of partial molar entropies of the species in the solution.
virtual void getEntropy_R_ref(doublereal *er) const
Returns the vector of nondimensional entropies of the reference state at the current temperature of t...
void setSiteDensity(doublereal n0)
Set the site density of the surface phase (kmol m-2)
virtual doublereal entropy_mole() const
Return the Molar Entropy. Units: J/kmol-K.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual bool addSpecies(shared_ptr< Species > spec)
vector_fp m_mu0
Temporary storage for the reference state Gibbs energies.
virtual void getPartialMolarEnthalpies(doublereal *hbar) const
Returns an array of partial molar enthalpies for the species in the mixture.
virtual void getCp_R_ref(doublereal *cprt) const
Returns the vector of nondimensional constant pressure heat capacities of the reference state at the ...
virtual void setParametersFromXML(const XML_Node &thermoData)
Set the Equation-of-State parameters by reading an XML Node Input.
virtual void getPartialMolarCp(doublereal *cpbar) const
Return an array of partial molar heat capacities for the species in the mixture.
Namespace for the Cantera kernel.
virtual void getStandardChemPotentials(doublereal *mu0) const
Get the array of chemical potentials at unit activity for the species at their standard states at the...
Header file for class ThermoPhase, the base class for phases with thermodynamic properties, and the text for the Module thermoprops (see Thermodynamic Properties and class ThermoPhase).
virtual doublereal cv_mole() const
Molar heat capacity at constant volume. Units: J/kmol/K.
vector_fp m_cp0
Temporary storage for the reference state heat capacities.
doublereal siteDensity()
Returns the site density.
virtual void setParameters(int n, doublereal *const c)
Set the equation of state parameters from the argument list.