23#ifndef OPM_WELLINTERFACE_INDICES_HEADER_INCLUDED
24#define OPM_WELLINTERFACE_INDICES_HEADER_INCLUDED
26#include <opm/material/densead/Evaluation.hpp>
28#include <opm/simulators/wells/WellInterfaceFluidSystem.hpp>
33template<
class Flu
idSystem,
class Indices>
40 using Scalar =
typename FluidSystem::Scalar;
41 using Eval = DenseAd::Evaluation<Scalar, Indices::numEq>;
43 int flowPhaseToModelCompIdx(
const int phaseIdx)
const;
44 int modelCompIdxToFlowCompIdx(
const unsigned compIdx)
const;
45 double scalingFactor(
const int phaseIdx)
const;
47 template <
class EvalWell>
48 Eval restrictEval(
const EvalWell& in)
const
51 out.setValue(in.value());
52 for (
int eqIdx = 0; eqIdx < Indices::numEq; ++eqIdx) {
53 out.setDerivative(eqIdx, in.derivative(eqIdx));
63 const int pvtRegionIdx,
64 const int num_components,
66 const int index_of_well,
67 const std::vector<PerforationData>& perf_data);
Class encapsulating some information about parallel wells.
Definition ParallelWellInfo.hpp:184
Convert component rates at surface conditions to phase (voidage) rates at reservoir conditions.
Definition RateConverter.hpp:70
Definition WellInterfaceFluidSystem.hpp:47
Definition WellInterfaceIndices.hpp:35
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition BlackoilPhases.hpp:27