WellInterface.hpp
Go to the documentation of this file.
118 static constexpr bool has_disgas_in_water = getPropValue<TypeTag, Properties::EnableDisgasInWater>();
119 static constexpr bool has_saltPrecip = getPropValue<TypeTag, Properties::EnableSaltPrecipitation>();
typename BlackoilWellModelGeneric< Scalar >::GLiftProdWells GLiftProdWells Definition: BlackoilWellModel.hpp:113 typename BlackoilWellModelGeneric< Scalar >::GLiftOptWells GLiftOptWells Definition: BlackoilWellModel.hpp:112 typename BlackoilWellModelGeneric< Scalar >::GLiftWellStateMap GLiftWellStateMap Definition: BlackoilWellModel.hpp:115 Definition: ConvergenceReport.hpp:38 Definition: DeferredLogger.hpp:57 std::set< int > GLiftSyncGroups Definition: GasLiftSingleWellGeneric.hpp:59 Definition: GasLiftSingleWell.hpp:36 Definition: GroupState.hpp:38 Class encapsulating some information about parallel wells. Definition: ParallelWellInfo.hpp:186 Definition: RateConverter.hpp:71 Manages the initializing and running of time dependent problems. Definition: simulator.hh:92 Definition: SingleWellState.hpp:42 Definition: WellInterfaceFluidSystem.hpp:51 static constexpr int Oil Definition: WellInterfaceFluidSystem.hpp:64 static constexpr int Water Definition: WellInterfaceFluidSystem.hpp:63 static constexpr int Gas Definition: WellInterfaceFluidSystem.hpp:65 int pvtRegionIdx() const Definition: WellInterfaceGeneric.hpp:119 const std::vector< FluidSystem::Scalar > & wellIndex() const Definition: WellInterfaceGeneric.hpp:141 Definition: WellInterfaceIndices.hpp:34 DenseAd::Evaluation< Scalar, Indices::numEq > Eval Definition: WellInterfaceIndices.hpp:40 Definition: WellInterface.hpp:73 const std::vector< Scalar > & compFrac() const bool updateWellControl(const Simulator &simulator, const IndividualOrGroup iog, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:195 virtual std::vector< Scalar > computeCurrentWellRates(const Simulator &simulator, DeferredLogger &deferred_logger) const =0 GetPropType< TypeTag, Properties::Simulator > Simulator Definition: WellInterface.hpp:78 virtual ConvergenceReport getWellConvergence(const Simulator &simulator, const WellState< Scalar > &well_state, const std::vector< Scalar > &B_avg, DeferredLogger &deferred_logger, const bool relax_tolerance) const =0 WellInterface(const Well &well, const ParallelWellInfo< Scalar > &pw_info, const int time_step, const ModelParameters ¶m, const RateConverterType &rate_converter, const int pvtRegionIdx, const int num_components, const int num_phases, const int index_of_well, const std::vector< PerforationData< Scalar > > &perf_data) Constructor. Definition: WellInterface_impl.hpp:55 virtual void recoverWellSolutionAndUpdateWellState(const Simulator &simulator, const BVector &x, WellState< Scalar > &well_state, DeferredLogger &deferred_logger)=0 void getMobility(const Simulator &simulator, const int perf, std::vector< Value > &mob, Callback &extendEval, DeferredLogger &deferred_logger) const Definition: WellInterface_impl.hpp:1773 virtual void computeWellPotentials(const Simulator &simulator, const WellState< Scalar > &well_state, std::vector< Scalar > &well_potentials, DeferredLogger &deferred_logger)=0 void assembleWellEq(const Simulator &simulator, const double dt, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:782 typename GasLiftSingleWellGeneric< Scalar >::GLiftSyncGroups GLiftSyncGroups Definition: WellInterface.hpp:91 virtual void computeWellRatesWithBhp(const Simulator &ebosSimulator, const Scalar &bhp, std::vector< Scalar > &well_flux, DeferredLogger &deferred_logger) const =0 virtual void addWellContributions(SparseMatrixAdapter &) const =0 typename WellInterfaceFluidSystem< FluidSystem >::RateConverterType RateConverterType Definition: WellInterface.hpp:100 const std::vector< RateVector > & connectionRates() const Definition: WellInterface.hpp:351 BlackOilFluidState< Eval, FluidSystem, has_temperature, has_energy, Indices::compositionSwitchIdx >=0, has_watVapor, has_brine, has_saltPrecip, has_disgas_in_water, Indices::numPhases > FluidState Definition: WellInterface.hpp:132 virtual void assembleWellEqWithoutIteration(const Simulator &simulator, const double dt, const WellInjectionControls &inj_controls, const WellProductionControls &prod_controls, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, DeferredLogger &deferred_logger)=0 virtual void updateIPR(const Simulator &simulator, DeferredLogger &deferred_logger) const =0 virtual void checkOperabilityUnderBHPLimit(const WellState< Scalar > &well_state, const Simulator &simulator, DeferredLogger &deferred_logger)=0 std::vector< RateVector > connectionRates_ Definition: WellInterface.hpp:389 bool wellUnderZeroRateTarget(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger) const Definition: WellInterface_impl.hpp:1444 void computeConnLevelProdInd(const FluidState &fs, const std::function< Scalar(const Scalar)> &connPICalc, const std::vector< Scalar > &mobility, Scalar *connPI) const Definition: WellInterface_impl.hpp:1878 bool updateWellStateWithTHPTargetProd(const Simulator &simulator, WellState< Scalar > &well_state, DeferredLogger &deferred_logger) const Definition: WellInterface_impl.hpp:1848 void addCellRates(RateVector &rates, int cellIdx) const Definition: WellInterface_impl.hpp:874 virtual void calculateExplicitQuantities(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger)=0 Dune::BCRSMatrix< Opm::MatrixBlock< Scalar, 1, 1 > > PressureMatrix Definition: WellInterface.hpp:97 Scalar volumetricSurfaceRateForConnection(int cellIdx, int phaseIdx) const Definition: WellInterface_impl.hpp:890 virtual std::optional< Scalar > computeBhpAtThpLimitProdWithAlq(const Simulator &ebos_simulator, const SummaryState &summary_state, const Scalar alq_value, DeferredLogger &deferred_logger) const =0 virtual void addWellPressureEquations(PressureMatrix &mat, const BVector &x, const int pressureVarIndex, const bool use_well_weights, const WellState< Scalar > &well_state) const =0 virtual void init(const PhaseUsage *phase_usage_arg, const std::vector< Scalar > &depth_arg, const Scalar gravity_arg, const int num_cells, const std::vector< Scalar > &B_avg, const bool changed_to_open_this_step) Definition: WellInterface_impl.hpp:92 virtual void apply(const BVector &x, BVector &Ax) const =0 Ax = Ax - C D^-1 B x. static const bool has_temperature Definition: WellInterface.hpp:112 virtual void updatePrimaryVariables(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger)=0 bool iterateWellEquations(const Simulator &simulator, const double dt, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:481 GetPropType< TypeTag, Properties::IntensiveQuantities > IntensiveQuantities Definition: WellInterface.hpp:82 virtual void updateProductivityIndex(const Simulator &simulator, const WellProdIndexCalculator< Scalar > &wellPICalc, WellState< Scalar > &well_state, DeferredLogger &deferred_logger) const =0 GetPropType< TypeTag, Properties::Scalar > Scalar Definition: WellInterface.hpp:79 void checkWellOperability(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:910 std::optional< Scalar > estimateOperableBhp(const Simulator &ebos_simulator, const double dt, WellState< Scalar > &well_state, const SummaryState &summary_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:611 void updateWellOperability(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:1013 void updateWellStateRates(const Simulator &simulator, WellState< Scalar > &well_state, DeferredLogger &deferred_logger) const Definition: WellInterface_impl.hpp:1540 GetPropType< TypeTag, Properties::MaterialLaw > MaterialLaw Definition: WellInterface.hpp:83 virtual void updateWellStateWithTarget(const Simulator &simulator, const GroupState< Scalar > &group_state, WellState< Scalar > &well_state, DeferredLogger &deferred_logger) const Definition: WellInterface_impl.hpp:1067 virtual Scalar getRefDensity() const =0 Eval getPerfCellPressure(const FluidState &fs) const Definition: WellInterface_impl.hpp:1758 Dune::BlockVector< VectorBlockType > BVector Definition: WellInterface.hpp:96 bool changed_to_stopped_this_step_ Definition: WellInterface.hpp:391 virtual void solveEqAndUpdateWellState(const Simulator &simulator, WellState< Scalar > &well_state, DeferredLogger &deferred_logger)=0 static constexpr bool has_polymermw Definition: WellInterface.hpp:114 GetPropType< TypeTag, Properties::Grid > Grid Definition: WellInterface.hpp:77 void updateConnectionTransmissibilityFactor(const Simulator &simulator, SingleWellState< Scalar > &ws) const Definition: WellInterface_impl.hpp:1729 bool stoppedOrZeroRateTarget(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger) const Definition: WellInterface_impl.hpp:1480 virtual void computeWellRatesWithBhpIterations(const Simulator &simulator, const Scalar &bhp, std::vector< Scalar > &well_flux, DeferredLogger &deferred_logger) const =0 typename BlackoilWellModel< TypeTag >::GLiftProdWells GLiftProdWells Definition: WellInterface.hpp:88 virtual void updateIPRImplicit(const Simulator &simulator, WellState< Scalar > &well_state, DeferredLogger &deferred_logger)=0 GetPropType< TypeTag, Properties::FluidSystem > FluidSystem Definition: WellInterface.hpp:80 static constexpr bool has_disgas_in_water Definition: WellInterface.hpp:118 void prepareWellBeforeAssembling(const Simulator &simulator, const double dt, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:816 static constexpr bool has_saltPrecip Definition: WellInterface.hpp:119 bool gliftBeginTimeStepWellTestIterateWellEquations(const Simulator &ebos_simulator, const double dt, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:935 virtual int setPrimaryVars(typename std::vector< Scalar >::const_iterator) Definition: WellInterface.hpp:361 GetPropType< TypeTag, Properties::RateVector > RateVector Definition: WellInterface.hpp:85 virtual void updateWaterThroughput(const double dt, WellState< Scalar > &well_state) const =0 void computeConnLevelInjInd(const FluidState &fs, const Phase preferred_phase, const std::function< Scalar(const Scalar)> &connIICalc, const std::vector< Scalar > &mobility, Scalar *connII, DeferredLogger &deferred_logger) const Definition: WellInterface_impl.hpp:1913 void solveWellEquation(const Simulator &simulator, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:725 void updateConnectionDFactor(const Simulator &simulator, SingleWellState< Scalar > &ws) const Definition: WellInterface_impl.hpp:1667 virtual bool iterateWellEqWithControl(const Simulator &simulator, const double dt, const WellInjectionControls &inj_controls, const WellProductionControls &prod_controls, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, DeferredLogger &deferred_logger)=0 std::vector< Scalar > initialWellRateFractions(const Simulator &ebosSimulator, const WellState< Scalar > &well_state) const Definition: WellInterface_impl.hpp:1493 virtual Scalar connectionDensity(const int globalConnIdx, const int openConnIdx) const =0 virtual bool jacobianContainsWellContributions() const Wether the Jacobian will also have well contributions in it. Definition: WellInterface.hpp:278 bool updateWellOperabilityFromWellEq(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:1049 virtual bool iterateWellEqWithSwitching(const Simulator &simulator, const double dt, const WellInjectionControls &inj_controls, const WellProductionControls &prod_controls, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, DeferredLogger &deferred_logger, const bool fixed_control=false, const bool fixed_status=false)=0 Dune::FieldMatrix< Scalar, Indices::numEq, Indices::numEq > MatrixBlockType Definition: WellInterface.hpp:94 virtual std::vector< Scalar > getPrimaryVars() const Definition: WellInterface.hpp:356 void gliftBeginTimeStepWellTestUpdateALQ(const Simulator &simulator, WellState< Scalar > &well_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:969 void wellTesting(const Simulator &simulator, const double simulation_time, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, WellTestState &welltest_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:376 Scalar computeConnectionDFactor(const int perf, const IntensiveQuantities &intQuants, const SingleWellState< Scalar > &ws) const Definition: WellInterface_impl.hpp:1687 bool solveWellWithBhp(const Simulator &simulator, const double dt, const Scalar bhp, WellState< Scalar > &well_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:634 bool solveWellWithZeroRate(const Simulator &simulator, const double dt, WellState< Scalar > &well_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:670 bool solveWellForTesting(const Simulator &simulator, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:690 GetPropType< TypeTag, Properties::Indices > Indices Definition: WellInterface.hpp:81 bool solveWellWithTHPConstraint(const Simulator &simulator, const double dt, const Well::InjectionControls &inj_controls, const Well::ProductionControls &prod_controls, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:514 bool wellUnderZeroGroupRateTarget(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger, std::optional< bool > group_control=std::nullopt) const Definition: WellInterface_impl.hpp:1461 bool thp_update_iterations Definition: WellInterface.hpp:392 Dune::FieldVector< Scalar, Indices::numEq > VectorBlockType Definition: WellInterface.hpp:93 void assembleWellEqWithoutIteration(const Simulator &simulator, const double dt, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, DeferredLogger &deferred_logger) Definition: WellInterface_impl.hpp:797 GetPropType< TypeTag, Properties::SparseMatrixAdapter > SparseMatrixAdapter Definition: WellInterface.hpp:84 typename BlackoilWellModel< TypeTag >::GLiftOptWells GLiftOptWells Definition: WellInterface.hpp:87 bool updateWellControlAndStatusLocalIteration(const Simulator &simulator, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, const Well::InjectionControls &inj_controls, const Well::ProductionControls &prod_controls, const Scalar WQTotal, DeferredLogger &deferred_logger, const bool fixed_control=false, const bool fixed_status=false) Definition: WellInterface_impl.hpp:271 virtual void checkOperabilityUnderTHPLimit(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger)=0 static constexpr bool has_zFraction Definition: WellInterface.hpp:109 virtual void initPrimaryVariablesEvaluation()=0 typename BlackoilWellModel< TypeTag >::GLiftWellStateMap GLiftWellStateMap Definition: WellInterface.hpp:90 Definition: WellProdIndexCalculator.hpp:37 Definition: WellState.hpp:62 Definition: blackoilboundaryratevector.hh:37 typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(.... Definition: propertysystem.hh:235 Solver parameters for the BlackoilModel. Definition: BlackoilModelParameters.hpp:147 Static data associated with a well perforation. Definition: PerforationData.hpp:30 Definition: BlackoilPhases.hpp:46 |