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