19 #ifndef CT_GIBBSEXCESSVPSSTP_H
20 #define CT_GIBBSEXCESSVPSSTP_H
267 int sizeUA = 6)
const;
302 err(
"getdlnActCoeffdT");
325 err(
" getdlnActCoeffdlnN: nonzero and nonimplemented");
347 err(
"getdlnActCoeffdlnX");
377 virtual void getPartialMolarVolumes(doublereal* vbar)
const;
378 virtual const vector_fp& getPartialMolarVolumes()
const;
394 virtual void setState_TP(doublereal t, doublereal p);
484 doublereal
err(
const std::string& msg)
const;
492 double checkMFSum(
const doublereal*
const x)
const;
537 mutable std::vector<doublereal>
m_pp;
virtual void getdlnActCoeffdlnN(const size_t ld, doublereal *const dlnActCoeffdlnN)
Get the array of derivatives of the log activity coefficients with respect to the log of the species ...
std::vector< doublereal > m_pp
Temporary storage space that is fair game.
void initLengths()
Initialize lengths of local variables after all species have been identified.
GibbsExcessVPSSTP & operator=(const GibbsExcessVPSSTP &b)
Assignment operator.
virtual void getActivities(doublereal *ac) const
Get the array of non-dimensional activities (molality based for this class and classes that derive fr...
virtual doublereal logStandardConc(size_t k=0) const
Returns the natural logarithm of the standard concentration of the kth species.
virtual ThermoPhase * duplMyselfAsThermoPhase() const
Duplication routine for objects which inherit from ThermoPhase.
virtual void getUnitsStandardConc(double *uA, int k=0, int sizeUA=6) const
Returns the units of the standard and generalized concentrations Note they have the same units...
std::vector< doublereal > d2lnActCoeffdT2_Scaled_
Storage for the current derivative values of the gradients with respect to temperature of the log of ...
virtual void setState_TP(doublereal t, doublereal p)
Set the temperature (K) and pressure (Pa)
virtual doublereal standardConcentration(size_t k=0) const
The standard concentration used to normalize the generalized concentration.
std::vector< doublereal > dlnActCoeffdlnN_diag_
Storage for the current derivative values of the gradients with respect to logarithm of the mole frac...
A class for 2D arrays stored in column-major (Fortran-compatible) form.
virtual void getActivityCoefficients(doublereal *ac) const
Get the array of non-dimensional molar-based activity coefficients at the current solution temperatur...
Base class for a phase with thermodynamic properties.
virtual int eosType() const
Equation of state type flag.
virtual void setConcentrations(const doublereal *const c)
Set the concentrations to the specified values within the phase.
virtual void getdlnActCoeffdT(doublereal *dlnActCoeffdT) const
Get the array of temperature derivatives of the log activity coefficients.
void calcDensity()
Calculate the density of the mixture using the partial molar volumes and mole fractions as input...
double checkMFSum(const doublereal *const x) const
utility routine to check mole fraction sum
This is a filter class for ThermoPhase that implements some prepatory steps for efficiently handling ...
void getElectrochemPotentials(doublereal *mu) const
Get the species electrochemical potentials.
virtual void setMassFractions(const doublereal *const y)
Set the mass fractions to the specified values, and then normalize them so that they sum to 1...
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...
virtual void setMassFractions_NoNorm(const doublereal *const y)
Set the mass fractions to the specified values without normalizing.
std::vector< doublereal > dlnActCoeffdlnX_diag_
Storage for the current derivative values of the gradients with respect to logarithm of the mole frac...
virtual void getActivityConcentrations(doublereal *c) const
This method returns an array of generalized concentrations.
Header file for a derived class of ThermoPhase that handles variable pressure standard state methods ...
std::vector< doublereal > lnActCoeff_Scaled_
Storage for the current values of the activity coefficients of the species.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual void setPressure(doublereal p)
Set the internally stored pressure (Pa) at constant temperature and composition.
std::vector< doublereal > moleFractions_
Storage for the current values of the mole fractions of the species.
virtual void initThermo()
Array2D dlnActCoeffdlnN_
Storage for the current derivative values of the gradients with respect to logarithm of the species m...
virtual void setMoleFractions_NoNorm(const doublereal *const x)
Set the mole fractions to the specified values without normalizing.
std::vector< doublereal > dlnActCoeffdT_Scaled_
Storage for the current derivative values of the gradients with respect to temperature of the log of ...
doublereal err(const std::string &msg) const
Error function.
virtual void getdlnActCoeffdlnX(doublereal *dlnActCoeffdlnX) const
Get the array of log concentration-like derivatives of the log activity coefficients.