GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: dumux/test/porousmediumflow/2p/rotationsymmetry/spatialparams.hh
Date: 2025-04-12 19:19:20
Exec Total Coverage
Lines: 6 6 100.0%
Functions: 1 1 100.0%
Branches: 4 8 50.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-FileCopyrightText: 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/2
✓ Branch 0 taken 1 times.
✗ Branch 1 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
3/6
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 1 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 1 times.
✗ Branch 9 not taken.
2 ,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 6999732 auto fluidMatrixInteractionAtPos(const GlobalPosition& globalPos) const
47 6999732 { 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