FlowBaseProblemProperties.hpp
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 OPM_FLOW_BASE_PROBLEM_PROPERTIES_HPP
29#define OPM_FLOW_BASE_PROBLEM_PROPERTIES_HPP
30
31
32#include <opm/material/thermal/EclThermalLawManager.hpp>
33
36
43
44#if HAVE_DAMARIS
46#endif
47
48#include <tuple>
49
50namespace Opm::Properties {
51
52namespace TTag {
53
55 using InheritsFrom = std::tuple<CpGridVanguard>;
56};
57
58}
59
60// The class which deals with ECL aquifers
61template<class TypeTag, class MyTypeTag>
63
64// Specify whether API tracking should be enabled (replaces PVT regions).
65// TODO: This is not yet implemented
66template<class TypeTag, class MyTypeTag>
68
69// Enable the additional checks even if compiled in debug mode (i.e., with the NDEBUG
70// macro undefined). Next to a slightly better performance, this also eliminates some
71// print statements in debug mode.
72template<class TypeTag, class MyTypeTag>
74
75// if thermal flux boundaries are enabled an effort is made to preserve the initial
76// thermal gradient specified via the TEMPVD keyword
77template<class TypeTag, class MyTypeTag>
79
80// The class which deals with wells
81template<class TypeTag, class MyTypeTag>
82struct WellModel { using type = UndefinedProperty; };
83
84// Tracer might be moved to the blackoil side
85// The class that deals with the tracer
86template<class TypeTag, class MyTypeTag>
88
89template <class TypeTag>
90struct TracerModel<TypeTag, TTag::FlowBaseProblem>
92
93// Select the element centered finite volume method as spatial discretization
94template<class TypeTag>
95struct SpatialDiscretizationSplice<TypeTag, TTag::FlowBaseProblem>
97
98// use automatic differentiation to linearize the system of PDEs
99template<class TypeTag>
100struct LocalLinearizerSplice<TypeTag, TTag::FlowBaseProblem>
102
103template<class TypeTag>
104struct BaseDiscretizationType<TypeTag, TTag::FlowBaseProblem>
106
107template<class TypeTag>
108struct DiscreteFunction<TypeTag, TTag::FlowBaseProblem>
109{
112};
113
114template<class TypeTag>
115struct GridView<TypeTag, TTag::FlowBaseProblem>
117
118// Set the material law for energy storage in rock
119template<class TypeTag>
120struct SolidEnergyLaw<TypeTag, TTag::FlowBaseProblem>
121{
122private:
125
126public:
127 using EclThermalLawManager = ::Opm::EclThermalLawManager<Scalar, FluidSystem>;
128
129 using type = typename EclThermalLawManager::SolidEnergyLaw;
130};
131
132// Set the material law for thermal conduction
133template<class TypeTag>
134struct ThermalConductionLaw<TypeTag, TTag::FlowBaseProblem>
135{
136private:
139
140public:
141 using EclThermalLawManager = ::Opm::EclThermalLawManager<Scalar, FluidSystem>;
142
143 using type = typename EclThermalLawManager::ThermalConductionLaw;
144};
145
146// use a slightly faster stencil class because it does not need the normals and
147// the integration points of intersections
148template<class TypeTag>
149struct Stencil<TypeTag, TTag::FlowBaseProblem>
150{
151private:
154
155public:
156 using type = EcfvStencil<Scalar,
157 GridView,
158 /*needIntegrationPos=*/false,
159 /*needNormal=*/false>;
160};
161
162// by default use the dummy aquifer "model"
163template<class TypeTag>
164struct AquiferModel<TypeTag, TTag::FlowBaseProblem> {
166};
167
168// Enable diffusion
169template<class TypeTag>
170struct EnableDiffusion<TypeTag, TTag::FlowBaseProblem>
171{ static constexpr bool value = true; };
172
173// Disable dispersion
174template<class TypeTag>
175struct EnableDispersion<TypeTag, TTag::FlowBaseProblem>
176{ static constexpr bool value = false; };
177
178// Enable Convective Mixing
179template<class TypeTag>
180struct EnableConvectiveMixing<TypeTag, TTag::FlowBaseProblem>
181{ static constexpr bool value = true; };
182
183// disable API tracking
184template<class TypeTag>
185struct EnableApiTracking<TypeTag, TTag::FlowBaseProblem>
186{ static constexpr bool value = false; };
187
188// store temperature (but do not conserve energy, as long as EnableEnergy is false)
189template<class TypeTag>
190struct EnableTemperature<TypeTag, TTag::FlowBaseProblem>
191{ static constexpr bool value = true; };
192
193template<class TypeTag>
194struct EnableMech<TypeTag, TTag::FlowBaseProblem>
195{ static constexpr bool value = false; };
196
197// disable all extensions supported by black oil model. this should not really be
198// necessary but it makes things a bit more explicit
199template<class TypeTag>
200struct EnablePolymer<TypeTag, TTag::FlowBaseProblem>
201{ static constexpr bool value = false; };
202
203template<class TypeTag>
204struct EnableSolvent<TypeTag, TTag::FlowBaseProblem>
205{ static constexpr bool value = false; };
206
207template<class TypeTag>
208struct EnableEnergy<TypeTag, TTag::FlowBaseProblem>
209{ static constexpr bool value = false; };
210
211template<class TypeTag>
212struct EnableFoam<TypeTag, TTag::FlowBaseProblem>
213{ static constexpr bool value = false; };
214
215template<class TypeTag>
216struct EnableExtbo<TypeTag, TTag::FlowBaseProblem>
217{ static constexpr bool value = false; };
218
219template<class TypeTag>
220struct EnableMICP<TypeTag, TTag::FlowBaseProblem>
221{ static constexpr bool value = false; };
222
223// disable thermal flux boundaries by default
224template<class TypeTag>
225struct EnableThermalFluxBoundaries<TypeTag, TTag::FlowBaseProblem>
226{ static constexpr bool value = false; };
227
228// By default, simulators derived from the FlowBaseProblem are production simulators,
229// i.e., experimental features must be explicitly enabled at compile time
230template<class TypeTag>
231struct EnableExperiments<TypeTag, TTag::FlowBaseProblem>
232{ static constexpr bool value = false; };
233
234// By default, we enable the debugging checks if we're compiled in debug mode
235template<class TypeTag>
236struct EnableDebuggingChecks<TypeTag, TTag::FlowBaseProblem>
237{ static constexpr bool value = true; };
238
239} // namespace Opm::Properties
240
241#endif // OPM_BASE_FLOW_PROBLEM_PROPERTIES_HPP
The base class which specifies the API of aquifer models.
Definition: BaseAquiferModel.hpp:50
Represents the stencil (finite volume geometry) of a single element in the ECFV discretization.
Definition: ecfvstencil.hh:61
Definition: fvbasediscretization.hh:343
The base class for the finite volume discretization schemes without adaptation.
Definition: fvbasediscretization.hh:1946
The base class for the finite volume discretization schemes.
Definition: fvbasediscretization.hh:293
A class which handles tracers as specified in by ECL.
Definition: TracerModel.hpp:68
Definition: blackoilmodel.hh:72
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 Opm property system, traits with inheritance.
Definition: FlowBaseProblemProperties.hpp:62
Definition: fvbasediscretization.hh:267
typename BaseDiscretization::BlockVectorWrapper type
Definition: FlowBaseProblemProperties.hpp:111
Definition: fvbaseproperties.hh:77
Definition: FlowBaseProblemProperties.hpp:67
Enable convective mixing?
Definition: multiphasebaseproperties.hh:85
Definition: FlowBaseProblemProperties.hpp:73
Enable diffusive fluxes?
Definition: multiphasebaseproperties.hh:79
Enable dispersive fluxes?
Definition: multiphasebaseproperties.hh:82
Specify whether energy should be considered as a conservation quantity or not.
Definition: multiphasebaseproperties.hh:76
Specify if experimental features should be enabled or not.
Definition: fvbaseproperties.hh:241
Enable the ECL-blackoil extension for extended BO. ("Second gas" - alternative approach)
Definition: blackoilproperties.hh:45
Enable the ECL-blackoil extension for foam.
Definition: blackoilproperties.hh:57
Enable the ECL-blackoil extension for MICP.
Definition: blackoilproperties.hh:72
Definition: blackoilproperties.hh:81
Enable the ECL-blackoil extension for polymer.
Definition: blackoilproperties.hh:48
Enable the ECL-blackoil extension for solvents. ("Second gas")
Definition: blackoilproperties.hh:42
Definition: blackoilproperties.hh:78
Definition: FlowBaseProblemProperties.hpp:78
typename GetPropType< TypeTag, Properties::Grid >::LeafGridView type
Definition: FlowBaseProblemProperties.hpp:116
Definition: basicproperties.hh:103
Definition: fvbaseproperties.hh:55
typename EclThermalLawManager::SolidEnergyLaw type
Definition: FlowBaseProblemProperties.hpp:129
::Opm::EclThermalLawManager< Scalar, FluidSystem > EclThermalLawManager
Definition: FlowBaseProblemProperties.hpp:127
The material law for the energy stored in the solid matrix.
Definition: multiphasebaseproperties.hh:57
The splice to be used for the spatial discretization.
Definition: multiphasebaseproperties.hh:39
The class describing the stencil of the spatial discretization.
Definition: fvbaseproperties.hh:70
Definition: fvbaseadlocallinearizer.hh:53
Definition: ecfvproperties.hh:41
Definition: FlowBaseProblemProperties.hpp:54
std::tuple< CpGridVanguard > InheritsFrom
Definition: FlowBaseProblemProperties.hpp:55
::Opm::EclThermalLawManager< Scalar, FluidSystem > EclThermalLawManager
Definition: FlowBaseProblemProperties.hpp:141
typename EclThermalLawManager::ThermalConductionLaw type
Definition: FlowBaseProblemProperties.hpp:143
The material law for thermal conduction.
Definition: multiphasebaseproperties.hh:63
Definition: FlowBaseProblemProperties.hpp:87
a tag to mark properties as undefined
Definition: propertysystem.hh:40
Definition: FlowBaseProblemProperties.hpp:82