28#ifndef EWOMS_RICHARDS_RATE_VECTOR_HH
29#define EWOMS_RICHARDS_RATE_VECTOR_HH
31#include <dune/common/fvector.hh>
33#include <opm/material/common/Valgrind.hpp>
34#include <opm/material/constraintsolvers/NcpFlash.hpp>
48template <
class TypeTag>
50 :
public Dune::FieldVector<GetPropType<TypeTag, Properties::Evaluation>,
51 getPropValue<TypeTag, Properties::NumEq>()>
59 enum { contiEqIdx = Indices::contiEqIdx };
63 using ParentType = Dune::FieldVector<Evaluation, numEq>;
67 { Opm::Valgrind::SetUndefined(*
this); }
88 { ParentType::operator=(value); }
96 ParentType::operator[](contiEqIdx) =
97 value[contiEqIdx]*FluidSystem::molarMass(liquidCompIdx);
103 template <
class RhsEval>
105 { EnergyModule::setEnthalpyRate(*
this,
rate); }
110 template <
class Flu
idState,
class RhsEval>
113 (*this)[contiEqIdx] =
115 * fluidState.massFraction(
phaseIdx, liquidCompIdx)
118 EnergyModule::setEnthalpyRate(*
this, fluidState,
phaseIdx, volume);
125 template <
class RhsEval>
128 for (
unsigned i=0; i < this->size(); ++i)
138 for (
unsigned i=0; i < this->size(); ++i)
139 (*
this)[i] = other[i];
Implements a vector representing mass, molar or volumetric rates.
Definition richardsratevector.hh:52
RichardsRateVector(const Evaluation &value)
Definition richardsratevector.hh:72
void setEnthalpyRate(const RhsEval &rate)
Set an enthalpy rate [J/As] where .
Definition richardsratevector.hh:104
void setMassRate(const ParentType &value)
Set a mass rate of the conservation quantities.
Definition richardsratevector.hh:87
void setVolumetricRate(const FluidState &fluidState, unsigned phaseIdx, const RhsEval &volume)
Set a volumetric rate of a phase.
Definition richardsratevector.hh:111
RichardsRateVector(const RichardsRateVector &value)
Definition richardsratevector.hh:80
void setMolarRate(const ParentType &value)
Set a molar rate of the conservation quantities.
Definition richardsratevector.hh:93
RichardsRateVector & operator=(const RhsEval &value)
Assignment operator from a scalar or a function evaluation.
Definition richardsratevector.hh:126
RichardsRateVector & operator=(const RichardsRateVector &other)
Assignment operator from another rate vector.
Definition richardsratevector.hh:136
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.