19 #ifndef CT_MOLALITYVPSSTP_H
20 #define CT_MOLALITYVPSSTP_H
466 int sizeUA = 6)
const;
674 const doublereal*
const molalities);
691 void setState_TPM(doublereal t, doublereal p,
const std::string& m);
713 getdlnActCoeffdlnN_numderiv(ld, dlnActCoeffdlnN);
721 virtual std::string
report(
bool show_thermo =
true)
const;
726 std::vector<vector_fp>& data)
const;
749 virtual void applyphScale(doublereal* acMolality)
const;
832 doublereal
err(
const std::string& msg)
const;
std::map< std::string, doublereal > compositionMap
Map connecting a string name with a double.
virtual double osmoticCoefficient() const
Calculate the osmotic coefficient.
void initLengths()
Initialize lengths of local variables after all species have been identified.
void getElectrochemPotentials(doublereal *mu) const
Get the species electrochemical potentials.
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 ...
void setSolvent(size_t k)
This routine sets the index number of the solvent for the phase.
virtual doublereal logStandardConc(size_t k=0) const
Returns the natural logarithm of the standard concentration of the kth species.
virtual void applyphScale(doublereal *acMolality) const
Apply the current phScale to a set of activity Coefficients or activities.
doublereal m_Mnaught
This is the multiplication factor that goes inside log expressions involving the molalities of specie...
void setpHScale(const int pHscaleType)
Set the pH scale, which determines the scale for single-ion activity coefficients.
size_t m_indexCLM
Index of the phScale species.
Class XML_Node is a tree-based representation of the contents of an XML file.
doublereal m_xmolSolventMIN
virtual void getUnscaledMolalityActivityCoefficients(doublereal *acMolality) const
Get the array of unscaled non-dimensional molality based activity coefficients at the current solutio...
std::string name() const
Return the name of the phase.
virtual int eosType() const
Equation of state type flag.
Base class for a phase with thermodynamic properties.
size_t solventIndex() const
Returns the solvent index.
doublereal err(const std::string &msg) const
Error function.
virtual void getActivities(doublereal *ac) const
Get the array of non-dimensional activities (molality based for this class and classes that derive fr...
MolalityVPSSTP & operator=(const MolalityVPSSTP &b)
Assignment operator.
virtual void getMolalityActivityCoefficients(doublereal *acMolality) const
Get the array of non-dimensional molality based activity coefficients at the current solution tempera...
virtual void setToEquilState(const doublereal *lambda_RT)
This method is used by the ChemEquil element-potential based equilibrium solver.
const int PHSCALE_NBS
Scale to be used for evaluation of single-ion activity coefficients is that used by the NBS standard ...
void setMolalitiesByName(compositionMap &xMap)
Set the molalities of a phase.
virtual void getActivityConcentrations(doublereal *c) const
This method returns an array of generalized concentrations that are defined such that where is a s...
const int PHSCALE_PITZER
Scale to be used for the output of single-ion activity coefficients is that used by Pitzer...
This is a filter class for ThermoPhase that implements some prepatory steps for efficiently handling ...
int m_pHScalingType
Scaling to be used for output of single-ion species activity coefficients.
virtual void setStateFromXML(const XML_Node &state)
Set equation of state parameter values from XML entries.
virtual size_t findCLMIndex() const
Returns the index of the Cl- species.
void setMolalities(const doublereal *const molal)
Set the molalities of the solutes in a phase.
void setState_TPM(doublereal t, doublereal p, const doublereal *const molalities)
Set the temperature (K), pressure (Pa), and molalities (gmol kg-1) of the solutes.
doublereal moleFSolventMin() const
Returns the minimum mole fraction in the molality formulation.
void getActivityCoefficients(doublereal *ac) const
Get the array of non-dimensional activity coefficients at the current solution temperature, pressure, and solution concentration.
vector_fp m_molalities
Current value of the molalities of the species in the phase.
Header file for a derived class of ThermoPhase that handles variable pressure standard state methods ...
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual void initThermo()
Initialize the ThermoPhase object after all species have been set up.
virtual void getCsvReportData(std::vector< std::string > &names, std::vector< vector_fp > &data) const
Fills names and data with the column names and species thermo properties to be included in the output...
void getMolalities(doublereal *const molal) const
This function will return the molalities of the species.
doublereal m_weightSolvent
Molecular weight of the Solvent.
void initThermoXML(XML_Node &phaseNode, const std::string &id)
Import and initialize a ThermoPhase object.
int activityConvention() const
This method returns the activity convention.
int pHScale() const
Reports the pH scale, which determines the scale for single-ion activity coefficients.
size_t m_indexSolvent
Index of the solvent.
virtual std::string report(bool show_thermo=true) const
returns a summary of the state of the phase as a string
virtual ThermoPhase * duplMyselfAsThermoPhase() const
Duplication routine for objects which inherit from ThermoPhase.
MolalityVPSSTP()
Default Constructor.
void calcMolalities() const
Calculates the molality of all species and stores the result internally.
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...
void setMoleFSolventMin(doublereal xmolSolventMIN)
Sets the minimum mole fraction in the molality formulation.
virtual doublereal standardConcentration(size_t k=0) const
The standard concentration used to normalize the generalized concentration.