3.3.0
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
carbonateion.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
24#ifndef DUMUX_CO3_ION_HH
25#define DUMUX_CO3_ION_HH
26
29
30namespace Dumux {
31namespace Components {
32
37template <class Scalar>
39: public Components::Base<Scalar, CarbonateIon<Scalar> >
40, public Components::Ion<Scalar, CarbonateIon<Scalar> >
41{
42public:
46 static std::string name()
47 { return "CO3-"; }
48
52 static constexpr Scalar molarMass()
53 { return 60.0092e-3; } // kg/mol
54
58 static constexpr int charge()
59 { return -2; }
60
61};
62
63} // end namespace Components
64} // end namespace Dumux
65
66#endif
Interface for components that are ions.
Definition: adapt.hh:29
Base class for all components Components provide the thermodynamic relations for the liquid,...
Definition: components/base.hh:59
Scalar Scalar
export the scalar type used by the component
Definition: components/base.hh:63
A class for the CO3 fluid properties.
Definition: carbonateion.hh:41
static std::string name()
A human readable name for the CO3 ion.
Definition: carbonateion.hh:46
static constexpr int charge()
The charge balance of the CO3 ion.
Definition: carbonateion.hh:58
static constexpr Scalar molarMass()
The molar mass in of the CO3 ion.
Definition: carbonateion.hh:52
Interface for components that are ions.
Definition: ion.hh:40
Base class for all components Components provide the thermodynamic relations for the liquid,...