Base class to compute activity coefficients for non-minerals and non-gases (since these species do not have activity coefficients). More...
#include <GeochemistryActivityCoefficients.h>
Public Member Functions | |
GeochemistryActivityCoefficients () | |
bool | operator== (const GeochemistryActivityCoefficients &) const |
virtual void | setInternalParameters (Real temperature, const ModelGeochemicalDatabase &mgd, const std::vector< Real > &basis_species_molality, const std::vector< Real > &eqm_species_molality, const std::vector< Real > &kin_species_molality)=0 |
Sets internal parameters, such as the ionic strength and Debye-Huckel parameters, prior to computing activity coefficients and activity of water. More... | |
virtual Real | waterActivity () const =0 |
Computes and returns the activity of water. More... | |
virtual void | buildActivityCoefficients (const ModelGeochemicalDatabase &mgd, std::vector< Real > &basis_activity_coef, std::vector< Real > &eqm_activity_coef) const =0 |
Compute the activity coefficients and store them in basis_activity_coef and eqm_activity_coef Note: More... | |
Base class to compute activity coefficients for non-minerals and non-gases (since these species do not have activity coefficients).
Also computes the activity of water.
Definition at line 18 of file GeochemistryActivityCoefficients.h.
|
inline |
Definition at line 21 of file GeochemistryActivityCoefficients.h.
|
pure virtual |
Compute the activity coefficients and store them in basis_activity_coef and eqm_activity_coef Note:
Implemented in GeochemistryActivityCoefficientsDebyeHuckel.
Referenced by GeochemicalSystem::computeConsistentConfiguration(), and GeochemicalSystem::setSolventMassAndFreeMolalityAndMineralMolesAndSurfacePotsAndKineticMoles().
|
inline |
Definition at line 23 of file GeochemistryActivityCoefficients.h.
|
pure virtual |
Sets internal parameters, such as the ionic strength and Debye-Huckel parameters, prior to computing activity coefficients and activity of water.
If using a Debye-Huckel activity model, you must ensure the ionic strength calculator (eg, maxIonicStrength) is set appropriately before calling this function.
temperature | the temperature in degC |
mgd | the Model Geochemical database |
basis_species_molality | Molalities of the basis species in mgd |
eqm_species_molality | Molalities of the equilibrium species in mgd |
kin_species_molality | Molalities of the kinetic species |
Implemented in GeochemistryActivityCoefficientsDebyeHuckel.
Referenced by GeochemicalSystem::computeConsistentConfiguration(), GeochemicalSystem::setSolventMassAndFreeMolalityAndMineralMolesAndSurfacePotsAndKineticMoles(), and GeochemicalSystem::setTemperature().
|
pure virtual |
Computes and returns the activity of water.
Note that you will probably want to call setInternalParameters prior to calling this method
Implemented in GeochemistryActivityCoefficientsDebyeHuckel.
Referenced by GeochemicalSystem::computeRemainingBasisActivities().