|
opm-simulators
|
Implements a vector representing rates of conserved quantities. More...
#include <immiscibleratevector.hh>
Public Member Functions | |
| ImmiscibleRateVector () | |
| Default constructor. | |
| ImmiscibleRateVector (const Evaluation &value) | |
| Constructor with assignment from scalar. More... | |
| ImmiscibleRateVector (const ImmiscibleRateVector &value) | |
| Copy constructor. More... | |
| void | setMassRate (const ParentType &value) |
| Set a mass rate of the conservation quantities. More... | |
| void | setMolarRate (const ParentType &value) |
| Set a molar rate of the conservation quantities. More... | |
| template<class RhsEval > | |
| void | setEnthalpyRate (const RhsEval &rate) |
Set an enthalpy rate [J/As] where . More... | |
| template<class FluidState , class RhsEval > | |
| void | setVolumetricRate (const FluidState &fluidState, unsigned phaseIdx, const RhsEval &volume) |
| Set a volumetric rate of a phase. More... | |
| template<class RhsEval > | |
| ImmiscibleRateVector & | operator= (const RhsEval &value) |
| Assignment operator from a scalar or a function evaluation. | |
| ImmiscibleRateVector & | operator= (const ImmiscibleRateVector &other) |
| Assignment operator from another rate vector. | |
Implements a vector representing rates of conserved quantities.
This class is basically a Dune::FieldVector which can be set using either mass, molar or volumetric rates.
|
inlineexplicit |
Constructor with assignment from scalar.
| value | The scalar value to which all entries of the vector will be set. |
|
inline |
Copy constructor.
| value | The rate vector that will be duplicated. |
|
inline |
Set an enthalpy rate [J/As] where
.
If the energy equation is not enabled, this method is a no-op.
| rate | The enthalpy rate in |
|
inline |
Set a mass rate of the conservation quantities.
Enthalpy is not taken into account seperately here. This means that it must be set to the desired value in the parameter.
| value | The mass rate in (unit for areal fluxes) |
|
inline |
Set a molar rate of the conservation quantities.
Enthalpy is not taken into account seperately here. This means that it must be set to the desired value in the parameter.
| value | The new molar rate in |
|
inline |
Set a volumetric rate of a phase.
The enthalpy transported into the domain is taken into account by this method.
| fluidState | The thermodynamic state of the fluids which should be considered. The density and the composition of the considered phase must be specified before calling this method. |
| phaseIdx | The index of the fluid phase for which the given amount of volume should be specified. |
| volume | The volumetric rate of the fluid phase in (unit for areal fluxes) |