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
69template <class TypeTag>
71{
74
75public:
80 void updateSolvent(const ElementContext& elemCtx, unsigned scvfIdx, unsigned timeIdx)
81 {
82 asImp_().updateVolumeFluxPerm(elemCtx,
83 scvfIdx,
84 timeIdx);
85 }
86
87 void updatePolymer(const ElementContext& elemCtx, unsigned scvfIdx, unsigned timeIdx)
88 { asImp_().updateShearMultipliersPerm(elemCtx, scvfIdx, timeIdx); }
89
90protected:
91 Implementation& asImp_()
92 { return *static_cast<Implementation*>(this); }
93};
94
95} // namespace Opm
96
97#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:71
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:80
Implementation & asImp_()
Definition: blackoildarcyfluxmodule.hh:91
void updatePolymer(const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx)
Definition: blackoildarcyfluxmodule.hh:87
Provides the defaults for the parameters required by the Darcy velocity approach.
Definition: darcyfluxmodule.hh:86
Provides the Darcy flux module.
Definition: darcyfluxmodule.hh:122
Provides the intensive quantities for the Darcy flux module.
Definition: darcyfluxmodule.hh:94
This file contains the necessary classes to calculate the volumetric fluxes out of a pressure potenti...
Definition: blackoilboundaryratevector.hh:39
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.
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