3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
calciumion.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_CA_ION_HH
25#define DUMUX_CA_ION_HH
26
29
30namespace Dumux {
31namespace Components {
32
37template <class Scalar>
39: public Components::Base<Scalar, CalciumIon<Scalar> >
40, public Components::Ion<Scalar, CalciumIon<Scalar> >
41{
42public:
46 static std::string name()
47 { return "Ca2+"; }
48
52 static constexpr Scalar molarMass()
53 { return 40.078e-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 Ca2+ (Calcium ion) component properties.
Definition: calciumion.hh:41
static constexpr Scalar molarMass()
The molar mass in of the Ca ion.
Definition: calciumion.hh:52
static std::string name()
A human readable name for the Ca ion.
Definition: calciumion.hh:46
static constexpr int charge()
The charge balance of the Ca ion.
Definition: calciumion.hh:58
Interface for components that are ions.
Definition: ion.hh:40
Base class for all components Components provide the thermodynamic relations for the liquid,...