GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: dumux/dumux/material/components/carbonateion.hh
Date: 2025-04-12 19:19:20
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 0 0 -%
Branches: 4 7 57.1%

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 A class for the CO3 ion properties.
11 */
12 #ifndef DUMUX_CO3_ION_HH
13 #define DUMUX_CO3_ION_HH
14
15 #include <dumux/material/components/base.hh>
16 #include <dumux/material/components/ion.hh>
17
18 namespace Dumux::Components {
19
20 /*!
21 * \ingroup Components
22 * \brief A class for the CO3 fluid properties.
23 */
24 template <class Scalar>
25 class CarbonateIon
26 : public Components::Base<Scalar, CarbonateIon<Scalar> >
27 , public Components::Ion<Scalar, CarbonateIon<Scalar> >
28 {
29 public:
30 /*!
31 * \brief A human readable name for the CO3 ion.
32 */
33
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
2 static std::string name()
34
3/5
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✗ Branch 3 not taken.
2 { return "CO3-"; }
35
36 /*!
37 * \brief The molar mass in \f$\mathrm{[kg/mol]}\f$ of the CO3 ion.
38 */
39 static constexpr Scalar molarMass()
40 { return 60.0092e-3; } // kg/mol
41
42 /*!
43 * \brief The charge balance of the CO3 ion.
44 */
45 static constexpr int charge()
46 { return -2; }
47
48 };
49
50 } // end namespace Dumux::Components
51
52 #endif
53