3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
nacl.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_NACL_HH
25#define DUMUX_NACL_HH
26
28
29#include <cmath>
30#include <iostream>
31
35
36namespace Dumux {
37namespace Components {
38
43template <class Scalar>
44class NaCl
45: public Components::Base<Scalar, NaCl<Scalar> >
46, public Components::Solid<Scalar, NaCl<Scalar> >
47{
48public:
52 static std::string name()
53 {
54 return "NaCl";
55 }
56
60 static constexpr Scalar molarMass()
61 {
62 return 58.4428e-3 ;
63 }
64
69 {
70 return 2165.0;
71 }
72
77 {
79 }
80
85 {
86 return 50.50/molarMass();
87 }
88
94 {
95 return 6.49;
96 }
97};
98
99} // end namespace Components
100
101} // end namespace Dumux
102
103#endif
Some exceptions thrown in DuMux
Interface for components that have a liquid state.
Interface for components that have a solid state.
Definition: adapt.hh:29
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:51
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 NaCl properties.
Definition: nacl.hh:47
static Scalar solidDensity(Scalar temperature)
The mass density of NaCl.
Definition: nacl.hh:68
static std::string name()
A human readable name for the NaCl.
Definition: nacl.hh:52
static Scalar solidMolarDensity(Scalar temperature)
The mass density of NaCl.
Definition: nacl.hh:76
static Scalar solidHeatCapacity(Scalar temperature)
The specific heat capacity of NaCl.
Definition: nacl.hh:84
static constexpr Scalar molarMass()
The molar mass of NaCl in .
Definition: nacl.hh:60
static Scalar solidThermalConductivity(Scalar temperature)
Thermal conductivity of the component as a solid.
Definition: nacl.hh:93
Interface for components that have a solid state.
Definition: solid.hh:41
Base class for all components Components provide the thermodynamic relations for the liquid,...