AqueousMixture.hpp
84 auto setInterpolationPoints(const std::vector<double>& temperatures, const std::vector<double>& pressures) -> void;
auto indicesCations() const -> const Indices &
Return the indices of the cations in the aqueous mixture.
Definition: AqueousMixture.cpp:116
ChemicalScalar Is
The stoichiometric ionic strength of the aqueous mixture and their partial derivatives (in units of m...
Definition: AqueousMixture.hpp:40
Provide a base of implementation for the mixture classes.
Definition: GeneralMixture.hpp:58
ChemicalScalar Ie
The effective ionic strength of the aqueous mixture and their partial derivatives (in units of mol/kg...
Definition: AqueousMixture.hpp:37
auto names(const NamedValues &values) -> std::vector< std::string >
Return the names of the entries in a container.
Definition: Utils.hxx:22
auto state(Temperature T, Pressure P, VectorConstRef n) const -> AqueousMixtureState
Calculate the state of the aqueous mixture.
Definition: AqueousMixture.cpp:284
auto name() const -> std::string
Return the name of the mixture.
Definition: GeneralMixture.hpp:149
auto indicesAnions() const -> const Indices &
Return the indices of the anions in the aqueous mixture.
Definition: AqueousMixture.cpp:121
auto indexNeutralSpeciesAny(const std::vector< std::string > &names) const -> Index
Return the local index of the first neutral species among the neutral species in the aqueous mixture ...
Definition: AqueousMixture.cpp:142
auto indexAnion(std::string name) const -> Index
Return the local index of an anion among the anions in the aqueous mixture.
Definition: AqueousMixture.cpp:166
auto indexChargedSpeciesAny(const std::vector< std::string > &names) const -> Index
Return the local index of the first charged species among the charged species in the aqueous mixture ...
Definition: AqueousMixture.cpp:154
auto setWaterDielectricConstant(const ThermoScalarFunction &epsilon) -> void
Set a customized dielectric constant function for water.
Definition: AqueousMixture.cpp:85
auto species() const -> const std::vector< AqueousSpecies > &
Return the species that compose the mixture.
Definition: GeneralMixture.hpp:155
auto indexCation(std::string name) const -> Index
Return the local index of a cation among the cations in the aqueous mixture.
Definition: AqueousMixture.cpp:160
auto dissociationMatrix() const -> MatrixConstRef
Return the dissociation matrix of the aqueous complexes into ions.
Definition: AqueousMixture.cpp:131
auto setWaterDensity(const ThermoScalarFunction &rho) -> void
Set a customized density function for water.
Definition: AqueousMixture.cpp:80
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
A type used to describe an aqueous mixture.
Definition: AqueousMixture.hpp:60
auto setInterpolationPoints(const std::vector< double > &temperatures, const std::vector< double > &pressures) -> void
Set the temperature and pressure interpolation points for calculation of water density and water diel...
Definition: AqueousMixture.cpp:90
A type that describes temperature in units of K.
Definition: ThermoScalar.hpp:177
ThermoScalar epsilon
The relative dielectric constant of water (no units)
Definition: AqueousMixture.hpp:34
auto molalities(VectorConstRef n) const -> ChemicalVector
Calculate the molalities of the aqueous species and its molar derivatives.
Definition: AqueousMixture.cpp:207
auto effectiveIonicStrength(const ChemicalVector &m) const -> ChemicalScalar
Calculate the effective ionic strength of the aqueous mixture and its molar derivatives.
Definition: AqueousMixture.cpp:258
ChemicalVector ms
The stoichiometric molalities of the ionic species and their partial derivatives (in units of mol/kg)
Definition: AqueousMixture.hpp:46
A type used to describe the state of a mixture.
Definition: GeneralMixture.hpp:37
ThermoScalar rho
The density of water (in units of kg/m3)
Definition: AqueousMixture.hpp:31
auto indicesNeutralSpecies() const -> const Indices &
Return the indices of the neutral aqueous species in the aqueous mixture.
Definition: AqueousMixture.cpp:106
auto indexChargedSpecies(std::string name) const -> Index
Return the local index of a charged species among the charged species in the aqueous mixture.
Definition: AqueousMixture.cpp:148
auto stoichiometricMolalities(const ChemicalVector &m) const -> ChemicalVector
Calculate the stoichiometric molalities of the ions and its molar derivatives.
Definition: AqueousMixture.cpp:233
auto indicesChargedSpecies() const -> const Indices &
Return the indices of the charged aqueous species in the aqueous mixture.
Definition: AqueousMixture.cpp:111
virtual ~AqueousMixture()
Destroy the AqueousMixture instance.
Definition: AqueousMixture.cpp:77
auto namesAnions() const -> std::vector< std::string >
Return the names of the anions in the aqueous mixture.
Definition: AqueousMixture.cpp:187
ChemicalScalarBase< double, RowVector > ChemicalScalar
A type that represents a chemical property and its derivatives.
Definition: ChemicalScalar.hpp:35
auto namesNeutralSpecies() const -> std::vector< std::string >
Return the names of the neutral species in the aqueous mixture.
Definition: AqueousMixture.cpp:172
A type used to describe the state of an aqueous mixture.
Definition: AqueousMixture.hpp:29
std::vector< Index > Indices
Define a type that represents a collection of indices.
Definition: Index.hpp:29
auto numChargedSpecies() const -> unsigned
Return the number of charged aqueous species in the aqueous mixture.
Definition: AqueousMixture.cpp:101
ChemicalVectorBase< Vector, Vector, Vector, Matrix > ChemicalVector
A type that represents a vector of chemical properties and their derivatives.
Definition: ChemicalVector.hpp:39
auto namesCations() const -> std::vector< std::string >
Return the names of the cations in the aqueous mixture.
Definition: AqueousMixture.cpp:182
auto chargesAnions() const -> Vector
Return the charges of the anions in the aqueous mixture.
Definition: AqueousMixture.cpp:202
auto namesChargedSpecies() const -> std::vector< std::string >
Return the names of the charged species in the aqueous mixture.
Definition: AqueousMixture.cpp:177
auto numNeutralSpecies() const -> unsigned
Return the number of neutral aqueous species in the aqueous mixture.
Definition: AqueousMixture.cpp:96
Eigen::Ref< const Eigen::MatrixXd > MatrixConstRef
Alias to Eigen type Ref<const MatrixXd>.
Definition: Matrix.hpp:44
auto indexWater() const -> Index
Return the index of the water species ..
Definition: AqueousMixture.cpp:126
AqueousMixture()
Construct a default AqueousMixture instance.
Definition: AqueousMixture.cpp:58
auto chargesCations() const -> Vector
Return the charges of the cations in the aqueous mixture.
Definition: AqueousMixture.cpp:197
auto chargesChargedSpecies() const -> Vector
Return the charges of the charged species in the aqueous mixture.
Definition: AqueousMixture.cpp:192
ChemicalVector m
The molalities of the aqueous species and their partial derivatives (in units of mol/kg)
Definition: AqueousMixture.hpp:43
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
< Alias to Eigen type Ref<VectorXd>.
Definition: Matrix.hpp:31
auto stoichiometricIonicStrength(const ChemicalVector &ms) const -> ChemicalScalar
Calculate the stoichiometric ionic strength of the aqueous mixture and its molar derivatives.
Definition: AqueousMixture.cpp:271
auto indexNeutralSpecies(std::string name) const -> Index
Return the local index of a neutral species among the neutral species in the aqueous mixture.
Definition: AqueousMixture.cpp:136