28#ifndef EWOMS_RICHARDS_BOUNDARY_RATE_VECTOR_HH
29#define EWOMS_RICHARDS_BOUNDARY_RATE_VECTOR_HH
31#include <opm/material/common/Valgrind.hpp>
32#include <opm/material/constraintsolvers/NcpFlash.hpp>
43template <
class TypeTag>
54 enum { contiEqIdx = Indices::contiEqIdx };
81 template <
class Context,
class Flu
idState>
93 (*this) = Evaluation(0.0);
99 density = fluidState.density(
phaseIdx);
113 for (
unsigned i = 0; i < numEq; ++i) {
114 Opm::Valgrind::CheckDefined((*
this)[i]);
116 Opm::Valgrind::CheckDefined(*
this);
123 template <
class Context,
class Flu
idState>
127 const FluidState& fluidState)
133 Evaluation&
val = this->operator[](
eqIdx);
134 val = Toolbox::min(0.0,
val);
141 template <
class Context,
class Flu
idState>
145 const FluidState& fluidState)
151 Evaluation&
val = this->operator[](
eqIdx);
152 val = Toolbox::max(0.0,
val);
160 { (*this) = Evaluation(0.0); }
Implements a boundary vector for the fully implicit Richards model.
Definition richardsboundaryratevector.hh:45
RichardsBoundaryRateVector(const RichardsBoundaryRateVector &value)=default
void setFreeFlow(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Specify a free-flow boundary.
Definition richardsboundaryratevector.hh:82
void setOutFlow(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Specify an outflow boundary.
Definition richardsboundaryratevector.hh:142
void setNoFlow()
Specify a no-flow boundary for all conserved quantities.
Definition richardsboundaryratevector.hh:159
void setInFlow(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Specify an inflow boundary.
Definition richardsboundaryratevector.hh:124
RichardsBoundaryRateVector(const Evaluation &value)
Definition richardsboundaryratevector.hh:67
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
Intensive quantities required by the Richards model.