28#ifndef EWOMS_PVS_BOUNDARY_RATE_VECTOR_HH
29#define EWOMS_PVS_BOUNDARY_RATE_VECTOR_HH
31#include <opm/material/common/MathToolbox.hpp>
32#include <opm/material/common/Valgrind.hpp>
49template <
class TypeTag>
62 enum { conti0EqIdx = Indices::conti0EqIdx };
89 template <
class Context,
class Flu
idState>
95 const unsigned focusDofIdx = context.focusDofIndex();
101 (*this) = Evaluation(0.0);
106 density = fluidState.density(
phaseIdx);
141 if constexpr (enableEnergy) {
163 if constexpr (enableEnergy) {
165 EnergyModule::addToEnthalpyRate(*
this, EnergyModule::thermalConductionRate(
extQuants));
169 for (
unsigned i = 0; i < numEq; ++i) {
170 Opm::Valgrind::CheckDefined((*
this)[i]);
178 template <
class Context,
class Flu
idState>
182 const FluidState& fluidState)
187 std::for_each(this->begin(), this->end(),
188 [](
auto&
val) {
val = Toolbox::min(0.0,
val); });
194 template <
class Context,
class Flu
idState>
198 const FluidState& fluidState)
203 std::for_each(this->begin(), this->end(),
204 [](
auto&
val) {
val = Toolbox::max(0.0,
val); });
211 { (*this) = Evaluation(0.0); }
Provides the auxiliary methods required for consideration of the energy equation.
Definition energymodule.hh:54
Implements a rate vector on the boundary for the fully implicit compositional multi-phase primary var...
Definition pvsboundaryratevector.hh:51
PvsBoundaryRateVector(const PvsBoundaryRateVector &value)=default
void setOutFlow(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Specify an outflow boundary.
Definition pvsboundaryratevector.hh:195
void setInFlow(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Specify an inflow boundary.
Definition pvsboundaryratevector.hh:179
PvsBoundaryRateVector(const Evaluation &value)
Definition pvsboundaryratevector.hh:75
void setNoFlow()
Specify a no-flow boundary for all conserved quantities.
Definition pvsboundaryratevector.hh:210
void setFreeFlow(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Specify a free-flow boundary.
Definition pvsboundaryratevector.hh:90
Contains the classes required to consider energy as a conservation quantity in a multi-phase module.
Declare the properties used by the infrastructure code of the finite volume discretizations.
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 blackoilbioeffectsmodules.hh:43
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:240
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