20 #ifndef CT_MOLARITYIONICVPSSTP_H
21 #define CT_MOLARITYIONICVPSSTP_H
279 virtual std::string
report(
bool show_thermo=
true,
280 doublereal threshold=1e-14)
const;
340 mutable std::vector<doublereal> PBMoleFractions_;
345 std::vector<size_t> anionList_;
347 std::vector<size_t> passThroughList_;
348 size_t neutralPBindexStart;
350 mutable std::vector<doublereal> moleFractionsTmp_;
353 #define PBTYPE_PASSTHROUGH 0
354 #define PBTYPE_SINGLEANION 1
355 #define PBTYPE_SINGLECATION 2
356 #define PBTYPE_MULTICATIONANION 3
virtual void calcPseudoBinaryMoleFractions() const
Calculate pseudo binary mole fractions.
virtual std::string report(bool show_thermo=true, doublereal threshold=1e-14) const
returns a summary of the state of the phase as a string
virtual void getPartialMolarCp(doublereal *cpbar) const
Returns an array of partial molar entropies for the species in the mixture.
virtual void getLnActivityCoefficients(doublereal *lnac) const
Get the array of non-dimensional molar-based ln activity coefficients at the current solution tempera...
void readXMLBinarySpecies(XML_Node &xmlBinarySpecies)
Process an XML node called "binaryNeutralSpeciesParameters".
Class XML_Node is a tree-based representation of the contents of an XML file.
std::vector< size_t > cationList_
Vector of cation indices in the mixture.
MolarityIonicVPSSTP & operator=(const MolarityIonicVPSSTP &b)
Assignment operator.
Base class for a phase with thermodynamic properties.
void initThermoXML(XML_Node &phaseNode, const std::string &id)
Import and initialize a ThermoPhase object.
virtual void getChemPotentials(doublereal *mu) const
Get the species chemical potentials. Units: J/kmol.
void s_update_dlnActCoeff_dT() const
Update the derivative of the log of the activity coefficients wrt T.
virtual void initThermo()
Header for intermediate ThermoPhase object for phases which employ Gibbs excess free energy based for...
MolarityIonicVPSSTP()
Constructor.
virtual void getPartialMolarVolumes(doublereal *vbar) const
Return an array of partial molar volumes for the species in the mixture.
void getElectrochemPotentials(doublereal *mu) const
Get the species electrochemical potentials.
void initLengths()
Initialize lengths of local variables after all species have been identified.
virtual void getPartialMolarEntropies(doublereal *sbar) const
Returns an array of partial molar entropies for the species in the mixture.
virtual void getPartialMolarEnthalpies(doublereal *hbar) const
Returns an array of partial molar enthalpies for the species in the mixture.
size_t numPBSpecies_
Number of pseudo binary species.
virtual ThermoPhase * duplMyselfAsThermoPhase() const
Duplication routine for objects which inherit from ThermoPhase.
size_t indexSpecialSpecies_
index of special species
void s_update_dlnActCoeff_dX_() const
Internal routine that calculates the derivative of the activity coefficients wrt the mole fractions...
void s_update_lnActCoeff() const
Update the activity coefficients.