20 #ifndef CT_MOLARITYIONICVPSSTP_H
21 #define CT_MOLARITYIONICVPSSTP_H
294 virtual std::string
report(
bool show_thermo =
true)
const;
345 doublereal
err(
const std::string& msg)
const;
363 mutable std::vector<doublereal> PBMoleFractions_;
371 std::vector<size_t> anionList_;
372 size_t numAnionSpecies_;
374 std::vector<size_t> passThroughList_;
375 size_t numPassThroughSpecies_;
376 size_t neutralPBindexStart;
378 mutable std::vector<doublereal> moleFractionsTmp_;
381 #define PBTYPE_PASSTHROUGH 0
382 #define PBTYPE_SINGLEANION 1
383 #define PBTYPE_SINGLECATION 2
384 #define PBTYPE_MULTICATIONANION 3
size_t numCationSpecies_
Number of cations in the mixture.
virtual void calcPseudoBinaryMoleFractions() const
Calculate pseudo binary mole fractions.
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.
virtual std::string report(bool show_thermo=true) const
returns a summary of the state of the phase as a string
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...
doublereal err(const std::string &msg) const
Error function.
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 int eosType() const
Equation of state type flag.
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.