blackoildarcyfluxmodule.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*/
30#ifndef EWOMS_BLACK_OIL_DARCY_FLUX_MODULE_HH
31#define EWOMS_BLACK_OIL_DARCY_FLUX_MODULE_HH
32
34
37
38namespace Opm {
39
40template <class TypeTag>
41class BlackOilDarcyExtensiveQuantities;
42
47template <class TypeTag>
49{
53
57 static void registerParameters()
58 { }
59};
60
61
70template <class TypeTag>
72{
74
76
77public:
82 void updateSolvent(const ElementContext& elemCtx, unsigned scvfIdx, unsigned timeIdx)
83 {
84 asImp_().updateVolumeFluxPerm(elemCtx,
85 scvfIdx,
86 timeIdx);
87
88 }
89
90 void updatePolymer(const ElementContext& elemCtx, unsigned scvfIdx, unsigned timeIdx)
91 { asImp_().updateShearMultipliersPerm(elemCtx, scvfIdx, timeIdx); }
92
93protected:
94 Implementation& asImp_()
95 { return *static_cast<Implementation*>(this); }
96};
97
98} // namespace Opm
99
100#endif
Declares the properties required by the black oil model.
Specifies the extensive quantities for the black-oil model if using Darcy relation.
Definition: blackoildarcyfluxmodule.hh:72
void updateSolvent(const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx)
Update the extensive quantities which are specific to the solvent extension of the black-oil model.
Definition: blackoildarcyfluxmodule.hh:82
Implementation & asImp_()
Definition: blackoildarcyfluxmodule.hh:94
void updatePolymer(const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx)
Definition: blackoildarcyfluxmodule.hh:90
Provides the defaults for the parameters required by the Darcy velocity approach.
Definition: darcyfluxmodule.hh:80
Provides the Darcy flux module.
Definition: darcyfluxmodule.hh:115
Provides the intensive quantities for the Darcy flux module.
Definition: darcyfluxmodule.hh:88
This file contains the necessary classes to calculate the volumetric fluxes out of a pressure potenti...
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 Opm property system, traits with inheritance.
Provides a Darcy flux module for the blackoil model.
Definition: blackoildarcyfluxmodule.hh:49
static void registerParameters()
Register all run-time parameters for the flux module.
Definition: blackoildarcyfluxmodule.hh:57