GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/test/porousmediumflow/1p/fracture2d3d/spatialparams.hh
Date: 2024-05-04 19:09:25
Exec Total Coverage
Lines: 4 8 50.0%
Functions: 3 9 33.3%
Branches: 3 12 25.0%

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 OnePTests
10 * \brief The spatial parameters for the LensProblem which uses the
11 * two-phase fully implicit model
12 */
13
14 #ifndef DUMUX_ONEP_FRACTURE_TEST_SPATIALPARAMS_HH
15 #define DUMUX_ONEP_FRACTURE_TEST_SPATIALPARAMS_HH
16
17 #include <dumux/porousmediumflow/properties.hh>
18 #include <dumux/porousmediumflow/fvspatialparams1p.hh>
19
20 namespace Dumux {
21
22 /*!
23 * \ingroup OnePTests
24 * \brief The spatial parameters for the LensProblem which uses the
25 * two-phase fully implicit model.
26 */
27 template<class GridGeometry, class Scalar>
28
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
3 class FractureSpatialParams
29 : public FVPorousMediumFlowSpatialParamsOneP<GridGeometry, Scalar,
30 FractureSpatialParams<GridGeometry, Scalar>>
31 {
32 using GridView = typename GridGeometry::GridView;
33
34 using ThisType = FractureSpatialParams<GridGeometry, Scalar>;
35 using ParentType = FVPorousMediumFlowSpatialParamsOneP<GridGeometry, Scalar, ThisType>;
36
37 using Element = typename GridView::template Codim<0>::Entity;
38 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
39
40 public:
41 // export permeability type
42 using PermeabilityType = Scalar;
43
44 3 FractureSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
45
2/6
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
3 : ParentType(gridGeometry)
46 3 {}
47
48 /*!
49 * \brief Returns the scalar intrinsic permeability \f$[m^2]\f$.
50 *
51 * \param globalPos The global position
52 */
53 Scalar permeabilityAtPos (const GlobalPosition& globalPos) const
54 { return 1e-12; }
55
56 /*!
57 * \brief Returns the porosity \f$[-]\f$.
58 *
59 * \param globalPos The global position
60 */
61 Scalar porosityAtPos(const GlobalPosition& globalPos) const
62 { return 0.4; }
63 };
64
65 } // end namespace Dumux
66
67 #endif
68