28#ifndef EWOMS_NCP_BOUNDARY_RATE_VECTOR_HH
29#define EWOMS_NCP_BOUNDARY_RATE_VECTOR_HH
31#include <opm/material/common/MathToolbox.hpp>
32#include <opm/material/common/Valgrind.hpp>
48template <
class TypeTag>
61 enum { conti0EqIdx = Indices::conti0EqIdx };
89 template <
class Context,
class Flu
idState>
93 const FluidState& fluidState)
98 const unsigned focusDofIdx = context.focusDofIndex();
104 (*this) = Evaluation(0.0);
109 density = fluidState.density(
phaseIdx);
167 EnergyModule::addToEnthalpyRate(*
this, EnergyModule::thermalConductionRate(
extQuants));
170 for (
unsigned i = 0; i < numEq; ++i) {
171 Valgrind::CheckDefined((*
this)[i]);
179 template <
class Context,
class Flu
idState>
183 const FluidState& fluidState)
188 std::for_each(this->begin(), this->end(),
189 [](
auto&
val) {
val = Toolbox::min(Scalar{0.0},
val); });
195 template <
class Context,
class Flu
idState>
199 const FluidState& fluidState)
204 std::for_each(this->begin(), this->end(),
205 [](
auto&
val) {
val = Toolbox::max(Scalar{0.0},
val); });
212 { (*this) = Evaluation(0.0); }
Provides the auxiliary methods required for consideration of the energy equation.
Definition energymodule.hh:54
Implements a boundary vector for the fully implicit compositional multi-phase NCP model.
Definition ncpboundaryratevector.hh:50
NcpBoundaryRateVector(const Evaluation &value)
Definition ncpboundaryratevector.hh:75
void setInFlow(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Specify an inflow boundary.
Definition ncpboundaryratevector.hh:180
void setFreeFlow(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Specify a free-flow boundary.
Definition ncpboundaryratevector.hh:90
void setNoFlow()
Specify a no-flow boundary for all conserved quantities.
Definition ncpboundaryratevector.hh:211
void setOutFlow(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Specify an outflow boundary.
Definition ncpboundaryratevector.hh:196
NcpBoundaryRateVector(const NcpBoundaryRateVector &value)=default
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