Reaktoro  v2.1.1 A unified framework for modeling chemically reactive systems
IonExchangeProps Class Reference

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

#include <IonExchangeProps.hpp>

## Public Member Functions

IonExchangeProps (const ChemicalSystem &system)
Construct an uninitialized IonExchangeProps object with given chemical system.

IonExchangeProps (const ChemicalState &state)
Construct an IonExchangeProps object with given chemical state of the system.

IonExchangeProps (const ChemicalProps &props)
Construct an IonExchangeProps object with given chemical properties of the system.

IonExchangeProps (const IonExchangeProps &other)
Construct a copy of a IonExchangeProps object.

virtual ~IonExchangeProps ()
Destroy this IonExchangeProps object.

auto operator= (IonExchangeProps other) -> IonExchangeProps &
Assign a IonExchangeProps object to this object.

auto update (const ChemicalState &state) -> void
Update the ion exchange properties with given chemical state of the system.

auto update (const ChemicalProps &props) -> void
Update the ion exchange properties with given chemical properties of the system.

auto elementAmount (const StringOrIndex &symbol) const -> real
Return the amount of an element (in moles).

auto elementAmounts () const -> ArrayXr
Return the amounts of the elements (in moles).

auto speciesAmounts () const -> ArrayXr
Return the amounts of the species on the ion exchange surface (in moles).

auto speciesAmount (const StringOrIndex &name) const -> real
Return the amounts of an ion exchange species (in moles).

auto speciesEquivalents () const -> ArrayXr
Return the equivalents of the species on the ion exchange composition (in eq).

auto speciesEquivalent (const StringOrIndex &name) const -> real
Return the equivalent of an ion exchange species (in eq).

auto speciesEquivalentFractions () const -> ArrayXr
Return the equivalent fractions of the species on the ion exchange surface (in moles) if the molar fractions are provided.

auto speciesEquivalentFraction (const StringOrIndex &name) const -> real
Return the equivalent fraction of an ion exchange species.

auto speciesActivityCoefficientsLg () const -> ArrayXr
Return the logarithms of the activity coefficients of the species on the ion exchange surface (in moles) if the molar fractions are provided.

auto speciesActivityCoefficientLg (const StringOrIndex &name) const -> real
Return the base-10 logarithm of the activity coefficients of an ion exchange species.

auto phase () const -> const Phase &
Return the underlying Phase object for the ion exchange phase.

auto output (std::ostream &out) const -> void
Output the properties of the exchange phase to a stream.

auto output (const String &filename) const -> void
Output the properties of the exchange phase to a file.

## Detailed Description

The chemical properties of an aqueous phase.

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