28 #ifndef EWOMS_BLACK_OIL_EXTENSIVE_QUANTITIES_HH 29 #define EWOMS_BLACK_OIL_EXTENSIVE_QUANTITIES_HH 49 template <
class TypeTag>
63 static constexpr
bool enableDiffusion = getPropValue<TypeTag, Properties::EnableDiffusion>();
66 static constexpr
bool enableEnergy =
67 getPropValue<TypeTag, Properties::EnergyModuleType>() == EnergyModules::FullyImplicitThermal ||
68 getPropValue<TypeTag, Properties::EnergyModuleType>() == EnergyModules::SequentialImplicitThermal;
79 void update(
const ElementContext& elemCtx,
unsigned scvfIdx,
unsigned timeIdx)
83 asImp_().updateSolvent(elemCtx, scvfIdx, timeIdx);
84 asImp_().updatePolymer(elemCtx, scvfIdx, timeIdx);
85 if constexpr (enableEnergy) {
86 asImp_().updateEnergy(elemCtx, scvfIdx, timeIdx);
88 if constexpr (enableDiffusion) {
89 DiffusionExtensiveQuantities::update_(elemCtx, scvfIdx, timeIdx);
93 template <
class Context,
class Flu
idState>
94 void updateBoundary(
const Context& ctx,
97 const FluidState& fluidState)
101 if constexpr (enableEnergy) {
102 asImp_().updateEnergyBoundary(ctx, bfIdx, timeIdx, fluidState);
107 Implementation& asImp_()
108 {
return *
static_cast<Implementation*
>(
this); }
110 const Implementation& asImp_()
const 111 {
return *
static_cast<const Implementation*
>(
this); }
Provides the solvent specific extensive quantities to the generic black-oil module's extensive quanti...
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
void updateBoundary(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Update the extensive quantities for a given boundary face.
Definition: multiphasebaseextensivequantities.hh:114
Structs needed for tpfalinearizer and its gpuparams struct extracted to be defined in one place that ...
Definition: blackoilbioeffectsmodules.hh:45
Contains classes extending the black-oil model.
Declares the properties required by the black oil model.
void update(const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx)
Update the extensive quantities for a given sub-control-volume-face.
Definition: multiphasebaseextensivequantities.hh:80
Provides the polymer specific extensive quantities to the generic black-oil module's extensive quanti...
Provides the quantities required to calculate diffusive mass fluxes.
void update(const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx)
Update the extensive quantities for a given sub-control-volume-face.
Definition: blackoilextensivequantities.hh:79
This template class contains the data which is required to calculate the fluxes of the fluid phases o...
Definition: blackoilextensivequantities.hh:50
Provides the bioeffects specific extensive quantities to the generic black-oil module's extensive qua...
This class calculates the pressure potential gradients and the filter velocities for multi-phase flow...
Definition: multiphasebaseextensivequantities.hh:50
Provides the energy specific extensive quantities to the generic black-oil module's extensive quantit...
Definition: blackoilmodules.hpp:72
This class calculates the pressure potential gradients and the filter velocities for multi-phase flow...