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 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 |
2/4✓ Branch 3 taken 32928 times.
✗ Branch 4 not taken.
✓ Branch 1 taken 1216 times.
✗ Branch 2 not taken.
|
1567552 | 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 | 47258159 | Scalar solidVolumeFraction(int sCompIdx) const | |
42 |
4/4✓ Branch 1 taken 293728 times.
✓ Branch 2 taken 3766048 times.
✓ Branch 3 taken 4274862 times.
✓ Branch 4 taken 4196114 times.
|
43297841 | { 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 | 8735304 | 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 | 30404945 | Scalar solidComponentMolarDensity(int sCompIdx) const | |
60 | { | ||
61 | 30404945 | return SolidSystem::molarDensity(this->solidState_, sCompIdx); | |
62 | } | ||
63 | |||
64 | }; | ||
65 | } // end namespace Dumux | ||
66 | |||
67 | #endif | ||
68 |