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 PNMSolidEnergyModel | ||
10 | * \brief Flux variables cache for PNM solid-energy model | ||
11 | */ | ||
12 | #ifndef DUMUX_PNM_SOLID_ENERGY_FLUXVARIABLESCACHE_HH | ||
13 | #define DUMUX_PNM_SOLID_ENERGY_FLUXVARIABLESCACHE_HH | ||
14 | |||
15 | namespace Dumux::PoreNetwork { | ||
16 | |||
17 | template<class Scalar> | ||
18 | class SolidEnergyFluxVariablesCache | ||
19 | { | ||
20 | public: | ||
21 | //! whether the cache needs an update when the solution changes | ||
22 | static bool constexpr isSolDependent = false; | ||
23 | |||
24 | template<class Problem, class Element, class FVElementGeometry, | ||
25 | class ElementVolumeVariables, class SubControlVolumeFace> | ||
26 | 73944 | void update(const Problem& problem, | |
27 | const Element& element, | ||
28 | const FVElementGeometry& fvGeometry, | ||
29 | const ElementVolumeVariables& elemVolVars, | ||
30 | const SubControlVolumeFace& scvf) | ||
31 | { | ||
32 | 73944 | grainContactArea_ = problem.spatialParams().throatCrossSectionalArea(element, elemVolVars); | |
33 | 73944 | throatLength_ = problem.spatialParams().throatLength(element, elemVolVars); | |
34 | 73944 | throatInscribedRadius_ = problem.spatialParams().throatInscribedRadius(element, elemVolVars); | |
35 | 73944 | } | |
36 | |||
37 | 145080 | Scalar grainContactArea() const | |
38 |
2/2✓ Branch 0 taken 1 times.
✓ Branch 1 taken 32759 times.
|
145080 | { return grainContactArea_; } |
39 | |||
40 | 133536 | Scalar throatLength() const | |
41 | 133536 | { return throatLength_; } | |
42 | |||
43 | 21216 | Scalar throatInscribedRadius() const | |
44 | 112320 | { return throatInscribedRadius_; } | |
45 | |||
46 | private: | ||
47 | Scalar grainContactArea_; | ||
48 | Scalar throatLength_; | ||
49 | Scalar throatInscribedRadius_; | ||
50 | }; | ||
51 | |||
52 | } // end namespace Dumux::PoreNetwork | ||
53 | |||
54 | #endif | ||
55 |