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 EmbeddedTests | ||
10 | * \brief Definition of the spatial parameters for the matrix and fracture problem. | ||
11 | */ | ||
12 | |||
13 | #ifndef DUMUX_FRACTURE_TEST_SPATIAL_PARAMS_HH | ||
14 | #define DUMUX_FRACTURE_TEST_SPATIAL_PARAMS_HH | ||
15 | |||
16 | #include <dumux/porousmediumflow/fvspatialparams1p.hh> | ||
17 | |||
18 | namespace Dumux { | ||
19 | |||
20 | /*! | ||
21 | * \ingroup EmbeddedTests | ||
22 | * \brief Definition of the spatial parameters for the matrix and fracture problem. | ||
23 | */ | ||
24 | template<class GridGeometry, class Scalar> | ||
25 |
2/12✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✓ Branch 8 taken 2 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 2 times.
✗ Branch 11 not taken.
|
4 | class MatrixFractureSpatialParams |
26 | : public FVPorousMediumFlowSpatialParamsOneP<GridGeometry, Scalar, MatrixFractureSpatialParams<GridGeometry, Scalar>> | ||
27 | { | ||
28 | using ThisType = MatrixFractureSpatialParams<GridGeometry, Scalar>; | ||
29 | using ParentType = FVPorousMediumFlowSpatialParamsOneP<GridGeometry, Scalar, ThisType>; | ||
30 | using GridView = typename GridGeometry::GridView; | ||
31 | using Element = typename GridView::template Codim<0>::Entity; | ||
32 | using SubControlVolume = typename GridGeometry::SubControlVolume; | ||
33 | |||
34 | public: | ||
35 | // export permeability type | ||
36 | using PermeabilityType = Scalar; | ||
37 | |||
38 | 8 | MatrixFractureSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry, | |
39 | const std::string& paramGroup = "") | ||
40 |
2/6✓ Branch 2 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 4 times.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
|
8 | : ParentType(gridGeometry) |
41 | { | ||
42 |
1/2✓ Branch 1 taken 4 times.
✗ Branch 2 not taken.
|
8 | permeability_ = getParamFromGroup<Scalar>(paramGroup, "SpatialParams.Permeability"); |
43 |
1/2✓ Branch 1 taken 4 times.
✗ Branch 2 not taken.
|
8 | porosity_ = getParamFromGroup<Scalar>(paramGroup, "SpatialParams.Porosity", 1.0); |
44 |
1/4✓ Branch 1 taken 4 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
|
8 | extrusion_ = getParamFromGroup<Scalar>(paramGroup, "SpatialParams.Aperture", 1.0); |
45 | 8 | } | |
46 | |||
47 | /*! | ||
48 | * \brief Defines the intrinsic permeability \f$\mathrm{[m^2]}\f$. | ||
49 | * | ||
50 | * \param element The element | ||
51 | * \param scv The sub control volume | ||
52 | * \param elemSol The element solution vector | ||
53 | */ | ||
54 | template<class ElementSolution> | ||
55 | ✗ | PermeabilityType permeability(const Element& element, | |
56 | const SubControlVolume& scv, | ||
57 | const ElementSolution& elemSol) const | ||
58 | { | ||
59 | ✗ | return permeability_; | |
60 | } | ||
61 | |||
62 | /*! | ||
63 | * \brief Defines the porosity \f$\mathrm{[-]}\f$. | ||
64 | * | ||
65 | * \param element The current finite element | ||
66 | * \param scv The sub control volume | ||
67 | * \param elemSol The current element solution vector | ||
68 | */ | ||
69 | template<class ElementSolution> | ||
70 | ✗ | Scalar porosity(const Element& element, | |
71 | const SubControlVolume& scv, | ||
72 | const ElementSolution& elemSol) const | ||
73 | { | ||
74 | ✗ | return porosity_; | |
75 | } | ||
76 | |||
77 | /*! | ||
78 | * \brief Returns how much the domain is extruded at a given sub-control volume. | ||
79 | * | ||
80 | * The extrusion factor here extrudes the 1d line to a circular tube with | ||
81 | * cross-section area pi*r^2. | ||
82 | */ | ||
83 | template<class ElementSolution> | ||
84 | ✗ | Scalar extrusionFactor(const Element &element, | |
85 | const SubControlVolume &scv, | ||
86 | const ElementSolution& elemSol) const | ||
87 | ✗ | { return extrusion_; } | |
88 | |||
89 | private: | ||
90 | Scalar permeability_; | ||
91 | Scalar porosity_; | ||
92 | Scalar extrusion_; | ||
93 | }; | ||
94 | |||
95 | } // end namespace Dumux | ||
96 | |||
97 | #endif | ||
98 |