Reaktoro  v2.0.0
A unified framework for modeling chemically reactive systems
AqueousProps Class Reference

The chemical properties of an aqueous phase. More...

#include <AqueousProps.hpp>

Public Member Functions

 AqueousProps (const ChemicalSystem &system)
 Construct an uninitialized AqueousProps object with given chemical system.
 
 AqueousProps (const ChemicalState &state)
 Construct an AqueousProps object with given chemical state of the system.
 
 AqueousProps (const ChemicalProps &props)
 Construct an AqueousProps object with given chemical properties of the system.
 
 AqueousProps (const AqueousProps &other)
 Construct a copy of a AqueousProps object.
 
virtual ~AqueousProps ()
 Destroy this AqueousProps object.
 
auto operator= (AqueousProps other) -> AqueousProps &
 Assign a AqueousProps object to this object.
 
auto update (const ChemicalState &state) -> void
 Update the aqueous properties with given chemical state of the system.
 
auto update (const ChemicalProps &props) -> void
 Update the aqueous properties with given chemical properties of the system.
 
auto temperature () const -> real
 Return the temperature of the aqueous phase (in K).
 
auto pressure () const -> real
 Return the pressure of the aqueous phase (in Pa).
 
auto elementMolality (const StringOrIndex &symbol) const -> real
 Return the molality of an element (in molal).
 
auto elementMolalities () const -> VectorXr
 Return the molality concentrations of the elements in (in molal).
 
auto speciesMolality (const StringOrIndex &name) const -> real
 Return the molality of an aqueous solute species (in molal).
 
auto speciesMolalities () const -> VectorXr
 Return the molality concentrations of the species (in molal).
 
auto ionicStrength () const -> real
 Return the effective ionic strength of the aqueous phase (in molal). Equivalent to ionicStrengthEffective.
 
auto ionicStrengthEffective () const -> real
 Return the effective ionic strength of the aqueous phase (in molal).
 
auto ionicStrengthStoichiometric () const -> real
 Return the stoichiometric ionic strength of the aqueous phase (in molal).
 
auto pH () const -> real
 Return the pH of the aqueous phase.
 
auto pE () const -> real
 Return the pE of the aqueous phase.
 
auto Eh () const -> real
 Return the reduction potential of the aqueous phase (in V).
 
auto alkalinity () const -> real
 Return the total alkalinity of the aqueous phase (in eq/L). More...
 
auto phase () const -> const Phase &
 Return the underlying Phase object for the aqueous phase.
 
auto output (std::ostream &out) const -> void
 Output the properties of the aqueous phase to a stream.
 
auto output (const String &filename) const -> void
 Output the properties of the aqueous phase to a file.
 

Detailed Description

The chemical properties of an aqueous phase.

Member Function Documentation

◆ alkalinity()

auto alkalinity ( ) const -> real

Return the total alkalinity of the aqueous phase (in eq/L).

The total alkalinity (Alk) of the aqueous phase is by default calculated as the acid neutralizing capacity (ANC) of the solution using the formula:

\[ \mathrm{Alk=[Na^{+}]+[K^{+}]+2[Ca^{2+}]+2[Mg^{2+}]-[Cl^{-}]-2[SO_{4}^{2-}]}, \]

where \([\mathrm{species}]\) is the free molar concentration (mol/L) of the species in the solution. This formula is simpler, derived from the charge balance condition, and equivalent to the standard formula of total alkalinity.


The documentation for this class was generated from the following file: