22#ifndef OPM_MULTISEGMENTWELL_GENERIC_HEADER_INCLUDED
23#define OPM_MULTISEGMENTWELL_GENERIC_HEADER_INCLUDED
33enum class WellSegmentCompPressureDrop;
35template<
typename Scalar,
typename IndexTraits>
class WellState;
37template<
typename Scalar,
typename IndexTraits>
38class MultisegmentWellGeneric
42 const WellSegments& segmentSet()
const;
46 int segmentNumberToIndex(
const int segment_number)
const;
55 void scaleSegmentRatesWithWellRates(
const std::vector<std::vector<int>>& segment_inlets,
56 const std::vector<std::vector<int>>& segment_perforations,
61 WellSegmentCompPressureDrop compPressureDrop()
const;
65 bool repeatedStagnation(
const std::vector<Scalar>& measure_history,
bool& regularize,
DeferredLogger& deferred_logger)
const;
67 bool accelerationalPressureLossConsidered()
const;
68 bool frictionalPressureLossConsidered()
const;
70 Scalar getSegmentDp(
const int seg,
72 const std::vector<Scalar>& seg_dp)
const;
Definition DeferredLogger.hpp:57
bool update_relaxation_factor(const std::vector< Scalar > &measure_history, Scalar &relaxation_factor, bool ®ularize, DeferredLogger &deferred_logger) const
Detect oscillation or stagnation based on the residual measure history.
Definition MultisegmentWellGeneric.cpp:149
int numberOfSegments() const
number of segments for this well
Definition MultisegmentWellGeneric.cpp:125
Definition WellInterfaceGeneric.hpp:53
The state of a set of wells, tailored for use by the fully implicit blackoil simulator.
Definition WellState.hpp:66
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43