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 
38 namespace Ewoms {
39 
40 template <class TypeTag>
42 
47 template <class TypeTag>
49 {
53 
57  static void registerParameters()
58  { }
59 };
60 
61 
70 template <class TypeTag>
71 class BlackOilDarcyExtensiveQuantities : public DarcyExtensiveQuantities<TypeTag>
72 {
73  typedef typename GET_PROP_TYPE(TypeTag, ExtensiveQuantities) Implementation;
74 
75  typedef typename GET_PROP_TYPE(TypeTag, ElementContext) ElementContext;
76 
77 public:
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 
93 protected:
94  Implementation& asImp_()
95  { return *static_cast<Implementation*>(this); }
96 };
97 
98 } // namespace Ewoms
99 
100 #endif
Definition: baseauxiliarymodule.hh:37
Provides the intensive quantities for the Darcy flux module.
Definition: darcyfluxmodule.hh:52
Provides a Darcy flux module for the blackoil model.
Definition: blackoildarcyfluxmodule.hh:48
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:41
static void registerParameters()
Register all run-time parameters for the flux module.
Definition: blackoildarcyfluxmodule.hh:57
Provides the defaults for the parameters required by the Darcy velocity approach. ...
Definition: darcyfluxmodule.hh:58
This file contains the necessary classes to calculate the volumetric fluxes out of a pressure potenti...
Provides the magic behind the eWoms property system.
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