28#ifndef EWOMS_PVS_RATE_VECTOR_HH
29#define EWOMS_PVS_RATE_VECTOR_HH
31#include <dune/common/fvector.hh>
33#include <opm/material/common/Valgrind.hpp>
49template <
class TypeTag>
51 :
public Dune::FieldVector<GetPropType<TypeTag, Properties::Evaluation>,
52 getPropValue<TypeTag, Properties::NumEq>()>
59 enum { conti0EqIdx = Indices::conti0EqIdx };
64 using ParentType = Dune::FieldVector<Evaluation, numEq>;
68 PvsRateVector() : ParentType()
69 { Valgrind::SetUndefined(*
this); }
89 for (
unsigned compIdx = 0; compIdx < numComponents; ++compIdx) {
90 (*this)[conti0EqIdx + compIdx] = value[conti0EqIdx + compIdx];
91 (*this)[conti0EqIdx + compIdx] /= FluidSystem::molarMass(compIdx);
99 { ParentType::operator=(value); }
104 template <
class RhsEval>
106 { EnergyModule::setEnthalpyRate(*
this, rate); }
111 template <
class Flu
idState,
class RhsEval>
114 for (
unsigned compIdx = 0; compIdx < numComponents; ++compIdx) {
115 (*this)[conti0EqIdx + compIdx] =
116 fluidState.density(phaseIdx, compIdx) *
117 fluidState.moleFraction(phaseIdx, compIdx) *
121 EnergyModule::setEnthalpyRate(*
this, fluidState, phaseIdx, volume);
127 template <
class RhsEval>
130 for (
unsigned i = 0; i < this->size(); ++i) {
141 for (
unsigned i = 0; i < this->size(); ++i) {
142 (*this)[i] = other[i];
Provides the auxiliary methods required for consideration of the energy equation.
Definition energymodule.hh:54
void setVolumetricRate(const FluidState &fluidState, unsigned phaseIdx, const RhsEval &volume)
Set a volumetric rate of a phase.
Definition pvsratevector.hh:112
PvsRateVector(const Evaluation &value)
Definition pvsratevector.hh:74
void setEnthalpyRate(const RhsEval &rate)
Set an enthalpy rate [J/As] where .
Definition pvsratevector.hh:105
void setMolarRate(const ParentType &value)
Set a molar rate of the conservation quantities.
Definition pvsratevector.hh:98
PvsRateVector & operator=(const RhsEval &value)
Assignment operator from a scalar or a function evaluation.
Definition pvsratevector.hh:128
PvsRateVector & operator=(const PvsRateVector &other)
Assignment operator from another rate vector.
Definition pvsratevector.hh:139
PvsRateVector(const PvsRateVector &value)=default
Copy constructor.
void setMassRate(const ParentType &value)
Set a mass rate of the conservation quantities.
Definition pvsratevector.hh:86
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:45
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
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:240