GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/material/components/cao2h2.hh
Date: 2024-09-21 20:52:54
Exec Total Coverage
Lines: 0 6 0.0%
Functions: 0 3 0.0%
Branches: 0 0 -%

Line Branch Exec Source
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 //
7 /*!
8 * \file
9 * \ingroup Components
10 * \brief Material properties of pure Calciumhydroxide \f$CaO2H2\f$.
11 */
12 #ifndef DUMUX_CAO2H2_HH
13 #define DUMUX_CAO2H2_HH
14
15 #include <dumux/common/exceptions.hh>
16
17 #include <cmath>
18 #include <iostream>
19
20 #include <dumux/material/components/base.hh>
21 #include <dumux/material/components/solid.hh>
22
23 namespace Dumux {
24 namespace Components {
25
26 /*!
27 * \ingroup Components
28 * \brief A class for the CaO2H2 properties
29 */
30 template <class Scalar>
31 class CaO2H2
32 : public Components::Base<Scalar, CaO2H2<Scalar> >
33 , public Components::Solid<Scalar, CaO2H2<Scalar> >
34 {
35 public:
36 /*!
37 * \brief A human readable name for the CaO2H2.
38 */
39 static const char *name()
40 {
41 return "CaO2H2";
42 }
43
44 /*!
45 * \brief The molar mass of CaOH2 in \f$\mathrm{[kg/mol]}\f$.
46 */
47 static constexpr Scalar molarMass()
48 {
49 return 74.093e-3 ;
50 }
51
52 /*!
53 * \brief The mass density \f$\mathrm{[kg/m^3]}\f$ of CaO2H2.
54 */
55 static Scalar solidDensity(Scalar temperature)
56 {
57 return 2200.0; //at 293 K ; Shao et al. (2013)
58 }
59
60 /*!
61 * \brief The molar density \f$\mathrm{[mol/m^3]}\f$ of CaO2H2.
62 * Molar density at 293 K. Literature value from Shao et al. (2013).
63 */
64 static Scalar solidMolarDensity(Scalar temperature)
65 {
66 return solidDensity(temperature)/molarMass();
67 }
68
69 /*!
70 * \brief The specific heat capacity \f$\mathrm{[J/kgK]}\f$ of CaO2H2.
71 */
72 static Scalar solidHeatCapacity(Scalar temperature)
73 {
74 return 1530; //Nagel et al. (2014) : 1530 J/kgK
75 }
76
77 /*!
78 * \brief The thermal conductivity \f$\mathrm{[W/(m K)]}\f$ of the porous material.
79 */
80 static Scalar solidThermalConductivity(Scalar temperature)
81 {
82 return 0.4; //Nagel et al. (2014)
83 }
84 };
85
86 } // end namespace Components
87
88 } // end namespace Dumux
89
90 #endif
91