11 #ifndef CT_LATTICESOLID_H 12 #define CT_LATTICESOLID_H 123 "To be removed after Cantera 2.3.");
124 return cLatticeSolid;
126 virtual std::string
type()
const {
127 return "LatticeSolid";
219 virtual doublereal
cp_mole()
const;
290 virtual doublereal moleFraction(
const int k)
const {
294 virtual void getMassFractions(doublereal*
const y)
const {
295 throw NotImplementedError(
"LatticeSolidPhase::getMassFractions");
298 virtual doublereal massFraction(
const int k)
const {
299 throw NotImplementedError(
"LatticeSolidPhase::massFraction");
310 virtual void getConcentrations(doublereal*
const c)
const {
314 virtual doublereal concentration(
int k)
const {
315 throw NotImplementedError(
"LatticeSolidPhase::concentration");
424 virtual bool addSpecies(shared_ptr<Species> spec);
463 std::vector<size_t> lkstart_;
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 modifyOneHf298SS(const size_t k, const doublereal Hf298New)
Modify the value of the 298 K Heat of Formation of one species in the phase (J kmol-1) ...
virtual void getPartialMolarEntropies(doublereal *sbar) const
Returns an array of partial molar entropies of the species in the solution.
virtual void getMoleFractions(doublereal *const x) const
Get the species mole fraction vector.
virtual doublereal logStandardConc(size_t k=0) const
Natural logarithm of the standard concentration of the kth species.
std::vector< LatticePhase * > m_lattice
Vector of sublattic ThermoPhase objects.
virtual void initThermo()
Initialize the ThermoPhase object after all species have been set up.
An error indicating that an unimplemented function has been called.
doublereal calcDensity()
Calculate the density of the solid mixture.
virtual std::string type() const
String indicating the thermodynamic model implemented.
const size_t npos
index returned by functions to indicate "no position"
vector_fp theta_
Lattice stoichiometric coefficients.
LatticeSolidPhase()
Base empty constructor.
virtual void getGibbs_ref(doublereal *g) const
Returns the vector of the Gibbs function of the reference state at the current temperature of the sol...
virtual void setMoleFractions(const doublereal *const x)
Set the mole fractions to the specified values, and then normalize them so that they sum to 1...
Class XML_Node is a tree-based representation of the contents of an XML file.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
virtual void getPartialMolarCp(doublereal *cpbar) const
Returns an array of partial molar Heat Capacities at constant pressure of the species in the solution...
virtual doublereal intEnergy_mole() const
Return the Molar Internal Energy. Units: J/kmol.
virtual void getPartialMolarEnthalpies(doublereal *hbar) const
Returns an array of partial molar enthalpies for the species in the mixture.
virtual ThermoPhase * duplMyselfAsThermoPhase() const
Duplication routine for objects which inherit from ThermoPhase.
virtual void setMassFractions_NoNorm(const doublereal *const y)
Set the mass fractions to the specified values without normalizing.
virtual void setPressure(doublereal p)
Set the pressure at constant temperature. Units: Pa.
Base class for a phase with thermodynamic properties.
virtual doublereal standardConcentration(size_t k=0) const
Return the standard concentration for the kth species.
void _updateThermo() const
Update the reference thermodynamic functions.
virtual void resetHf298(const size_t k=npos)
Restore the original heat of formation of one or more species.
doublereal m_molar_density
Current value of the molar density.
virtual void getChemPotentials(doublereal *mu) const
Get the species chemical potentials. Units: J/kmol.
vector_fp tmpV_
Temporary vector.
virtual void getActivityCoefficients(doublereal *ac) const
Get the array of non-dimensional molar-based activity coefficients at the current solution temperatur...
doublereal m_press
Current value of the pressure.
virtual doublereal entropy_mole() const
Return the Molar Entropy. Units: J/kmol/K.
void setLatticeMoleFractionsByName(int n, const std::string &x)
Set the Lattice mole fractions using a string.
virtual void getActivityConcentrations(doublereal *c) const
This method returns an array of generalized concentrations.
virtual int eosType() const
Equation of state type flag.
vector_fp m_x
Vector of mole fractions.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual void setParametersFromXML(const XML_Node &eosdata)
Set equation of state parameter values from XML entries.
A phase that is comprised of a fixed additive combination of other lattice phases.
virtual int standardStateConvention() const
This method returns the convention used in specification of the standard state, of which there are cu...
virtual bool addSpecies(shared_ptr< Species > spec)
virtual doublereal maxTemp(size_t k=npos) const
Maximum temperature for which the thermodynamic data for the species are valid.
virtual doublereal cv_mole() const
Return the constant volume heat capacity. Units: J/kmol/K.
virtual doublereal refPressure() const
Returns the reference pressure in Pa.
virtual doublereal pressure() const
Report the Pressure. Units: Pa.
virtual doublereal minTemp(size_t k=npos) const
Minimum temperature for which the thermodynamic data for the species or phase are valid...
virtual void getPartialMolarVolumes(doublereal *vbar) const
returns an array of partial molar volumes of the species in the solution.
Namespace for the Cantera kernel.
virtual doublereal cp_mole() const
Return the constant pressure heat capacity. Units: J/kmol/K.
virtual void getStandardChemPotentials(doublereal *mu0) const
Get the array of standard state chemical potentials at unit activity for the species at their standar...
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 enthalpy_mole() const
Return the Molar Enthalpy. Units: J/kmol.
virtual doublereal gibbs_mole() const
Return the Molar Gibbs energy. Units: J/kmol.
Header for a simple thermodynamics model of a bulk phase derived from ThermoPhase, assuming a lattice of solid atoms (see Thermodynamic Properties and class LatticePhase).
virtual void setMassFractions(const doublereal *const y)
Set the mass fractions to the specified values and normalize them.
const int cSS_CONVENTION_SLAVE
Standard state thermodynamics is obtained from slave ThermoPhase objects.
virtual void setConcentrations(const doublereal *const conc)
Set the concentrations to the specified values within the phase.