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 BoundaryTests | ||
10 | * \brief Definition of the spatial parameters for the pore network coupled channel problem. | ||
11 | */ | ||
12 | |||
13 | #ifndef DUMUX_CHANNEL_SPATIAL_PARAMS_HH | ||
14 | #define DUMUX_CHANNEL_SPATIAL_PARAMS_HH | ||
15 | |||
16 | #include <dumux/freeflow/spatialparams.hh> | ||
17 | |||
18 | namespace Dumux { | ||
19 | |||
20 | /*! | ||
21 | * \ingroup BoundaryTests | ||
22 | * \brief Definition of the spatial parameters for the pseudo 3D channel freeflow problems. | ||
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 ChannelSpatialParams |
26 | : public FreeFlowSpatialParams<GridGeometry, Scalar, ChannelSpatialParams<GridGeometry, Scalar>> | ||
27 | { | ||
28 | using ParentType = FreeFlowSpatialParams<GridGeometry, Scalar, ChannelSpatialParams<GridGeometry, Scalar>>; | ||
29 | using GridView = typename GridGeometry::GridView; | ||
30 | using FVElementGeometry = typename GridGeometry::LocalView; | ||
31 | using SubControlVolume = typename FVElementGeometry::SubControlVolume; | ||
32 | using Element = typename GridView::template Codim<0>::Entity; | ||
33 | using GlobalPosition = typename Element::Geometry::GlobalCoordinate; | ||
34 | |||
35 | public: | ||
36 | 8 | ChannelSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry) | |
37 |
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) |
38 | { | ||
39 |
1/4✓ Branch 1 taken 4 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
|
8 | singleThroatTest_ = getParam<bool>("Problem.SingleThroatTest", true); |
40 | 8 | enablePseudoThreeDWallFriction_ = !singleThroatTest_; | |
41 |
3/4✓ Branch 0 taken 2 times.
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
8 | extrusionFactor_ = enablePseudoThreeDWallFriction_ ? getParam<Scalar>("FreeFlow.Problem.Height") : 1.0; |
42 | 8 | } | |
43 | |||
44 | /*! | ||
45 | * \brief Return how much the domain is extruded at a given sub-control volume. | ||
46 | */ | ||
47 | template<class ElementSolution> | ||
48 | ✗ | Scalar extrusionFactor(const Element& element, | |
49 | const SubControlVolume& scv, | ||
50 | const ElementSolution& elemSol) const | ||
51 | ✗ | { return extrusionFactor_; } | |
52 | |||
53 | /*! | ||
54 | * \brief Return how much the domain is extruded at a given position. | ||
55 | */ | ||
56 | Scalar extrusionFactorAtPos(const GlobalPosition& globalPos) const | ||
57 | { return extrusionFactor_; } | ||
58 | |||
59 | private: | ||
60 | bool singleThroatTest_; | ||
61 | bool enablePseudoThreeDWallFriction_; | ||
62 | Scalar extrusionFactor_; | ||
63 | }; | ||
64 | |||
65 | } // end namespace Dumux | ||
66 | |||
67 | #endif | ||
68 |