GCC Code Coverage Report


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