3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
sodiumion.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_MATERIAL_COMPONENTS_NA_ION_HH
25#define DUMUX_MATERIAL_COMPONENTS_NA_ION_HH
26
29
30namespace Dumux {
31namespace Components {
32
37template <class Scalar>
39: public Components::Base<Scalar, SodiumIon<Scalar> >
40, public Components::Ion<Scalar, SodiumIon<Scalar> >
41{
42public:
46 static std::string name()
47 { return "Na+"; }
48
53 { return 22.9898e-3; }
54
58 static constexpr int charge()
59 {
60 return +1;
61 }
62
63};
64
65} // end namespace Components
66} // end namespace Dumux
67
68
69#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
Interface for components that are ions.
Definition: ion.hh:40
A class for the Na+ (Sodium ion) component properties.
Definition: sodiumion.hh:41
static std::string name()
A human readable name for the Na+ ion.
Definition: sodiumion.hh:46
static Scalar molarMass()
The molar mass in of the Na+ ion.
Definition: sodiumion.hh:52
static constexpr int charge()
The charge of the Na+ ion.
Definition: sodiumion.hh:58
Base class for all components Components provide the thermodynamic relations for the liquid,...