Reaktoro
A unified framework for modeling chemically reactive systems
MineralMixture.hpp
1 // Reaktoro is a unified framework for modeling chemically reactive systems.
2 //
3 // Copyright (C) 2014-2018 Allan Leal
4 //
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License, or (at your option) any later version.
9 //
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library. If not, see <http://www.gnu.org/licenses/>.
17 
18 #pragma once
19 
20 // Reaktoro includes
21 #include <Reaktoro/Thermodynamics/Species/MineralSpecies.hpp>
22 #include <Reaktoro/Thermodynamics/Mixtures/GeneralMixture.hpp>
23 
24 namespace Reaktoro {
25 
28 {};
29 
37 class MineralMixture : public GeneralMixture<MineralSpecies>
38 {
39 public:
42 
45  explicit MineralMixture(const std::vector<MineralSpecies>& species);
46 
49  explicit MineralMixture(const MineralSpecies& species);
50 
52  virtual ~MineralMixture();
53 
59 };
60 
61 } // namespace Reaktoro
Provide a base of implementation for the mixture classes.
Definition: GeneralMixture.hpp:58
A type that describes pressure in units of Pa.
Definition: ThermoScalar.hpp:194
A type to describe the attributes of a mineral species.
Definition: MineralSpecies.hpp:28
auto species() const -> const std::vector< MineralSpecies > &
Return the species that compose the mixture.
Definition: GeneralMixture.hpp:155
Provide a computational representation of a mineral mixture.
Definition: MineralMixture.hpp:38
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
auto state(Temperature T, Pressure P, VectorConstRef n) const -> MineralMixtureState
Calculate the state of the mineral mixture.
Definition: MineralMixture.cpp:37
A type that describes temperature in units of K.
Definition: ThermoScalar.hpp:177
A type used to describe the state of a mixture.
Definition: GeneralMixture.hpp:37
A type used to describe the state of a mineral mixture.
Definition: MineralMixture.hpp:28
virtual ~MineralMixture()
Destroy the MineralMixture instance.
Definition: MineralMixture.cpp:34
MineralMixture()
Construct a default MineralMixture instance.
Definition: MineralMixture.cpp:22
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
< Alias to Eigen type Ref<VectorXd>.
Definition: Matrix.hpp:31