opm-simulators
Toggle main menu visibility
Loading...
Searching...
No Matches
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
33
#include <
opm/models/blackoil/blackoilproperties.hh
>
34
35
#include <
opm/models/common/darcyfluxmodule.hh
>
36
#include <
opm/models/utils/propertysystem.hh
>
37
38
namespace
Opm
{
39
40
template
<
class
TypeTag>
41
class
BlackOilDarcyExtensiveQuantities
;
42
47
template
<
class
TypeTag>
48
struct
BlackOilDarcyFluxModule
49
{
50
using
FluxIntensiveQuantities =
DarcyIntensiveQuantities<TypeTag>
;
51
using
FluxExtensiveQuantities =
BlackOilDarcyExtensiveQuantities<TypeTag>
;
52
using
FluxBaseProblem =
DarcyBaseProblem<TypeTag>
;
53
57
static
void
registerParameters
()
58
{}
59
};
60
69
template
<
class
TypeTag>
70
class
BlackOilDarcyExtensiveQuantities
:
public
DarcyExtensiveQuantities
<TypeTag>
71
{
72
using
ElementContext =
GetPropType<TypeTag, Properties::ElementContext>
;
73
using
Implementation =
GetPropType<TypeTag, Properties::ExtensiveQuantities>
;
74
75
public
:
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
90
protected
:
91
Implementation& asImp_()
92
{
return
*
static_cast<
Implementation*
>
(
this
); }
93
};
94
95
}
// namespace Opm
96
97
#endif
blackoilproperties.hh
Declares the properties required by the black oil model.
Opm::BlackOilDarcyExtensiveQuantities
Specifies the extensive quantities for the black-oil model if using Darcy relation.
Definition
blackoildarcyfluxmodule.hh:71
Opm::BlackOilDarcyExtensiveQuantities::updateSolvent
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
Opm::DarcyBaseProblem
Provides the defaults for the parameters required by the Darcy velocity approach.
Definition
darcyfluxmodule.hh:86
Opm::DarcyExtensiveQuantities
Provides the Darcy flux module.
Definition
darcyfluxmodule.hh:122
Opm::DarcyIntensiveQuantities
Provides the intensive quantities for the Darcy flux module.
Definition
darcyfluxmodule.hh:94
darcyfluxmodule.hh
This file contains the necessary classes to calculate the volumetric fluxes out of a pressure potenti...
Opm
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition
blackoilbioeffectsmodules.hh:43
Opm::GetPropType
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
propertysystem.hh
The Opm property system, traits with inheritance.
Opm::BlackOilDarcyFluxModule
Provides a Darcy flux module for the blackoil model.
Definition
blackoildarcyfluxmodule.hh:49
Opm::BlackOilDarcyFluxModule::registerParameters
static void registerParameters()
Register all run-time parameters for the flux module.
Definition
blackoildarcyfluxmodule.hh:57
opm
models
blackoil
blackoildarcyfluxmodule.hh
Generated by
1.17.0