AqueousMixture.hpp
A type used to describe an aqueous mixture.
Definition: AqueousMixture.hpp:66
auto state(real T, real P, ArrayXrConstRef x) const -> AqueousMixtureState
Calculate the state of the aqueous mixture.
auto indicesCations() const -> Indices const &
Return the indices of the cations in the mixture.
AqueousMixture()
Construct a default AqueousMixture instance.
auto cations() const -> SpeciesList const &
Return the cation solutes in the mixture.
auto water() const -> Species const &
Return the aqueous solvent species in the mixture.
auto indicesCharged() const -> Indices const &
Return the indices of the charged aqueous solutes in the mixture.
auto indicesNeutral() const -> Indices const &
Return the indices of the neutral aqueous solutes in the mixture.
auto clone() const -> AqueousMixture
Return a deep copy of this AqueousMixture object.
auto dissociationMatrix() const -> MatrixXdConstRef
Return the dissociation matrix of the neutral species into charged species.
AqueousMixture(SpeciesList const &species)
Construct an AqueousMixture instance with given species.
auto withWaterDielectricConstantFn(Fn< real(real, real)> epsilon) const -> AqueousMixture
Return a copy of this AqueousMixture object with replaced function for water dielectric constant calc...
auto withWaterDensityFn(Fn< real(real, real)> rho) const -> AqueousMixture
Return a copy of this AqueousMixture object with replaced function for water density calculation.
auto indicesAnions() const -> Indices const &
Return the indices of the anions in the mixture.
auto species() const -> SpeciesList const &
Return the aqueous species in the mixture.
auto anions() const -> SpeciesList const &
Return the anion solutes in the mixture.
auto charges() const -> ArrayXdConstRef
Return the electric charges of the aqueous species in the mixture.
auto charged() const -> SpeciesList const &
Return the charged aqueous solutes in the mixture.
auto neutral() const -> SpeciesList const &
Return the neutral aqueous solutes in the mixture.
auto indexWater() const -> Index
Return the index of the solvent species in the mixture.
A type used to represent a chemical species and its attributes.
Definition: Species.hpp:35
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
constexpr auto epsilon
The value of machine precision epsilon.
Definition: Constants.hpp:68
Eigen::Ref< const ArrayXd > ArrayXdConstRef
Convenient alias to Eigen type.
Definition: Matrix.hpp:105
std::function< F > Fn
Convenient alias for std::function<R(Args...)>.
Definition: Types.hpp:110
std::vector< Index > Indices
Define a type that represents a collection of indices.
Definition: Index.hpp:29
Eigen::Ref< const MatrixXd > MatrixXdConstRef
Convenient alias to Eigen type.
Definition: Matrix.hpp:139
std::shared_ptr< T > SharedPtr
Convenient alias for std::shared_ptr<T>.
Definition: Types.hpp:106
Eigen::Ref< const ArrayXr > ArrayXrConstRef
Convenient alias to Eigen type.
Definition: Matrix.hpp:89
autodiff::ArrayXreal ArrayXr
Convenient alias to Eigen type.
Definition: Matrix.hpp:87
A type used to describe the state of an aqueous mixture.
Definition: AqueousMixture.hpp:30
real rho
The density of water (in kg/m3)
Definition: AqueousMixture.hpp:38
ArrayXr m
The molalities of the aqueous species (in mol/kg)
Definition: AqueousMixture.hpp:50
real epsilon
The relative dielectric constant of water (no units)
Definition: AqueousMixture.hpp:41
ArrayXr ms
The stoichiometric molalities of the ionic species (in mol/kg)
Definition: AqueousMixture.hpp:53
real P
The pressure of the mixture (in Pa).
Definition: AqueousMixture.hpp:35
real Is
The stoichiometric ionic strength of the aqueous mixture (in mol/kg)
Definition: AqueousMixture.hpp:47
real Ie
The effective ionic strength of the aqueous mixture (in mol/kg)
Definition: AqueousMixture.hpp:44
real T
The temperature of the mixture (in K).
Definition: AqueousMixture.hpp:32