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 The spatial parameters class for the test problem using the 1p cc model. | ||
11 | */ | ||
12 | |||
13 | #ifndef DUMUX_1P_TEST_SPATIALPARAMS_HH | ||
14 | #define DUMUX_1P_TEST_SPATIALPARAMS_HH | ||
15 | |||
16 | #include <dumux/porousmediumflow/fvspatialparams1p.hh> | ||
17 | |||
18 | namespace Dumux { | ||
19 | |||
20 | /*! | ||
21 | * \ingroup BoundaryTests | ||
22 | * \brief The spatial parameters class for the test problem using the | ||
23 | * 1p cc model. | ||
24 | */ | ||
25 | template<class GridGeometry, class Scalar> | ||
26 |
1/6✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 2 times.
✗ Branch 5 not taken.
|
2 | class OnePSpatialParams |
27 | : public FVPorousMediumFlowSpatialParamsOneP<GridGeometry, Scalar, | ||
28 | OnePSpatialParams<GridGeometry, Scalar>> | ||
29 | { | ||
30 | using GridView = typename GridGeometry::GridView; | ||
31 | using ParentType = FVPorousMediumFlowSpatialParamsOneP< | ||
32 | GridGeometry, Scalar, OnePSpatialParams<GridGeometry, Scalar> | ||
33 | >; | ||
34 | |||
35 | using Element = typename GridView::template Codim<0>::Entity; | ||
36 | using GlobalPosition = typename Element::Geometry::GlobalCoordinate; | ||
37 | |||
38 | public: | ||
39 | // export permeability type | ||
40 | using PermeabilityType = Scalar; | ||
41 | |||
42 | 2 | OnePSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry) | |
43 |
2/8✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 2 times.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
|
2 | : ParentType(gridGeometry) |
44 | { | ||
45 |
1/2✓ Branch 1 taken 2 times.
✗ Branch 2 not taken.
|
2 | permeability_ = getParam<Scalar>("Darcy.SpatialParams.Permeability"); |
46 |
1/2✓ Branch 1 taken 2 times.
✗ Branch 2 not taken.
|
2 | alphaBJ_ = getParam<Scalar>("Darcy.SpatialParams.AlphaBeaversJoseph"); |
47 | 2 | } | |
48 | |||
49 | /*! | ||
50 | * \brief Function for defining the (intrinsic) permeability \f$[m^2]\f$. | ||
51 | * | ||
52 | * \param globalPos The global position | ||
53 | * \return the intrinsic permeability | ||
54 | */ | ||
55 | ✗ | PermeabilityType permeabilityAtPos(const GlobalPosition& globalPos) const | |
56 | ✗ | { return permeability_; } | |
57 | |||
58 | /*! \brief Defines the porosity in [-]. | ||
59 | * | ||
60 | * \param globalPos The global position | ||
61 | */ | ||
62 | ✗ | Scalar porosityAtPos(const GlobalPosition& globalPos) const | |
63 | ✗ | { return 0.4; } | |
64 | |||
65 | /*! \brief Defines the Beavers-Joseph coefficient in [-]. | ||
66 | * | ||
67 | * \param globalPos The global position | ||
68 | */ | ||
69 | ✗ | Scalar beaversJosephCoeffAtPos(const GlobalPosition& globalPos) const | |
70 | ✗ | { return alphaBJ_; } | |
71 | |||
72 | |||
73 | private: | ||
74 | Scalar permeability_; | ||
75 | Scalar alphaBJ_; | ||
76 | }; | ||
77 | |||
78 | } // end namespace Dumux | ||
79 | |||
80 | #endif | ||
81 |