GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/porousmediumflow/mineralization/volumevariables.hh
Date: 2024-05-04 19:09:25
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 0 0 -%
Branches: 11 13 84.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-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 MineralizationModel
10 * \brief Contains the quantities which are constant within a sub-control volume
11 * of the finite volume grid in the two-phase, n-component mineralization model.
12 */
13
14 #ifndef DUMUX_MINERALIZATION_VOLUME_VARIABLES_HH
15 #define DUMUX_MINERALIZATION_VOLUME_VARIABLES_HH
16
17 namespace Dumux {
18
19 /*!
20 * \ingroup MineralizationModel
21 * \brief Contains the quantities which are are constant within a sub-control volume
22 * of the finite volume grid in an m-phase, n-component, mineralization model.
23 */
24 template <class Traits, class NonMineralizationVolVars>
25
3/5
✓ Branch 1 taken 1216 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 32928 times.
✓ Branch 4 taken 1216 times.
✗ Branch 5 not taken.
1568936 class MineralizationVolumeVariables : public NonMineralizationVolVars
26 {
27 using ParentType = NonMineralizationVolVars;
28 using Scalar = typename Traits::PrimaryVariables::value_type;
29 using ModelTraits = typename Traits::ModelTraits;
30 using SolidState = typename Traits::SolidState;
31
32 public:
33 using SolidSystem = typename Traits::SolidSystem;
34
35 /*!
36 * \brief Returns the volume fraction of the precipitate (solid phase)
37 * for the given phaseIdx.
38 *
39 * \param sCompIdx The index of the solid component
40 */
41 Scalar solidVolumeFraction(int sCompIdx) const
42
8/8
✓ Branch 2 taken 293728 times.
✓ Branch 3 taken 3766048 times.
✓ Branch 4 taken 293728 times.
✓ Branch 5 taken 4018428 times.
✓ Branch 6 taken 4022662 times.
✓ Branch 7 taken 4448494 times.
✓ Branch 8 taken 4022662 times.
✓ Branch 9 taken 4196114 times.
86597314 { return this->solidState_.volumeFraction(sCompIdx); }
43
44 /*!
45 * \brief Returns the density of the phase for all fluid and solid phases.
46 *
47 * \param sCompIdx The index of the solid component
48 */
49 Scalar solidComponentDensity(int sCompIdx) const
50 {
51 4333440 return SolidSystem::density(this->solidState_, sCompIdx);
52 }
53
54 /*!
55 * \brief Returns the density of the phase for all fluid and solid phases.
56 *
57 * \param sCompIdx The index of the solid component
58 */
59 Scalar solidComponentMolarDensity(int sCompIdx) const
60 {
61 30405581 return SolidSystem::molarDensity(this->solidState_, sCompIdx);
62 }
63
64 };
65 } // end namespace Dumux
66
67 #endif
68