28#ifndef EWOMS_NCP_BOUNDARY_RATE_VECTOR_HH
29#define EWOMS_NCP_BOUNDARY_RATE_VECTOR_HH
34#include <opm/material/common/Valgrind.hpp>
44template <
class TypeTag>
57 enum { conti0EqIdx = Indices::conti0EqIdx };
85 template <
class Context,
class Flu
idState>
89 const FluidState& fluidState)
100 (*this) = Evaluation(0.0);
105 density = fluidState.density(
phaseIdx);
151 EnergyModule::addToEnthalpyRate(*
this, EnergyModule::thermalConductionRate(
extQuants));
154 for (
unsigned i = 0; i < numEq; ++i) {
155 Opm::Valgrind::CheckDefined((*
this)[i]);
163 template <
class Context,
class Flu
idState>
167 const FluidState& fluidState)
173 this->operator[](
eqIdx) = Toolbox::min(0.0, this->
operator[](
eqIdx));
180 template <
class Context,
class Flu
idState>
184 const FluidState& fluidState)
190 this->operator[](
eqIdx) = Toolbox::max(0.0, this->
operator[](
eqIdx));
198 { (*this) = Evaluation(0.0); }
Provides the auxiliary methods required for consideration of the energy equation.
Definition energymodule.hh:50
Implements a boundary vector for the fully implicit compositional multi-phase NCP model.
Definition ncpboundaryratevector.hh:46
NcpBoundaryRateVector(const Evaluation &value)
Definition ncpboundaryratevector.hh:72
void setInFlow(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Specify an inflow boundary.
Definition ncpboundaryratevector.hh:164
void setFreeFlow(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Specify a free-flow boundary.
Definition ncpboundaryratevector.hh:86
void setNoFlow()
Specify a no-flow boundary for all conserved quantities.
Definition ncpboundaryratevector.hh:197
void setOutFlow(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Specify an outflow boundary.
Definition ncpboundaryratevector.hh:181
NcpBoundaryRateVector(const NcpBoundaryRateVector &value)=default
Contains the classes required to consider energy as a conservation quantity in a multi-phase module.
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
Declares the properties required for the NCP compositional multi-phase model.