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 FacetTests | ||
10 | * \brief The spatial parameters of the single-phase problem | ||
11 | * within the tracer facet coupling test. | ||
12 | */ | ||
13 | |||
14 | #ifndef DUMUX_TEST_TPFAFACETCOUPLING_TRACER_ONEP_SPATIALPARAMS_HH | ||
15 | #define DUMUX_TEST_TPFAFACETCOUPLING_TRACER_ONEP_SPATIALPARAMS_HH | ||
16 | |||
17 | #include <dumux/porousmediumflow/fvspatialparams1p.hh> | ||
18 | |||
19 | namespace Dumux { | ||
20 | |||
21 | /*! | ||
22 | * \ingroup FacetTests | ||
23 | * \brief The spatial parameters of the single-phase problem | ||
24 | * within the tracer facet coupling test. | ||
25 | */ | ||
26 | template< class GridGeometry, class Scalar > | ||
27 |
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 3 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 3 times.
✗ Branch 11 not taken.
|
6 | class OnePSpatialParams |
28 | : public FVPorousMediumFlowSpatialParamsOneP< GridGeometry, Scalar, OnePSpatialParams<GridGeometry, Scalar> > | ||
29 | { | ||
30 | using ThisType = OnePSpatialParams< GridGeometry, Scalar >; | ||
31 | using ParentType = FVPorousMediumFlowSpatialParamsOneP< GridGeometry, Scalar, ThisType >; | ||
32 | |||
33 | using GridView = typename GridGeometry::GridView; | ||
34 | using Element = typename GridView::template Codim<0>::Entity; | ||
35 | using GlobalPosition = typename Element::Geometry::GlobalCoordinate; | ||
36 | |||
37 | public: | ||
38 | //! Export the type used for permeabilities | ||
39 | using PermeabilityType = Scalar; | ||
40 | |||
41 | 12 | OnePSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry, const std::string& paramGroup = "") | |
42 | : ParentType(gridGeometry) | ||
43 | 12 | , permeability_(getParamFromGroup<Scalar>(paramGroup, "SpatialParams.Permeability")) | |
44 | 12 | , porosity_(getParamFromGroup<Scalar>(paramGroup, "SpatialParams.Porosity")) | |
45 |
5/14✓ Branch 2 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 6 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 6 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 6 times.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✗ Branch 16 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
|
24 | , extrusion_(getParamFromGroup<Scalar>(paramGroup, "SpatialParams.Aperture", 1.0)) |
46 | 12 | {} | |
47 | |||
48 | //! Function for defining the (intrinsic) permeability \f$[m^2]\f$. | ||
49 | ✗ | PermeabilityType permeabilityAtPos(const GlobalPosition& globalPos) const | |
50 | ✗ | { return permeability_; } | |
51 | |||
52 | //! Returns the porosity | ||
53 | ✗ | Scalar porosityAtPos(const GlobalPosition& globalPos) const | |
54 | ✗ | { return porosity_; } | |
55 | |||
56 | //! Returns the extrusion factor | ||
57 | ✗ | Scalar extrusionFactorAtPos(const GlobalPosition& globalPos) const | |
58 | ✗ | { return extrusion_; } | |
59 | |||
60 | private: | ||
61 | PermeabilityType permeability_; | ||
62 | Scalar porosity_; | ||
63 | Scalar extrusion_; | ||
64 | }; | ||
65 | |||
66 | } // end namespace Dumux | ||
67 | |||
68 | #endif | ||
69 |