GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/porenetwork/solidenergy/spatialparams.hh
Date: 2024-09-21 20:52:54
Exec Total Coverage
Lines: 2 4 50.0%
Functions: 0 2 0.0%
Branches: 2 8 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 PNMSolidEnergyModel
10 * \ingroup SpatialParameters
11 * \brief The spatial parameters for solid-energy models in pore networks.
12 */
13 #ifndef DUMUX_PNM_SOLID_ENERGY_SPATIAL_PARAMS_HH
14 #define DUMUX_PNM_SOLID_ENERGY_SPATIAL_PARAMS_HH
15
16 #include <dumux/porenetwork/common/spatialparams.hh>
17
18 namespace Dumux::PoreNetwork {
19
20 /*!
21 * \ingroup PNMSolidEnergyModel
22 * \ingroup SpatialParameters
23 * \brief The base class for spatial parameters for pore network solid models.
24 */
25 template<class FVGridGeometry, class Scalar>
26
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 2 times.
✗ Branch 5 not taken.
2 class SolidEnergySpatialParams
27 : public PoreNetwork::SpatialParams<FVGridGeometry, Scalar,
28 SolidEnergySpatialParams<FVGridGeometry, Scalar>>
29 {
30 using ParentType = PoreNetwork::SpatialParams<
31 FVGridGeometry, Scalar, SolidEnergySpatialParams<FVGridGeometry, Scalar>
32 >;
33
34 using GridView = typename FVGridGeometry::GridView;
35 using Element = typename GridView::template Codim<0>::Entity;
36 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
37 using FVElementGeometry = typename FVGridGeometry::LocalView;
38 using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace;
39
40 public:
41 using PermeabilityType = Scalar;
42
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
1 using ParentType::ParentType;
43
44 /*!
45 * \brief Define the porosity \f$\mathrm{[-]}\f$.
46 *
47 * \param globalPos The global position
48 */
49 Scalar porosityAtPos(const GlobalPosition& globalPos) const
50 { return 0.0; }
51
52 };
53
54 } // end namespace Dumux::PoreNetwork
55
56 #endif
57