28#ifndef EWOMS_MULTI_PHASE_BASE_MODEL_HH
29#define EWOMS_MULTI_PHASE_BASE_MODEL_HH
31#include <opm/material/densead/Math.hpp>
33#include <opm/material/fluidmatrixinteractions/MaterialTraits.hpp>
34#include <opm/material/fluidmatrixinteractions/NullMaterial.hpp>
36#include <opm/material/thermal/NullSolidEnergyLaw.hpp>
37#include <opm/material/thermal/NullThermalConductionLaw.hpp>
51template <
class TypeTag>
52class MultiPhaseBaseModel;
55namespace Opm::Properties {
66template<
class TypeTag>
69 using type = std::tuple<GetSplicePropType<TypeTag, TTag::MultiPhaseBaseModel, Properties::SpatialDiscretizationSplice>>;
75template<
class TypeTag>
79template<
class TypeTag>
82template<
class TypeTag>
85template<
class TypeTag>
89template<
class TypeTag>
93template<
class TypeTag>
99template<
class TypeTag>
115template<
class TypeTag>
121template<
class TypeTag>
127template<
class TypeTag>
132template<
class TypeTag>
138template<
class TypeTag>
151template <
class TypeTag>
165 using ElementIterator =
typename GridView::template Codim<0>::Iterator;
166 using Element =
typename GridView::template Codim<0>::Entity;
169 enum { numComponents = FluidSystem::numComponents };
173 : ParentType(simulator)
181 ParentType::registerParameters();
218 ElementContext elemCtx(this->simulator_);
224 if (
elem.partitionType() != Dune::InteriorEntity)
227 elemCtx.updateStencil(
elem);
228 elemCtx.updateIntensiveQuantities(0);
230 const auto& stencil = elemCtx.stencil(0);
232 for (
unsigned dofIdx = 0; dofIdx < elemCtx.numDof(0); ++dofIdx) {
233 const auto&
scv = stencil.subControlVolume(dofIdx);
234 const auto& intQuants = elemCtx.intensiveQuantities(dofIdx, 0);
237 this->localResidual(threadId).addPhaseStorage(tmp,
242 tmp *=
scv.volume()*intQuants.extrusionFactor();
254 void registerOutputModules_()
256 ParentType::registerOutputModules_();
264 const Implementation& asImp_()
const
265 {
return *
static_cast<const Implementation *
>(
this); }
A base class for fully-implicit multi-phase porous-media flow models which assume multiple fluid phas...
Definition multiphasebasemodel.hh:153
void globalPhaseStorage(EqVector &storage, unsigned phaseIdx)
Compute the total storage inside one phase of all conservation quantities.
Definition multiphasebasemodel.hh:203
static void registerParameters()
Register all run-time parameters for the immiscible model.
Definition multiphasebasemodel.hh:179
bool phaseIsConsidered(unsigned) const
Returns true iff a fluid phase is used by the model.
Definition multiphasebasemodel.hh:193
The base class for the problems of ECFV discretizations which deal with a multi-phase flow through a ...
Definition multiphasebaseproblem.hh:60
static unsigned threadId()
Return the index of the current OpenMP thread.
Definition threadmanager.cpp:84
Provides an STL-iterator like interface to iterate over the enties of a GridView in OpenMP threaded a...
Definition threadedentityiterator.hh:43
VTK output module for quantities which make sense for all models which deal with multiple fluid phase...
Definition vtkmultiphasemodule.hpp:68
static void registerParameters()
Register all run-time parameters for the multi-phase VTK output module.
Definition vtkmultiphasemodule.hpp:104
VTK output module for the temperature in which assume thermal equilibrium.
Definition vtktemperaturemodule.hpp:51
static void registerParameters()
Register all run-time parameters for the Vtk output module.
Definition vtktemperaturemodule.hpp:75
This file contains the necessary classes to calculate the velocity out of a pressure potential gradie...
This class calculates the pressure potential gradients and the filter velocities for multi-phase flow...
Defines the common parameters for the porous medium multi-phase models.
The base class for the problems of ECFV discretizations which deal with a multi-phase flow through a ...
Defines the common properties required by the porous medium multi-phase models.
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242
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
Specifies a flux module which uses the Darcy relation.
Definition darcyfluxmodule.hh:61
The type of the base class for all problems which use this model.
Definition fvbaseproperties.hh:84
Specifies the relation used for velocity.
Definition multiphasebaseproperties.hh:72
The context material law (extracted from the spatial parameters)
Definition multiphasebaseproperties.hh:54
The material law which ought to be used (extracted from the spatial parameters)
Definition multiphasebaseproperties.hh:51
Number of chemical species in the system.
Definition multiphasebaseproperties.hh:45
Number of equations in the system of PDEs.
Definition basicproperties.hh:80
Number of fluid phases in the system.
Definition multiphasebaseproperties.hh:42
The parameters of the material law for energy storage of the solid.
Definition multiphasebaseproperties.hh:60
The material law for the energy stored in the solid matrix.
Definition multiphasebaseproperties.hh:57
The splice to be used for the spatial discretization.
Definition multiphasebaseproperties.hh:39
Definition propertysystem.hh:44
Definition multiphasebasemodel.hh:61
Definition vcfvproperties.hh:41
The parameters of the material law for thermal conduction.
Definition multiphasebaseproperties.hh:66
The material law for thermal conduction.
Definition multiphasebaseproperties.hh:63
The base class for the vertex centered finite volume discretization scheme.
VTK output module for quantities which make sense for all models which deal with multiple fluid phase...
VTK output module for the temperature in which assume thermal equilibrium.