discretefracturemodel.hh
Go to the documentation of this file.
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 This file is part of the Open Porous Media project (OPM).
5
6 OPM is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10
11 OPM is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with OPM. If not, see <http://www.gnu.org/licenses/>.
18
19 Consult the COPYING file in the top-level source directory of this
20 module for the precise wording of the license and the list of
21 copyright holders.
22*/
28#ifndef EWOMS_DISCRETE_FRACTURE_MODEL_HH
29#define EWOMS_DISCRETE_FRACTURE_MODEL_HH
30
31#include <opm/material/densead/Math.hpp>
32
39
42
43#include <stdexcept>
44#include <string>
45
46namespace Opm {
47template <class TypeTag>
48class DiscreteFractureModel;
49}
50
51namespace Opm::Properties {
52
53// Create new type tags
54namespace TTag {
56struct DiscreteFractureModel { using InheritsFrom = std::tuple<VtkDiscreteFracture, ImmiscibleTwoPhaseModel>; };
57} // end namespace TTag
58
60template<class TypeTag>
62
64template<class TypeTag>
66
68template<class TypeTag>
70
71// The type of the base base class for actual problems.
72// TODO!?
73// template<class TypeTag>
74// struct BaseProblem<TypeTag, TTag::DiscreteFractureModel> { using type = DiscreteFractureBaseProblem<TypeTag>; };
75
77template<class TypeTag>
80
82template<class TypeTag>
85
87template<class TypeTag>
90
93template<class TypeTag>
94struct UseTwoPointGradients<TypeTag, TTag::DiscreteFractureModel> { static constexpr bool value = true; };
95
96// The intensive quantity cache cannot be used by the discrete fracture model, because
97// the intensive quantities of a control degree of freedom are not identical to the
98// intensive quantities of the other intensive quantities of the same of the same degree
99// of freedom. This is because the fracture properties (volume, permeability, etc) are
100// specific for each...
101template<class TypeTag>
102struct EnableIntensiveQuantityCache<TypeTag, TTag::DiscreteFractureModel> { static constexpr bool value = false; };
103
104} // namespace Opm::Properties
105
106namespace Opm {
107
125template <class TypeTag>
127{
128 using ParentType = ImmiscibleModel<TypeTag>;
130
131public:
132 DiscreteFractureModel(Simulator& simulator)
133 : ParentType(simulator)
134 {
135 if (Parameters::get<TypeTag, Properties::EnableIntensiveQuantityCache>()) {
136 throw std::runtime_error("The discrete fracture model does not work in conjunction "
137 "with intensive quantities caching");
138 }
139 }
140
144 static void registerParameters()
145 {
147
148 // register runtime parameters of the VTK output modules
150 }
151
155 static std::string name()
156 { return "discretefracture"; }
157
159 {
161
162 this->addOutputModule(new Opm::VtkDiscreteFractureModule<TypeTag>(this->simulator_));
163 }
164};
165} // namespace Opm
166
167#endif
This class expresses all intensive quantities of the discrete fracture model.
Definition: discretefractureextensivequantities.hh:46
Contains the quantities which are are constant within a finite volume in the discret fracture immisci...
Definition: discretefractureintensivequantities.hh:49
Calculates the local residual of the discrete fracture immiscible multi-phase model.
Definition: discretefracturelocalresidual.hh:43
A fully-implicit multi-phase flow model which assumes immiscibility of the phases and is able to incl...
Definition: discretefracturemodel.hh:127
static std::string name()
Definition: discretefracturemodel.hh:155
DiscreteFractureModel(Simulator &simulator)
Definition: discretefracturemodel.hh:132
static void registerParameters()
Register all run-time parameters for the immiscible model.
Definition: discretefracturemodel.hh:144
void registerOutputModules_()
Definition: discretefracturemodel.hh:158
Represents the primary variables used by the discrete fracture multi-phase model.
Definition: discretefractureprimaryvariables.hh:45
The base class for the problems of ECFV discretizations which deal with a multi-phase flow through a ...
Definition: discretefractureproblem.hh:50
A fully-implicit multi-phase flow model which assumes immiscibility of the phases.
Definition: immisciblemodel.hh:221
static void registerParameters()
Register all run-time parameters for the immiscible model.
Definition: immisciblemodel.hh:246
void registerOutputModules_()
Definition: immisciblemodel.hh:360
VTK output module for quantities which make sense for all models which deal with discrete fractures i...
Definition: vtkdiscretefracturemodule.hh:102
static void registerParameters()
Register all run-time parameters for the multi-phase VTK output module.
Definition: vtkdiscretefracturemodule.hh:134
Defines the properties required for the immiscible multi-phase model which considers discrete fractur...
Definition: blackoilmodel.hh:72
Definition: blackoilboundaryratevector.hh:37
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition: propertysystem.hh:242
The type of the base class for all problems which use this model.
Definition: fvbaseproperties.hh:101
Specify whether all intensive quantities for the grid should be cached in the discretization.
Definition: fvbaseproperties.hh:297
Data required to calculate a flux over a face.
Definition: fvbaseproperties.hh:166
The secondary variables within a sub-control volume.
Definition: fvbaseproperties.hh:150
The type of the local residual function.
Definition: fvbaseproperties.hh:111
The type of the model.
Definition: basicproperties.hh:81
A vector of primary variables within a sub-control volume.
Definition: fvbaseproperties.hh:147
The generic type tag for problems using the immiscible multi-phase model.
Definition: discretefracturemodel.hh:56
std::tuple< VtkDiscreteFracture, ImmiscibleTwoPhaseModel > InheritsFrom
Definition: discretefracturemodel.hh:56
Definition: discretefractureproperties.hh:40