22#ifndef OPM_MULTISEGMENTWELL_EVAL_HEADER_INCLUDED
23#define OPM_MULTISEGMENTWELL_EVAL_HEADER_INCLUDED
25#include <opm/simulators/wells/MultisegmentWellEquations.hpp>
26#include <opm/simulators/wells/MultisegmentWellGeneric.hpp>
27#include <opm/simulators/wells/MultisegmentWellPrimaryVariables.hpp>
28#include <opm/simulators/wells/MultisegmentWellSegments.hpp>
29#include <opm/simulators/wells/ParallelWellInfo.hpp>
31#include <opm/material/densead/Evaluation.hpp>
38class ConvergenceReport;
42template<
class Flu
idSystem,
class Indices>
class WellInterfaceIndices;
43template<
class Scalar>
class WellState;
45template<
typename Flu
idSystem,
typename Indices>
49 using Scalar =
typename FluidSystem::Scalar;
51 static constexpr int numWellEq = PrimaryVariables::numWellEq;
52 static constexpr int SPres = PrimaryVariables::SPres;
53 static constexpr int WQTotal = PrimaryVariables::WQTotal;
58 using BVector =
typename Equations::BVector;
59 using BVectorWell =
typename Equations::BVectorWell;
64 using EvalWell =
typename PrimaryVariables::EvalWell;
65 using Eval = DenseAd::Evaluation<Scalar, Indices::numEq>;
76 void initMatrixAndVectors();
78 void assembleDefaultPressureEq(
const int seg,
83 void assembleICDPressureEq(
const int seg,
90 void assembleAccelerationAndHydroPressureLosses(
const int seg,
95 void assemblePressureEq(
const int seg,
104 const std::vector<Scalar>&
B_avg,
106 const Scalar max_residual_allowed,
114 std::pair<bool, std::vector<Scalar> >
115 getFiniteWellResiduals(
const std::vector<Scalar>&
B_avg,
129 void assembleAccelerationPressureLoss(
const int seg,
132 EvalWell pressureDropAutoICD(
const int seg,
136 EvalWell extendEval(
const Eval&
in)
const;
145 std::vector<Scalar> cell_perforation_depth_diffs_;
148 std::vector<Scalar> cell_perforation_pressure_diffs_;
Represents the convergence status of the whole simulator, to make it possible to query and store the ...
Definition ConvergenceReport.hpp:38
Definition DeferredLogger.hpp:57
Definition MultisegmentWellEval.hpp:47
Equations linSys_
The equation system.
Definition MultisegmentWellEval.hpp:140
const Equations & linSys() const
Returns a const reference to equation system.
Definition MultisegmentWellEval.hpp:69
PrimaryVariables primary_variables_
The primary variables.
Definition MultisegmentWellEval.hpp:141
MSWSegments segments_
Segment properties.
Definition MultisegmentWellEval.hpp:142
ConvergenceReport getWellConvergence(const WellState< Scalar > &well_state, const std::vector< Scalar > &B_avg, DeferredLogger &deferred_logger, const Scalar max_residual_allowed, const Scalar tolerance_wells, const Scalar relaxed_inner_tolerance_flow_ms_well, const Scalar tolerance_pressure_ms_wells, const Scalar relaxed_inner_tolerance_pressure_ms_well, const bool relax_tolerance, const bool well_is_stopped) const
check whether the well equations get converged for this well
Definition MultisegmentWellEval.cpp:82
Definition MultisegmentWellGeneric.hpp:39
Definition MultisegmentWellPrimaryVariables.hpp:45
Definition MultisegmentWellSegments.hpp:46
Class encapsulating some information about parallel wells.
Definition ParallelWellInfo.hpp:195
Definition WellInterfaceIndices.hpp:34
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 blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242