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<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} // namespace Opm::Properties
97
98namespace Opm {
99
117template <class TypeTag>
119{
120 using ParentType = ImmiscibleModel<TypeTag>;
122
123public:
124 DiscreteFractureModel(Simulator& simulator)
125 : ParentType(simulator)
126 {
127 if (Parameters::Get<Parameters::EnableIntensiveQuantityCache>()) {
128 throw std::runtime_error("The discrete fracture model does not work in conjunction "
129 "with intensive quantities caching");
130 }
131 }
132
136 static void registerParameters()
137 {
139
140 // register runtime parameters of the VTK output modules
142
143 // The intensive quantity cache cannot be used by the discrete fracture model, because
144 // the intensive quantities of a control degree of freedom are not identical to the
145 // intensive quantities of the other intensive quantities of the same of the same degree
146 // of freedom. This is because the fracture properties (volume, permeability, etc) are
147 // specific for each...
148 Parameters::SetDefault<Parameters::EnableIntensiveQuantityCache>(false);
149 }
150
154 static std::string name()
155 { return "discretefracture"; }
156
158 {
160
161 this->addOutputModule(new Opm::VtkDiscreteFractureModule<TypeTag>(this->simulator_));
162 }
163};
164} // namespace Opm
165
166#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:119
static std::string name()
Definition: discretefracturemodel.hh:154
DiscreteFractureModel(Simulator &simulator)
Definition: discretefracturemodel.hh:124
static void registerParameters()
Register all run-time parameters for the immiscible model.
Definition: discretefracturemodel.hh:136
void registerOutputModules_()
Definition: discretefracturemodel.hh:157
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:211
static void registerParameters()
Register all run-time parameters for the immiscible model.
Definition: immisciblemodel.hh:236
void registerOutputModules_()
Definition: immisciblemodel.hh:354
VTK output module for quantities which make sense for all models which deal with discrete fractures i...
Definition: vtkdiscretefracturemodule.hpp:62
static void registerParameters()
Register all run-time parameters for the multi-phase VTK output module.
Definition: vtkdiscretefracturemodule.hpp:96
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:235
The type of the base class for all problems which use this model.
Definition: fvbaseproperties.hh:84
Data required to calculate a flux over a face.
Definition: fvbaseproperties.hh:149
The secondary variables within a sub-control volume.
Definition: fvbaseproperties.hh:133
The type of the local residual function.
Definition: fvbaseproperties.hh:94
The type of the model.
Definition: basicproperties.hh:88
A vector of primary variables within a sub-control volume.
Definition: fvbaseproperties.hh:130
The generic type tag for problems using the immiscible multi-phase model.
Definition: discretefracturemodel.hh:56
std::tuple< ImmiscibleTwoPhaseModel > InheritsFrom
Definition: discretefracturemodel.hh:56
Definition: discretefractureproperties.hh:40