23#ifndef OPM_STANDARDWELL_EVAL_HEADER_INCLUDED
24#define OPM_STANDARDWELL_EVAL_HEADER_INCLUDED
26#include <opm/simulators/wells/StandardWellConnections.hpp>
27#include <opm/simulators/wells/StandardWellEquations.hpp>
28#include <opm/simulators/wells/StandardWellPrimaryVariables.hpp>
30#include <opm/material/densead/Evaluation.hpp>
37class ConvergenceReport;
42class WellContributions;
43template<
class Flu
idSystem,
class Indices>
class WellInterfaceIndices;
46template<
class Flu
idSystem,
class Indices>
50 using Scalar =
typename FluidSystem::Scalar;
53 static constexpr int Bhp = PrimaryVariables::Bhp;
54 static constexpr int WQTotal= PrimaryVariables::WQTotal;
55 static constexpr int numWellConservationEq = PrimaryVariables::numWellConservationEq;
57 static constexpr bool has_wfrac_variable = PrimaryVariables::has_wfrac_variable;
58 static constexpr bool has_gfrac_variable = PrimaryVariables::has_gfrac_variable;
59 static constexpr int WFrac = PrimaryVariables::WFrac;
60 static constexpr int GFrac = PrimaryVariables::GFrac;
61 static constexpr int SFrac = PrimaryVariables::SFrac;
64 using EvalWell =
typename PrimaryVariables::EvalWell;
65 using Eval = DenseAd::Evaluation<Scalar, Indices::numEq>;
66 using BVectorWell =
typename StandardWellEquations<Scalar,Indices::numEq>::BVectorWell;
77 EvalWell extendEval(
const Eval& in)
const;
80 void computeAccumWell();
83 const std::vector<double>& B_avg,
84 const double maxResidualAllowed,
85 const double tol_wells,
86 const double relaxed_tolerance_flow,
87 const bool relax_tolerance,
88 const bool well_is_stopped,
89 std::vector<double>& res,
92 void init(std::vector<double>& perf_depth,
93 const std::vector<double>& depth_arg,
95 const bool has_polymermw);
97 void updateWellStateFromPrimaryVariables(
const bool stop_or_zero_rate_target,
99 const SummaryState& summary_state,
105 std::vector<double> F0_;
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 StandardWellConnections.hpp:42
Definition StandardWellEquations.hpp:47
Definition StandardWellEval.hpp:48
const StandardWellEquations< Scalar, Indices::numEq > & linSys() const
Returns a const reference to equation system.
Definition StandardWellEval.hpp:69
StdWellConnections connections_
Connection level values.
Definition StandardWellEval.hpp:108
PrimaryVariables primary_variables_
Primary variables for well.
Definition StandardWellEval.hpp:102
StandardWellEquations< Scalar, Indices::numEq > linSys_
Linear equation system.
Definition StandardWellEval.hpp:107
Class holding primary variables for StandardWell.
Definition StandardWellPrimaryVariables.hpp:41
Definition WellInterfaceIndices.hpp:35
The state of a set of wells, tailored for use by the fully implicit blackoil simulator.
Definition WellState.hpp:61
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition BlackoilPhases.hpp:27