GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/test/porousmediumflow/1pncmin/nonisothermal/spatialparams.hh
Date: 2024-05-04 19:09:25
Exec Total Coverage
Lines: 4 6 66.7%
Functions: 1 2 50.0%
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 OnePNCMinTests
10 * \brief Definition of the spatial parameters for the thermochemistry
11 * problem which uses the non-insothermal 1pncmin model.
12 */
13
14 #ifndef DUMUX_THERMOCHEM_SPATIAL_PARAMS_HH
15 #define DUMUX_THERMOCHEM_SPATIAL_PARAMS_HH
16
17 #include <dumux/porousmediumflow/fvspatialparams1p.hh>
18
19 namespace Dumux {
20
21 /*!
22 * \ingroup OnePNCMinTests
23 * \brief Definition of the spatial parameters for the thermochemistry
24 * problem which uses the non-insothermal 1pncmin model.
25 */
26 template<class GridGeometry, class Scalar>
27
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 ThermoChemSpatialParams
28 : public FVPorousMediumFlowSpatialParamsOneP<GridGeometry, Scalar,
29 ThermoChemSpatialParams<GridGeometry, Scalar>>
30 {
31 using GridView = typename GridGeometry::GridView;
32 using FVElementGeometry = typename GridGeometry::LocalView;
33 using SubControlVolume = typename FVElementGeometry::SubControlVolume;
34 using Element = typename GridView::template Codim<0>::Entity;
35 using ThisType = ThermoChemSpatialParams<GridGeometry, Scalar>;
36 using ParentType = FVPorousMediumFlowSpatialParamsOneP<GridGeometry, Scalar, ThisType>;
37
38 enum { dimWorld=GridView::dimensionworld };
39
40 using GlobalPosition = Dune::FieldVector<Scalar, dimWorld>;
41
42 public:
43 // type used for the permeability (i.e. tensor or scalar)
44 using PermeabilityType = Scalar;
45
46 1 ThermoChemSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
47
2/6
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
1 : ParentType(gridGeometry)
48 1 {}
49
50 /*!
51 * \brief Returns the intrinsic permeability tensor K \f$[m^2]\f$ depending
52 * on the position in the domain
53 *
54 * \param element The finite volume element
55 * \param scv The sub-control volume
56 * \param elemSol The element solution
57 *
58 * Solution dependent permeability function.
59 */
60 template<class ElementSolution>
61 PermeabilityType permeability(const Element& element,
62 const SubControlVolume& scv,
63 const ElementSolution& elemSol) const
64 { return 8.53e-12; }
65
66 private:
67
68 Scalar eps_;
69 };
70
71 } // end namespace Dumux
72
73 #endif
74