GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/test/porousmediumflow/2p/rotationsymmetry/spatialparams.hh
Date: 2024-05-04 19:09:25
Exec Total Coverage
Lines: 5 12 41.7%
Functions: 1 5 20.0%
Branches: 7 24 29.2%

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 * \brief The spatial params 2p rotational symmetry test
10 */
11 #ifndef DUMUX_TEST_TWOP_ROTATIONALSYMMETRY_SPATIAL_PARAMS_HH
12 #define DUMUX_TEST_TWOP_ROTATIONALSYMMETRY_SPATIAL_PARAMS_HH
13
14 #include <dumux/porousmediumflow/fvspatialparamsmp.hh>
15 #include <dumux/material/fluidmatrixinteractions/2p/brookscorey.hh>
16
17 namespace Dumux {
18
19 template<class GridGeometry, class Scalar>
20
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
1 class TwoPRotationalSymmetrySpatialParams
21 : public FVPorousMediumFlowSpatialParamsMP<GridGeometry, Scalar, TwoPRotationalSymmetrySpatialParams<GridGeometry, Scalar>>
22 {
23 using ThisType = TwoPRotationalSymmetrySpatialParams<GridGeometry, Scalar>;
24 using ParentType = FVPorousMediumFlowSpatialParamsMP<GridGeometry, Scalar, ThisType>;
25
26 using Element = typename GridGeometry::GridView::template Codim<0>::Entity;
27 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
28 using PcKrSwCurve = FluidMatrix::BrooksCoreyDefault<Scalar>;
29 public:
30 using PermeabilityType = Scalar;
31
32 1 TwoPRotationalSymmetrySpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
33 : ParentType(gridGeometry)
34
6/18
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 1 times.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✓ Branch 16 taken 1 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.
3 ,pcKrSwCurve_("SpatialParams")
35 1 {}
36
37 PermeabilityType permeabilityAtPos(const GlobalPosition& globalPos) const
38 { return 1e-11; }
39
40 Scalar porosityAtPos(const GlobalPosition& globalPos) const
41 { return 0.4; }
42
43
44
45
46 auto fluidMatrixInteractionAtPos(const GlobalPosition& globalPos) const
47 13999464 { return makeFluidMatrixInteraction(pcKrSwCurve_); }
48
49 template<class FluidSystem>
50 int wettingPhaseAtPos(const GlobalPosition& globalPos) const
51 { return FluidSystem::phase0Idx; }
52
53 private:
54 const PcKrSwCurve pcKrSwCurve_;
55 };
56
57 } // end namespace Dumux
58
59 #endif
60