IonExchangeProps.hpp
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 chemical properties of an aqueous phase.
Definition: IonExchangeProps.hpp:34
auto speciesAmounts() const -> ArrayXr
Return the amounts of the species on the ion exchange surface (in moles).
IonExchangeProps(const ChemicalProps &props)
Construct an IonExchangeProps object with given chemical properties of the system.
auto speciesActivityCoefficientsLg() const -> ArrayXr
Return the logarithms of the activity coefficients of the species on the ion exchange surface (in mol...
IonExchangeProps(const ChemicalState &state)
Construct an IonExchangeProps object with given chemical state of the system.
auto elementAmounts() const -> ArrayXr
Return the amounts of the elements (in moles).
auto operator=(IonExchangeProps other) -> IonExchangeProps &
Assign a IonExchangeProps object to this object.
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 update(const ChemicalState &state) -> void
Update the ion exchange properties with given chemical state of the system.
auto speciesEquivalentFraction(const StringOrIndex &name) const -> real
Return the equivalent fraction of an ion exchange species.
IonExchangeProps(const ChemicalSystem &system)
Construct an uninitialized IonExchangeProps object with given chemical system.
auto speciesEquivalentFractions() const -> ArrayXr
Return the equivalent fractions of the species on the ion exchange surface (in moles) if the molar fr...
auto speciesEquivalent(const StringOrIndex &name) const -> real
Return the equivalent of an ion exchange species (in eq).
IonExchangeProps(const IonExchangeProps &other)
Construct a copy of a IonExchangeProps object.
auto speciesActivityCoefficientLg(const StringOrIndex &name) const -> real
Return the base-10 logarithm of the activity coefficients of an ion exchange species.
auto elementAmount(const StringOrIndex &symbol) const -> real
Return the amount of an element (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 update(const ChemicalProps &props) -> void
Update the ion exchange properties with given chemical properties of the system.
virtual ~IonExchangeProps()
Destroy this IonExchangeProps object.
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
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