AqueousProps.hpp
73 auto setActivityModel(StringOrIndex const& species, ActivityModelGenerator const& generator) -> void;
auto temperature() const -> real
Return the temperature of the aqueous phase (in K).
AqueousProps(ChemicalState const &state)
Construct an AqueousProps object with given chemical state of the system.
auto pressure() const -> real
Return the pressure of the aqueous phase (in Pa).
auto chargeMolality() const -> real
Return the molality concentration in the aqueous phase (in molal).
auto props() const -> ChemicalProps const &
Return the underlying ChemicalProps object.
auto charge() const -> real
Return the electric charge in the aqueous phase (in mol).
auto elementMolalities() const -> ArrayXr
Return the molality concentrations of the elements (in molal).
auto saturationIndexLn(StringOrIndex const &species) const -> real
Return the saturation index of a given species (in natural log).
static auto compute(ChemicalProps const &props) -> AqueousProps const &
Compute an AqueousProps object with given ChemicalProps object.
auto saturationRatio(StringOrIndex const &species) const -> real
Return the saturation ratio ( ) of a non-aqueous species.
auto saturationIndices() const -> ArrayXr
Return the saturation indices of all non-aqueous species.
auto output(std::ostream &out) const -> void
Output the properties of the aqueous phase to a stream.
auto saturationRatios() const -> ArrayXr
Return the saturation ratios of all non-aqueous species.
auto saturationIndex(StringOrIndex const &species) const -> real
Return the saturation index ( ) of a non-aqueous species.
auto speciesMolality(StringOrIndex const &name) const -> real
Return the molality of an aqueous solute species (in molal).
auto operator=(AqueousProps other) -> AqueousProps &
Assign a AqueousProps object to this object.
auto waterAmount() const -> real
Return the amount of solvent water in the aqueous phase (in mol).
auto update(ChemicalProps const &props) -> void
Update the aqueous properties with given chemical properties of the system.
auto Eh() const -> real
Return the reduction potential of the aqueous phase (in V).
auto setActivityModel(StringOrIndex const &species, ActivityModelGenerator const &generator) -> void
Set an activity model for a non-aqueous species that will be used in the calculation of its saturatio...
AqueousProps(ChemicalSystem const &system)
Construct an uninitialized AqueousProps object with given chemical system.
auto speciesMolalities() const -> ArrayXr
Return the molality concentrations of the species (in molal).
AqueousProps(ChemicalProps const &props)
Construct an AqueousProps object with given chemical properties of the system.
auto phase() const -> Phase const &
Return the underlying Phase object corresponding to the aqueous phase.
auto system() const -> ChemicalSystem const &
Return the underlying ChemicalSystem object.
auto ionicStrengthEffective() const -> real
Return the effective ionic strength of the aqueous phase (in molal).
AqueousProps(AqueousProps const &other)
Construct a copy of a AqueousProps object.
auto saturationSpecies() const -> SpeciesList
Return the non-aqueous species that could be formed from the aqueous solution.
auto saturationRatiosLn() const -> ArrayXr
Return the saturation ratios of all non-aqueous species (in natural log).
auto waterMass() const -> real
Return the mass of solvent water in the aqueous phase (in kg).
auto ionicStrength() const -> real
Return the effective ionic strength of the aqueous phase (in molal). Equivalent to ionicStrengthEffec...
auto alkalinity() const -> real
Return the explicitly conservative form of total alkalinity of the aqueous phase (in eq/L).
auto saturationIndicesLg() const -> ArrayXr
Return the saturation indices of all non-aqueous species (in log base 10).
auto ionicStrengthStoichiometric() const -> real
Return the stoichiometric ionic strength of the aqueous phase (in molal).
auto update(ChemicalState const &state) -> void
Update the aqueous properties with given chemical state of the system.
auto saturationIndexLg(StringOrIndex const &species) const -> real
Return the saturation index of a given species (in log base 10).
auto saturationIndicesLn() const -> ArrayXr
Return the saturation indices of all non-aqueous species (in natural log).
auto elementMolality(StringOrIndex const &symbol) const -> real
Return the molality of an element (in molal).
The class that computes chemical properties of a chemical system.
Definition: ChemicalProps.hpp:34
The class used to represent a chemical system and its attributes and properties.
Definition: ChemicalSystem.hpp:70
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
Fn< ActivityModel(SpeciesList const &species)> ActivityModelGenerator
The type for functions that construct an ActivityModel for a phase.
Definition: ActivityModel.hpp:53
autodiff::real real
The number type used throughout the library.
Definition: Real.hpp:26
std::unique_ptr< T > Ptr
Convenient alias for std::unique_ptr<T>.
Definition: Types.hpp:102
std::variant< Index, int, std::string > StringOrIndex
The type used to accept either a name or an index.
Definition: Types.hpp:58
autodiff::ArrayXreal ArrayXr
Convenient alias to Eigen type.
Definition: Matrix.hpp:87