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 GeomechanicsModels | ||
10 | * \brief Base class for all geomechanical problems | ||
11 | */ | ||
12 | #ifndef DUMUX_GEOMECHANICS_FV_PROBLEM_HH | ||
13 | #define DUMUX_GEOMECHANICS_FV_PROBLEM_HH | ||
14 | |||
15 | #include <dumux/common/typetraits/isvalid.hh> | ||
16 | #include <dumux/porousmediumflow/problem.hh> | ||
17 | |||
18 | namespace Dumux { | ||
19 | |||
20 | /*! | ||
21 | * \ingroup GeomechanicsModels | ||
22 | * \brief Base class for all geomechanical problems | ||
23 | * \note We require only little additional functionality to the | ||
24 | * porous medium flow problem, which is why we inherit from that here. | ||
25 | */ | ||
26 | template<class TypeTag> | ||
27 | 3 | class GeomechanicsFVProblem : public PorousMediumFlowProblem<TypeTag> | |
28 | { | ||
29 | using ParentType = PorousMediumFlowProblem<TypeTag>; | ||
30 | |||
31 | using Scalar = GetPropType<TypeTag, Properties::Scalar>; | ||
32 | using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>; | ||
33 | using FVElementGeometry = typename GridGeometry::LocalView; | ||
34 | using SubControlVolume = typename GridGeometry::SubControlVolume; | ||
35 | using GridView = typename GetPropType<TypeTag, Properties::GridGeometry>::GridView; | ||
36 | using Element = typename GridView::template Codim<0>::Entity; | ||
37 | using GlobalPosition = typename Element::Geometry::GlobalCoordinate; | ||
38 | |||
39 | static constexpr int numFP = GetPropType<TypeTag, Properties::ModelTraits>::numFluidPhases(); | ||
40 | |||
41 | public: | ||
42 | //! pull up the constructor of the parent class | ||
43 |
2/6✓ Branch 1 taken 5 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
|
5 | using ParentType::ParentType; |
44 | }; | ||
45 | |||
46 | } // end namespace Dumux | ||
47 | |||
48 | #endif | ||
49 |