opm-simulators
FlowProblemBlackoilProperties.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_BLACKOIL_PROPERTIES_HPP
29 #define OPM_FLOW_BASE_PROBLEM_BLACKOIL_PROPERTIES_HPP
30 
31 
32 #include <opm/material/fluidmatrixinteractions/EclMaterialLawManager.hpp>
33 
35 
40 #include <opm/simulators/flow/BlackoilModel.hpp>
41 
42 
43 #include <tuple>
44 
45 namespace Opm {
46 template <class TypeTag>
47 class FlowProblemBlackoil;
48 }
49 
50 namespace Opm::Properties {
51 
52 namespace TTag {
53 
55  using InheritsFrom = std::tuple<FlowBaseProblem>;
56 };
57 
58 }
59 
60 // Set the problem property
61 template<class TypeTag>
62 struct NonlinearSystem<TypeTag, TTag::FlowBaseProblemBlackoil>
63 { using type = BlackoilModel<TypeTag>; };
64 
65 
66 template<class TypeTag>
67 struct Problem<TypeTag, TTag::FlowBaseProblemBlackoil>
69 
70 template<class TypeTag>
71 struct Model<TypeTag, TTag::FlowBaseProblemBlackoil>
72 { using type = FIBlackOilModel<TypeTag>; };
73 
74 // Set the material law for fluid fluxes
75 template<class TypeTag>
76 struct MaterialLaw<TypeTag, TTag::FlowBaseProblem>
77 {
78 private:
81 
82  using Traits = ThreePhaseMaterialTraits<Scalar,
83  /*wettingPhaseIdx=*/FluidSystem::waterPhaseIdx,
84  /*nonWettingPhaseIdx=*/FluidSystem::oilPhaseIdx,
85  /*gasPhaseIdx=*/FluidSystem::gasPhaseIdx,
86  getPropValue<TypeTag, Properties::EnableHysteresis>(),
87  getPropValue<TypeTag, Properties::EnableEndpointScaling>()>;
88 
89 public:
90  using EclMaterialLawManager = ::Opm::EclMaterialLaw::Manager<Traits>;
91 
92  using type = typename EclMaterialLawManager::MaterialLaw;
93 };
94 
95 // Use the "velocity module" which uses the Eclipse "NEWTRAN" transmissibilities
96 template<class TypeTag>
97 struct FluxModule<TypeTag, TTag::FlowBaseProblemBlackoil>
98 { using type = NewTranFluxModule<TypeTag>; };
99 
100 // Use the dummy gradient calculator in order not to do unnecessary work.
101 template<class TypeTag>
102 struct GradientCalculator<TypeTag, TTag::FlowBaseProblemBlackoil>
104 
105 } // namespace Opm::Properties
106 
107 #endif // OPM_FLOW_BASE_PROBLEM_BLACKOIL_PROPERTIES_HPP
This problem simulates an input file given in the data format used by the commercial ECLiPSE simulato...
Definition: FlowProblemBlackoil.hpp:85
Calculates gradients of arbitrary quantities at flux integration points.
Definition: fvbaseproperties.hh:156
Definition: FIBlackoilModel.hpp:52
Definition: FlowProblemBlackoilProperties.hpp:54
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
Definition: FlowBaseProblemProperties.hpp:62
This file contains the flux module which is used for flow problems.
Specifies a flux module which uses ECL transmissibilities.
Definition: NewTranFluxModule.hpp:70
This is a "dummy" gradient calculator which does not do anything.
Definition: DummyGradientCalculator.hpp:49
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
Specifies the relation used for velocity.
Definition: multiphasebaseproperties.hh:83
The type of the model.
Definition: basicproperties.hh:92
The type of the problem.
Definition: fvbaseproperties.hh:81
The Opm property system, traits with inheritance.
Output module for the results black oil model writing in ECL binary format.
A model implementation for three-phase black oil.
Definition: BlackoilModel.hpp:60
Definition: blackoilmodel.hh:80
The material law which ought to be used (extracted from the spatial parameters)
Definition: multiphasebaseproperties.hh:55