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>
30#include <opm/material/densead/Evaluation.hpp>
37class ConvergenceReport;
41template<
class Flu
idSystem,
class Indices>
class WellInterfaceIndices;
42template<
class Scalar>
class WellState;
44template<
typename Flu
idSystem,
typename Indices>
48 using Scalar =
typename FluidSystem::Scalar;
50 static constexpr int numWellEq = PrimaryVariables::numWellEq;
51 static constexpr int SPres = PrimaryVariables::SPres;
52 static constexpr int WQTotal = PrimaryVariables::WQTotal;
57 using BVector =
typename Equations::BVector;
58 using BVectorWell =
typename Equations::BVectorWell;
63 using EvalWell =
typename PrimaryVariables::EvalWell;
64 using Eval = DenseAd::Evaluation<Scalar, Indices::numEq>;
74 void initMatrixAndVectors();
76 void assembleDefaultPressureEq(
const int seg,
81 void assembleICDPressureEq(
const int seg,
88 void assembleAccelerationAndHydroPressureLosses(
const int seg,
93 void assemblePressureEq(
const int seg,
102 const std::vector<Scalar>&
B_avg,
104 const Scalar max_residual_allowed,
112 std::pair<bool, std::vector<Scalar> >
113 getFiniteWellResiduals(
const std::vector<Scalar>&
B_avg,
127 void assembleAccelerationPressureLoss(
const int seg,
130 EvalWell pressureDropAutoICD(
const int seg,
134 EvalWell extendEval(
const Eval&
in)
const;
143 std::vector<Scalar> cell_perforation_depth_diffs_;
146 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:46
Equations linSys_
The equation system.
Definition MultisegmentWellEval.hpp:138
const Equations & linSys() const
Returns a const reference to equation system.
Definition MultisegmentWellEval.hpp:68
PrimaryVariables primary_variables_
The primary variables.
Definition MultisegmentWellEval.hpp:139
MSWSegments segments_
Segment properties.
Definition MultisegmentWellEval.hpp:140
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:81
Definition MultisegmentWellGeneric.hpp:42
Definition MultisegmentWellPrimaryVariables.hpp:45
Definition MultisegmentWellSegments.hpp:45
Definition WellInterfaceIndices.hpp:34
The state of a set of wells, tailored for use by the fully implicit blackoil simulator.
Definition WellState.hpp:62
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