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-2015 Allan Leal
4 //
5 // This program is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program 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
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program. 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 
58  auto state(double T, double P, const Vector& n) const -> MineralMixtureState;
59 };
60 
61 } // namespace Reaktoro
Provide a base of implementation for the mixture classes.
Definition: GeneralMixture.hpp:57
A type used to describe the state of a mixture.
Definition: GeneralMixture.hpp:36
Provide a computational representation of a mineral mixture.
Definition: MineralMixture.hpp:37
Temperature T
The temperature of the mixture (in units of K)
Definition: GeneralMixture.hpp:39
Pressure P
The pressure of the mixture (in units of Pa)
Definition: GeneralMixture.hpp:42
Eigen::VectorXd Vector
Define an alias to the vector type of the Eigen library.
Definition: Matrix.hpp:384
A type used to describe the state of a mineral mixture.
Definition: MineralMixture.hpp:27
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
A type to describe the attributes of a mineral species.
Definition: MineralSpecies.hpp:27