28#ifndef EWOMS_NCP_RATE_VECTOR_HH
29#define EWOMS_NCP_RATE_VECTOR_HH
33#include <opm/material/common/Valgrind.hpp>
34#include <opm/material/constraintsolvers/NcpFlash.hpp>
36#include <dune/common/fvector.hh>
47template <
class TypeTag>
49 :
public Dune::FieldVector<GetPropType<TypeTag, Properties::Evaluation>,
50 getPropValue<TypeTag, Properties::NumEq>()>
55 using ParentType = Dune::FieldVector<Evaluation, numEq>;
59 enum { conti0EqIdx = Indices::conti0EqIdx };
69 { Opm::Valgrind::SetUndefined(*
this); }
104 { ParentType::operator=(value); }
109 template <
class RhsEval>
111 { EnergyModule::setEnthalpyRate(*
this,
rate); }
116 template <
class Flu
idState,
class RhsEval>
123 EnergyModule::setEnthalpyRate(*
this, fluidState,
phaseIdx, volume);
124 Opm::Valgrind::CheckDefined(*
this);
130 template <
class RhsEval>
133 for (
unsigned i=0; i < this->size(); ++i)
143 for (
unsigned i=0; i < this->size(); ++i)
144 (*
this)[i] = other[i];
Provides the auxiliary methods required for consideration of the energy equation.
Definition energymodule.hh:50
Implements a vector representing mass, molar or volumetric rates.
Definition ncpratevector.hh:51
NcpRateVector(const NcpRateVector &value)
Definition ncpratevector.hh:82
void setMolarRate(const ParentType &value)
Set a molar rate of the conservation quantities.
Definition ncpratevector.hh:103
NcpRateVector & operator=(const NcpRateVector &other)
Assignment operator from another rate vector.
Definition ncpratevector.hh:141
void setEnthalpyRate(const RhsEval &rate)
Set an enthalpy rate [J/As] where .
Definition ncpratevector.hh:110
NcpRateVector & operator=(const RhsEval &value)
Assignment operator from a scalar or a function evaluation.
Definition ncpratevector.hh:131
void setVolumetricRate(const FluidState &fluidState, unsigned phaseIdx, const RhsEval &volume)
Set a volumetric rate of a phase.
Definition ncpratevector.hh:117
void setMassRate(const ParentType &value)
Set a mass rate of the conservation quantities.
Definition ncpratevector.hh:89
NcpRateVector(const Evaluation &value)
Definition ncpratevector.hh:74
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
The primary variable and equation indices for the compositional multi-phase NCP model.