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 RichardsTests | ||
10 | * \brief Definition of the spatial parameters for the non-isothermal Richards problems. | ||
11 | */ | ||
12 | |||
13 | #ifndef DUMUX_RICHARDSNI_SPATIAL_PARAMS_HH | ||
14 | #define DUMUX_RICHARDSNI_SPATIAL_PARAMS_HH | ||
15 | |||
16 | #include <dumux/porousmediumflow/richards/model.hh> | ||
17 | #include <dumux/porousmediumflow/fvspatialparamsmp.hh> | ||
18 | #include <dumux/material/fluidmatrixinteractions/2p/vangenuchten.hh> | ||
19 | |||
20 | namespace Dumux { | ||
21 | |||
22 | template<class GridGeometry, class Scalar> | ||
23 |
1/6✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
✗ Branch 5 not taken.
|
6 | class RichardsNISpatialParams |
24 | : public FVPorousMediumFlowSpatialParamsMP<GridGeometry, Scalar, | ||
25 | RichardsNISpatialParams<GridGeometry, Scalar>> | ||
26 | { | ||
27 | using GridView = typename GridGeometry::GridView; | ||
28 | using FVElementGeometry = typename GridGeometry::LocalView; | ||
29 | using SubControlVolume = typename FVElementGeometry::SubControlVolume; | ||
30 | using Element = typename GridView::template Codim<0>::Entity; | ||
31 | using ParentType = FVPorousMediumFlowSpatialParamsMP<GridGeometry, Scalar, | ||
32 | RichardsNISpatialParams<GridGeometry, Scalar>>; | ||
33 | |||
34 | enum { dimWorld=GridView::dimensionworld }; | ||
35 | |||
36 | using GlobalPosition = typename Element::Geometry::GlobalCoordinate; | ||
37 | |||
38 | using PcKrSwCurve = FluidMatrix::VanGenuchtenDefault<Scalar>; | ||
39 | |||
40 | public: | ||
41 | // export permeability type | ||
42 | using PermeabilityType = Scalar; | ||
43 | |||
44 | 6 | RichardsNISpatialParams(std::shared_ptr<const GridGeometry> gridGeometry) | |
45 | : ParentType(gridGeometry) | ||
46 |
6/18✓ 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 taken 6 times.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
|
18 | , pcKrSwCurve_("SpatialParams") |
47 | { | ||
48 | 6 | permeability_ = 1e-10; | |
49 | 6 | porosity_ = 0.4; | |
50 | 6 | } | |
51 | |||
52 | /*! | ||
53 | * \brief Defines the intrinsic permeability \f$\mathrm{[m^2]}\f$. | ||
54 | * | ||
55 | * \param globalPos The global position where we evaluate | ||
56 | */ | ||
57 | ✗ | PermeabilityType permeabilityAtPos(const GlobalPosition& globalPos) const | |
58 | { | ||
59 | ✗ | return permeability_; | |
60 | } | ||
61 | |||
62 | /*! | ||
63 | * \brief Defines the porosity \f$\mathrm{[-]}\f$. | ||
64 | * | ||
65 | * \param globalPos The global position where we evaluate | ||
66 | */ | ||
67 | ✗ | Scalar porosityAtPos(const GlobalPosition& globalPos) const | |
68 | { | ||
69 | ✗ | return porosity_; | |
70 | } | ||
71 | |||
72 | /*! | ||
73 | * \brief Returns the fluid-matrix interaction law at a given location | ||
74 | * \param globalPos The global coordinates for the given location | ||
75 | */ | ||
76 | ✗ | auto fluidMatrixInteractionAtPos(const GlobalPosition& globalPos) const | |
77 | { | ||
78 |
4/4✓ Branch 2 taken 527381 times.
✓ Branch 3 taken 11488 times.
✓ Branch 4 taken 527381 times.
✓ Branch 5 taken 11488 times.
|
4302982 | return makeFluidMatrixInteraction(pcKrSwCurve_); |
79 | } | ||
80 | |||
81 | private: | ||
82 | |||
83 | const PcKrSwCurve pcKrSwCurve_; | ||
84 | Scalar permeability_; | ||
85 | Scalar porosity_; | ||
86 | }; | ||
87 | |||
88 | } // end namespace Dumux | ||
89 | |||
90 | #endif | ||
91 |