28#ifndef EWOMS_IMMISCIBLE_RATE_VECTOR_HH
29#define EWOMS_IMMISCIBLE_RATE_VECTOR_HH
31#include <dune/common/fvector.hh>
33#include <opm/material/common/Valgrind.hpp>
34#include <opm/material/constraintsolvers/NcpFlash.hpp>
47template <
class TypeTag>
49 :
public Dune::FieldVector<GetPropType<TypeTag, Properties::Evaluation>,
50 getPropValue<TypeTag, Properties::NumEq>()>
58 enum { conti0EqIdx = Indices::conti0EqIdx };
62 using ParentType = Dune::FieldVector<Evaluation, numEq>;
70 { Opm::Valgrind::SetUndefined(*
this); }
100 { ParentType::operator=(value); }
115 ParentType::operator[](conti0EqIdx +
compIdx) =
126 template <
class RhsEval>
128 { EnergyModule::setEnthalpyRate(*
this,
rate); }
145 template <
class Flu
idState,
class RhsEval>
149 (*
this)[conti0EqIdx +
compIdx] =
154 EnergyModule::setEnthalpyRate(*
this, fluidState,
phaseIdx, volume);
160 template <
class RhsEval>
163 for (
unsigned i=0; i < this->size(); ++i)
173 for (
unsigned i=0; i < this->size(); ++i)
174 (*
this)[i] = other[i];
Provides the auxiliary methods required for consideration of the energy equation.
Definition energymodule.hh:50
Implements a vector representing rates of conserved quantities.
Definition immiscibleratevector.hh:51
ImmiscibleRateVector & operator=(const ImmiscibleRateVector &other)
Assignment operator from another rate vector.
Definition immiscibleratevector.hh:171
void setEnthalpyRate(const RhsEval &rate)
Set an enthalpy rate [J/As] where .
Definition immiscibleratevector.hh:127
ImmiscibleRateVector(const Evaluation &value)
Constructor with assignment from scalar.
Definition immiscibleratevector.hh:77
ImmiscibleRateVector(const ImmiscibleRateVector &value)
Copy constructor.
Definition immiscibleratevector.hh:86
void setMassRate(const ParentType &value)
Set a mass rate of the conservation quantities.
Definition immiscibleratevector.hh:99
ImmiscibleRateVector()
Default constructor.
Definition immiscibleratevector.hh:69
void setVolumetricRate(const FluidState &fluidState, unsigned phaseIdx, const RhsEval &volume)
Set a volumetric rate of a phase.
Definition immiscibleratevector.hh:146
ImmiscibleRateVector & operator=(const RhsEval &value)
Assignment operator from a scalar or a function evaluation.
Definition immiscibleratevector.hh:161
void setMolarRate(const ParentType &value)
Set a molar rate of the conservation quantities.
Definition immiscibleratevector.hh:111
Contains the quantities which are are constant within a finite volume for the immiscible multi-phase ...
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