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>
38class ConvergenceReport;
43class WellContributions;
44template<
class Flu
idSystem,
class Indices,
class Scalar>
class WellInterfaceIndices;
47template<
class Flu
idSystem,
class Indices,
class Scalar>
56 static constexpr bool has_wfrac_variable = PrimaryVariables::has_wfrac_variable;
57 static constexpr bool has_gfrac_variable = PrimaryVariables::has_gfrac_variable;
58 static constexpr int WFrac = PrimaryVariables::WFrac;
59 static constexpr int GFrac = PrimaryVariables::GFrac;
60 static constexpr int SFrac = PrimaryVariables::SFrac;
64 using Eval = DenseAd::Evaluation<Scalar, Indices::numEq>;
76 EvalWell extendEval(
const Eval& in)
const;
79 void computeAccumWell();
82 const std::vector<double>& B_avg,
83 const double maxResidualAllowed,
84 const double tol_wells,
85 const double relaxed_tolerance_flow,
86 const bool relax_tolerance,
87 std::vector<double>& res,
90 void init(std::vector<double>& perf_depth,
91 const std::vector<double>& depth_arg,
93 const bool has_polymermw);
95 void updateWellStateFromPrimaryVariables(
const bool stop_or_zero_rate_target,
102 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:38
Definition: StandardWellEquations.hpp:45
Definition: StandardWellEval.hpp:49
const StandardWellEquations< Scalar, Indices::numEq > & linSys() const
Returns a const reference to equation system.
Definition: StandardWellEval.hpp:68
StandardWellConnections< FluidSystem, Indices, Scalar > connections_
Connection level values.
Definition: StandardWellEval.hpp:105
StandardWellEquations< Scalar, Indices::numEq > linSys_
Linear equation system.
Definition: StandardWellEval.hpp:104
PrimaryVariables primary_variables_
Primary variables for well.
Definition: StandardWellEval.hpp:99
Class holding primary variables for StandardWell.
Definition: StandardWellPrimaryVariables.hpp:41
DenseAd::DynamicEvaluation< Scalar, numStaticWellEq+Indices::numEq+1 > EvalWell
Evaluation for the well equations.
Definition: StandardWellPrimaryVariables.hpp:86
static constexpr int numWellConservationEq
Number of the conservation equations.
Definition: StandardWellPrimaryVariables.hpp:66
static constexpr int WQTotal
The index for the weighted total rate.
Definition: StandardWellPrimaryVariables.hpp:72
static constexpr int Bhp
The index for Bhp in primary variables and the index of well control equation.
Definition: StandardWellPrimaryVariables.hpp:77
Definition: WellInterfaceIndices.hpp:33
The state of a set of wells, tailored for use by the fully implicit blackoil simulator.
Definition: WellState.hpp:60
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: BlackoilPhases.hpp:27