nacl.hh 3.1 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
 *   See the file COPYING for full copying permissions.                      *
 *                                                                           *
 *   This program is free software: you can redistribute it and/or modify    *
 *   it under the terms of the GNU General Public License as published by    *
 *   the Free Software Foundation, either version 2 of the License, or       *
 *   (at your option) any later version.                                     *
 *                                                                           *
 *   This program is distributed in the hope that it will be useful,         *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of          *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the            *
 *   GNU General Public License for more details.                            *
 *                                                                           *
 *   You should have received a copy of the GNU General Public License       *
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.   *
 *****************************************************************************/
19
20
/*!
 * \file
21
22
 * \ingroup Components
 * \brief Material properties of pure salt \f$NaCl\f$.
23
24
25
26
27
28
29
30
31
 */
#ifndef DUMUX_NACL_HH
#define DUMUX_NACL_HH

#include <dumux/common/exceptions.hh>

#include <cmath>
#include <iostream>

32
33
34
#include <dumux/material/components/base.hh>
#include <dumux/material/components/liquid.hh>
#include <dumux/material/components/solid.hh>
35
36
37

namespace Dumux {
namespace Components {
38
39

/*!
40
 * \ingroup Components
41
42
43
 * \brief A class for the NaCl properties
 */
template <class Scalar>
44
45
46
class NaCl
: public Components::Base<Scalar, NaCl<Scalar> >
, public Components::Solid<Scalar, NaCl<Scalar> >
47
48
49
50
51
{
public:
    /*!
     * \brief A human readable name for the NaCl.
     */
52
    static std::string name()
53
54
    {
        return "NaCl";
55
56
57
    }

    /*!
58
     * \brief The molar mass of NaCl in \f$\mathrm{[kg/mol]}\f$.
59
     */
60
    static constexpr Scalar molarMass()
61
62
    {
        return 58.4428e-3 ;
63
    }
64

Kilian Weishaupt's avatar
[brine]    
Kilian Weishaupt committed
65
66
67
    /*!
     * \brief The mass density \f$\mathrm{[kg/m^3]}\f$ of NaCl.
     */
68
    static Scalar solidDensity(Scalar temperature)
69
    {
70
        return 2165.0;
71
    }
Kilian Weishaupt's avatar
[brine]    
Kilian Weishaupt committed
72

73
74
75
76
77
78
79
80
    /*!
     * \brief The mass density \f$\mathrm{[kg/m^3]}\f$ of NaCl.
     */
    static Scalar solidMolarDensity(Scalar temperature)
    {
        return solidDensity(temperature)/molarMass();
    }

Kilian Weishaupt's avatar
[brine]    
Kilian Weishaupt committed
81
82
83
    /*!
     * \brief The specific heat capacity \f$\mathrm{[J/molK]}\f$ of NaCl.
     */
84
    static Scalar solidHeatCapacity(Scalar temperature)
Kilian Weishaupt's avatar
[brine]    
Kilian Weishaupt committed
85
86
87
    {
        return 50.50;
    }
88
89
90
91
92
93
94
95
96

    /*!
     * \brief Thermal conductivity of the component \f$\mathrm{[W/(m*K)]}\f$ as a solid.
     * \param temperature temperature of component in \f$\mathrm{[K]}\f$
     */
    static Scalar solidThermalConductivity(Scalar temperature)
    {
        return 6.49;
    }
97
98
};

99
} // end namespace Components
100

101
102
103
} // end namespace Dumux

#endif