|
StandardWell.hpp
Go to the documentation of this file.
68 // dealing with derivatives. It can be beneficial to make functions can work with either AD or scalar value.
69 // And also, it can also be beneficial to make these functions hanle different types of AD variables.
Contains the classes required to extend the black-oil model by bioeffects. Contains the classes required to extend the black-oil model by brine. Contains the classes required to extend the black-oil model by solvent component. For details,... Contains the classes required to extend the black-oil model to include the effects of foam. Contains the classes required to extend the black-oil model by polymer. Contains the classes required to extend the black-oil model by solvents. Contains the high level supplements required to extend the black oil model to include the effects of ... Definition: blackoilfoammodules.hh:58 Contains the high level supplements required to extend the black oil model by polymer. Definition: blackoilpolymermodules.hh:64 Definition: ConvergenceReport.hpp:38 Definition: DeferredLogger.hpp:57 Class encapsulating some information about parallel wells. Definition: ParallelWellInfo.hpp:198 Definition: StandardWellEval.hpp:46 DenseAd::Evaluation< Scalar, Indices::numDerivatives > Eval Definition: StandardWellEval.hpp:64 typename StandardWellEquations< Scalar, IndexTraits, Indices::numEq >::BVectorWell BVectorWell Definition: StandardWellEval.hpp:65 typename PrimaryVariables::EvalWell EvalWell Definition: StandardWellEval.hpp:63 static constexpr int WQTotal Definition: StandardWellEval.hpp:53 Definition: StandardWell.hpp:60 void calculateExplicitQuantities(const Simulator &simulator, const WellStateType &well_state, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:1436 EvalWell wpolymermw(const Scalar throughput, const EvalWell &water_velocity, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:2077 void updateWellStateFromPrimaryVariables(WellStateType &well_state, const SummaryState &summary_state, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:805 static constexpr int numStaticWellEq Definition: StandardWell.hpp:102 WellConnectionProps computePropertiesForWellConnectionPressures(const Simulator &simulator, const WellStateType &well_state) const Definition: StandardWell_impl.hpp:1170 typename StdWellEval::BVectorWell BVectorWell Definition: StandardWell.hpp:122 std::vector< Scalar > computeWellPotentialWithTHP(const Simulator &ebosSimulator, const WellGroupHelperType &wgHelper, DeferredLogger &deferred_logger, const WellStateType &well_state) const Definition: StandardWell_impl.hpp:1621 void addWellContributions(SparseMatrixAdapter &mat) const override Definition: StandardWell_impl.hpp:1974 std::vector< Scalar > getPrimaryVars() const override Definition: StandardWell_impl.hpp:2642 void addWellPressureEquations(PressureMatrix &mat, const BVector &x, const int pressureVarIndex, const bool use_well_weights, const WellStateType &well_state) const override Definition: StandardWell_impl.hpp:1982 void computeWellPotentials(const Simulator &simulator, const WellStateType &well_state, const WellGroupHelperType &wgHelper, std::vector< Scalar > &well_potentials, DeferredLogger &deferred_logger) override computing the well potentials for group control Definition: StandardWell_impl.hpp:1796 void updateWaterMobilityWithPolymer(const Simulator &simulator, const int perf, std::vector< EvalWell > &mob_water, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:1908 std::vector< Scalar > computeCurrentWellRates(const Simulator &ebosSimulator, DeferredLogger &deferred_logger) const override Definition: StandardWell_impl.hpp:2604 void calculateSinglePerf(const Simulator &simulator, const int perf, WellStateType &well_state, std::vector< RateVector > &connectionRates, std::vector< EvalWell > &cq_s, EvalWell &water_flux_s, EvalWell &cq_s_zfrac_effective, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:506 bool iterateWellEqWithControl(const Simulator &simulator, const double dt, const Well::InjectionControls &inj_controls, const Well::ProductionControls &prod_controls, const WellGroupHelperType &wgHelper, WellStateType &well_state, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:2410 void updatePrimaryVariablesNewton(const BVectorWell &dwells, const bool stop_or_zero_rate_target, DeferredLogger &deferred_logger) Definition: StandardWell_impl.hpp:782 bool computeWellPotentialsImplicit(const Simulator &ebos_simulator, const WellGroupHelperType &wgHelper, std::vector< Scalar > &well_potentials, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:1657 void computeWellRatesWithBhpIterations(const Simulator &ebosSimulator, const Scalar &bhp, const WellGroupHelperType &wgHelper, std::vector< Scalar > &well_flux, DeferredLogger &deferred_logger) const override Definition: StandardWell_impl.hpp:1550 void computeWellConnectionPressures(const Simulator &simulator, const WellStateType &well_state, DeferredLogger &deferred_logger) Definition: StandardWell_impl.hpp:1396 StandardWell(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_conservation_quantities, const int num_phases, const int index_of_well, const std::vector< PerforationData< Scalar > > &perf_data) Definition: StandardWell_impl.hpp:52 typename StdWellEval::StdWellConnections::Properties WellConnectionProps Definition: StandardWell.hpp:271 void updateConnectionRatePolyMW(const EvalWell &cq_s_poly, const IntensiveQuantities &int_quants, const WellStateType &well_state, const int perf, std::vector< RateVector > &connectionRates, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:2226 void assembleWellEqWithoutIteration(const Simulator &simulator, const WellGroupHelperType &wgHelper, const double dt, const Well::InjectionControls &inj_controls, const Well::ProductionControls &prod_controls, WellStateType &well_state, DeferredLogger &deferred_logger, const bool solving_with_zero_rate) override Definition: StandardWell_impl.hpp:341 void computeWellRatesWithBhp(const Simulator &ebosSimulator, const Scalar &bhp, std::vector< Scalar > &well_flux, DeferredLogger &deferred_logger) const override Definition: StandardWell_impl.hpp:1502 void getMobility(const Simulator &simulator, const int perf, std::vector< Value > &mob, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:704 void getTransMult(Value &trans_mult, const Simulator &simulator, const int cell_indx) const Definition: StandardWell_impl.hpp:684 void updateIPRImplicit(const Simulator &simulator, const WellGroupHelperType &wgHelper, WellStateType &well_state, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:921 void updateIPR(const Simulator &simulator, DeferredLogger &deferred_logger) const override Definition: StandardWell_impl.hpp:829 void computeWellConnectionDensitesPressures(const Simulator &simulator, const WellStateType &well_state, const WellConnectionProps &props, DeferredLogger &deferred_logger) Definition: StandardWell_impl.hpp:1340 std::optional< Scalar > computeBhpAtThpLimitProdWithAlq(const Simulator &ebos_simulator, const WellGroupHelperType &wgHelper, const SummaryState &summary_state, const Scalar alq_value, DeferredLogger &deferred_logger, bool iterate_if_no_solution) const override Definition: StandardWell_impl.hpp:2285 void updateWellState(const Simulator &simulator, const BVectorWell &dwells, WellStateType &well_state, DeferredLogger &deferred_logger) Definition: StandardWell_impl.hpp:760 void assembleWellEqWithoutIterationImpl(const Simulator &simulator, const WellGroupHelperType &wgHelper, const double dt, const Well::InjectionControls &inj_controls, const Well::ProductionControls &prod_controls, WellStateType &well_state, DeferredLogger &deferred_logger, const bool solving_with_zero_rate) Definition: StandardWell_impl.hpp:368 void handleInjectivityEquations(const Simulator &simulator, const WellStateType &well_state, const int perf, const EvalWell &water_flux_s, DeferredLogger &deferred_logger) Definition: StandardWell_impl.hpp:2160 virtual void apply(const BVector &x, BVector &Ax) const override Ax = Ax - C D^-1 B x. Definition: StandardWell_impl.hpp:1450 virtual ConvergenceReport getWellConvergence(const Simulator &simulator, const WellStateType &well_state, const std::vector< Scalar > &B_avg, DeferredLogger &deferred_logger, const bool relax_tolerance) const override check whether the well equations get converged for this well Definition: StandardWell_impl.hpp:1221 void checkConvergenceExtraEqs(const std::vector< Scalar > &res, ConvergenceReport &report) const Definition: StandardWell_impl.hpp:2207 bool iterateWellEqWithSwitching(const Simulator &simulator, const double dt, const Well::InjectionControls &inj_controls, const Well::ProductionControls &prod_controls, const WellGroupHelperType &wgHelper, WellStateType &well_state, DeferredLogger &deferred_logger, const bool fixed_control, const bool fixed_status, const bool solving_with_zero_rate) override Definition: StandardWell_impl.hpp:2473 bool openCrossFlowAvoidSingularity(const Simulator &simulator) const Definition: StandardWell_impl.hpp:1159 void computeWellRatesWithThpAlqProd(const Simulator &ebos_simulator, const WellGroupHelperType &wgHelper, const SummaryState &summary_state, DeferredLogger &deferred_logger, std::vector< Scalar > &potentials, Scalar alq) const Definition: StandardWell_impl.hpp:1777 typename FluidSystem::IndexTraitsType IndexTraits Definition: StandardWell.hpp:124 Scalar computeWellRatesAndBhpWithThpAlqProd(const Simulator &ebos_simulator, const WellGroupHelperType &wgHelper, const SummaryState &summary_state, DeferredLogger &deferred_logger, std::vector< Scalar > &potentials, Scalar alq) const Definition: StandardWell_impl.hpp:1747 bool allDrawDownWrongDirection(const Simulator &simulator) const Definition: StandardWell_impl.hpp:1117 EvalWell pskin(const Scalar throughput, const EvalWell &water_velocity, const EvalWell &poly_inj_conc, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:2033 void computePerfRate(const IntensiveQuantities &intQuants, const std::vector< Value > &mob, const Value &bhp, const std::vector< Value > &Tw, const int perf, const bool allow_cf, std::vector< Value > &cq_s, PerforationRates< Scalar > &perf_rates, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:93 static constexpr int numWellConservationEq Definition: StandardWell.hpp:97 int setPrimaryVars(typename std::vector< Scalar >::const_iterator it) override Definition: StandardWell_impl.hpp:2659 void updateWaterThroughput(const double dt, WellStateType &well_state) const override Definition: StandardWell_impl.hpp:2106 void checkOperabilityUnderTHPLimit(const Simulator &simulator, const WellStateType &well_state, const WellGroupHelperType &wgHelper, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:1067 void checkOperabilityUnderBHPLimit(const WellStateType &well_state, const Simulator &simulator, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:998 std::optional< Scalar > computeBhpAtThpLimitInj(const Simulator &simulator, const WellGroupHelperType &wgHelper, const SummaryState &summary_state, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:2372 void recoverWellSolutionAndUpdateWellState(const Simulator &simulator, const BVector &x, WellStateType &well_state, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:1482 EvalWell pskinwater(const Scalar throughput, const EvalWell &water_velocity, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:2002 void solveEqAndUpdateWellState(const Simulator &simulator, WellStateType &well_state, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:1414 void handleInjectivityRate(const Simulator &simulator, const int perf, std::vector< EvalWell > &cq_s) const Definition: StandardWell_impl.hpp:2137 virtual void init(const std::vector< Scalar > &depth_arg, const Scalar gravity_arg, const std::vector< Scalar > &B_avg, const bool changed_to_open_this_step) override Definition: StandardWell_impl.hpp:76 void updateProductivityIndex(const Simulator &simulator, const WellProdIndexCalculator< Scalar > &wellPICalc, WellStateType &well_state, DeferredLogger &deferred_logger) const override Definition: StandardWell_impl.hpp:1265 void updatePrimaryVariables(const Simulator &simulator, const WellStateType &well_state, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:1874 std::optional< Scalar > computeBhpAtThpLimitProd(const WellStateType &well_state, const Simulator &simulator, const WellGroupHelperType &wgHelper, const SummaryState &summary_state, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:2268 static constexpr int numWellControlEq Definition: StandardWell.hpp:99 Scalar getRefDensity() const override Definition: StandardWell_impl.hpp:1897 Scalar connectionDensity(const int globalConnIdx, const int openConnIdx) const override Definition: StandardWell_impl.hpp:1859 Definition: WellGroupHelper.hpp:59 static constexpr int Oil Definition: WellInterfaceFluidSystem.hpp:65 static constexpr int Water Definition: WellInterfaceFluidSystem.hpp:64 static constexpr int Gas Definition: WellInterfaceFluidSystem.hpp:66 int pvtRegionIdx() const Definition: WellInterfaceGeneric.hpp:130 const std::string & name() const Well name. const VFPProperties< FluidSystem::Scalar, FluidSystem::IndexTraitsType > * vfp_properties_ Definition: WellInterfaceGeneric.hpp:399 Definition: WellInterface.hpp:77 BlackOilFluidState< Eval, FluidSystem, energyModuleType==EnergyModules::ConstantTemperature,(energyModuleType==EnergyModules::FullyImplicitThermal||energyModuleType==EnergyModules::SequentialImplicitThermal), Indices::compositionSwitchIdx >=0, has_watVapor, has_brine, has_saltPrecip, has_disgas_in_water, Indices::numPhases > FluidState Definition: WellInterface.hpp:139 GetPropType< TypeTag, Properties::Simulator > Simulator Definition: WellInterface.hpp:82 typename WellInterfaceFluidSystem< FluidSystem >::RateConverterType RateConverterType Definition: WellInterface.hpp:105 const std::vector< RateVector > & connectionRates() const Definition: WellInterface.hpp:353 Dune::BCRSMatrix< Opm::MatrixBlock< Scalar, 1, 1 > > PressureMatrix Definition: WellInterface.hpp:98 GetPropType< TypeTag, Properties::IntensiveQuantities > IntensiveQuantities Definition: WellInterface.hpp:87 GetPropType< TypeTag, Properties::Scalar > Scalar Definition: WellInterface.hpp:83 GetPropType< TypeTag, Properties::MaterialLaw > MaterialLaw Definition: WellInterface.hpp:88 Dune::BlockVector< VectorBlockType > BVector Definition: WellInterface.hpp:97 static constexpr bool has_bioeffects Definition: WellInterface.hpp:126 static constexpr bool has_polymermw Definition: WellInterface.hpp:120 typename Base::ModelParameters ModelParameters Definition: WellInterface.hpp:111 GetPropType< TypeTag, Properties::FluidSystem > FluidSystem Definition: WellInterface.hpp:84 WellGroupHelper< Scalar, IndexTraits > WellGroupHelperType Definition: WellInterface.hpp:102 GetPropType< TypeTag, Properties::RateVector > RateVector Definition: WellInterface.hpp:90 GetPropType< TypeTag, Properties::Indices > Indices Definition: WellInterface.hpp:86 GetPropType< TypeTag, Properties::SparseMatrixAdapter > SparseMatrixAdapter Definition: WellInterface.hpp:89 static constexpr bool has_zFraction Definition: WellInterface.hpp:114 Definition: WellProdIndexCalculator.hpp:37 Definition: WellState.hpp:66 Definition: blackoilbioeffectsmodules.hh:43 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:233 Static data associated with a well perforation. Definition: PerforationData.hpp:30 Definition: PerforationData.hpp:41 |