GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: dumux/dumux/material/components/cao.hh
Date: 2025-04-12 19:19:20
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 0 0 -%
Branches: 7 11 63.6%

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-FileCopyrightText: 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 Calcium-Oxide \f$CaO\f$.
11 */
12 #ifndef DUMUX_CAO_HH
13 #define DUMUX_CAO_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::Components {
24
25 /*!
26 * \ingroup Components
27 * \brief A class for the CaO properties
28 */
29 template <class Scalar>
30 class CaO
31 : public Components::Base<Scalar, CaO<Scalar> >
32 , public Components::Solid<Scalar, CaO<Scalar> >
33 {
34 public:
35 /*!
36 * \brief A human readable name for the CaO.
37 */
38
7/11
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 1 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 1 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 1 times.
✗ Branch 12 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 4 taken 1 times.
✓ Branch 7 taken 1 times.
11 static const char *name()
39 {
40 return "CaO";
41 }
42
43 /*!
44 * \brief The molar mass of CaOH2 in \f$\mathrm{[kg/mol]}\f$.
45 */
46 static constexpr Scalar molarMass()
47 {
48 return 56.0774e-3;
49 }
50
51 /*!
52 * \brief The mass density \f$\mathrm{[kg/m^3]}\f$ of CaO.
53 */
54 static Scalar solidDensity(Scalar temperature)
55 {
56 return 3370;
57 }
58
59 /*!
60 * \brief The molar density \f$\mathrm{[mol/m^3]}\f$ of CaO.
61 * Molar density at 293 K. Literature value from Shao et al. (2013).
62 */
63 static Scalar solidMolarDensity(Scalar temperature)
64 {
65 return solidDensity(temperature)/molarMass();
66 }
67
68 /*!
69 * \brief The specific heat capacity \f$\mathrm{[J/kg K]}\f$ of CaO.
70 */
71 static Scalar solidHeatCapacity(Scalar temperature)
72 {
73 return 934; //Nagel et al. (2014) : 934 J/kgK
74 }
75
76 /*!
77 * \brief The thermal conductivity \f$\mathrm{[W/(m K)]}\f$ of the porous material.
78 */
79 static Scalar solidThermalConductivity(Scalar temperature)
80 {
81 return 0.4; //Nagel et al. (2014)
82 }
83 };
84
85 } // end namespace Dumux::Components
86
87 #endif
88