version 3.8
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// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12#ifndef DUMUX_NACL_HH
13#define DUMUX_NACL_HH
14
16
17#include <cmath>
18#include <iostream>
19
23
24namespace Dumux {
25namespace Components {
26
31template <class Scalar>
32class NaCl
33: public Components::Base<Scalar, NaCl<Scalar> >
34, public Components::Solid<Scalar, NaCl<Scalar> >
35{
36public:
40 static std::string name()
41 {
42 return "NaCl";
43 }
44
48 static constexpr Scalar molarMass()
49 {
50 return 58.4428e-3 ;
51 }
52
57 {
58 return 2165.0;
59 }
60
65 {
67 }
68
73 {
74 return 50.50/molarMass();
75 }
76
82 {
83 return 6.49;
84 }
85};
86
87} // end namespace Components
88
89} // end namespace Dumux
90
91#endif
Base class for all components Components provide the thermodynamic relations for the liquid,...
Definition: components/base.hh:47
Scalar Scalar
export the scalar type used by the component
Definition: components/base.hh:51
A class for the NaCl properties.
Definition: nacl.hh:35
static Scalar solidDensity(Scalar temperature)
The mass density of NaCl.
Definition: nacl.hh:56
static std::string name()
A human readable name for the NaCl.
Definition: nacl.hh:40
static Scalar solidMolarDensity(Scalar temperature)
The mass density of NaCl.
Definition: nacl.hh:64
static Scalar solidHeatCapacity(Scalar temperature)
The specific heat capacity of NaCl.
Definition: nacl.hh:72
static constexpr Scalar molarMass()
The molar mass of NaCl in .
Definition: nacl.hh:48
static Scalar solidThermalConductivity(Scalar temperature)
Thermal conductivity of the component as a solid.
Definition: nacl.hh:81
Interface for components that have a solid state.
Definition: solid.hh:29
Base class for all components Components provide the thermodynamic relations for the liquid,...
Some exceptions thrown in DuMux
Interface for components that have a liquid state.
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:39
Definition: adapt.hh:17
Interface for components that have a solid state.