GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/material/components/calciumion.hh
Date: 2024-09-21 20:52:54
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 0 0 -%
Branches: 6 10 60.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 A class for the Ca2+ (Calcium ion) component properties
11 */
12 #ifndef DUMUX_CA_ION_HH
13 #define DUMUX_CA_ION_HH
14
15 #include <dumux/material/components/base.hh>
16 #include <dumux/material/components/ion.hh>
17
18 namespace Dumux {
19 namespace Components {
20
21 /*!
22 * \ingroup Components
23 * \brief A class for the Ca2+ (Calcium ion) component properties.
24 */
25 template <class Scalar>
26 class CalciumIon
27 : public Components::Base<Scalar, CalciumIon<Scalar> >
28 , public Components::Ion<Scalar, CalciumIon<Scalar> >
29 {
30 public:
31 /*!
32 * \brief A human readable name for the Ca ion.
33 */
34 static std::string name()
35
6/10
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 1 times.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 1 times.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
8 { return "Ca2+"; }
36
37 /*!
38 * \brief The molar mass in \f$\mathrm{[kg/mol]}\f$ of the Ca ion.
39 */
40 static constexpr Scalar molarMass()
41 { return 40.078e-3; } // kg/mol
42
43 /*!
44 * \brief The charge balance of the Ca ion.
45 */
46 static constexpr int charge()
47 { return +2; }
48
49 };
50
51 } // end namespace Components
52 } // end namespace Dumux
53
54 #endif
55