StandardWell.hpp
Go to the documentation of this file.
67 // dealing with derivatives. It can be beneficial to make functions can work with either AD or scalar value.
68 // 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 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 MICP. 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 by brine. Definition: blackoilbrinemodules.hh:50 Contains the high level supplements required to extend the black oil model to include the effects of ... Definition: blackoilfoammodules.hh:60 Contains the high level supplements required to extend the black oil model by polymer. Definition: blackoilpolymermodules.hh:54 Definition: ConvergenceReport.hpp:38 Definition: DeferredLogger.hpp:57 Definition: GroupState.hpp:38 Class encapsulating some information about parallel wells. Definition: ParallelWellInfo.hpp:186 Manages the initializing and running of time dependent problems. Definition: simulator.hh:92 Definition: StandardWellEval.hpp:47 typename StandardWellEquations< Scalar, Indices::numEq >::BVectorWell BVectorWell Definition: StandardWellEval.hpp:65 typename PrimaryVariables::EvalWell EvalWell Definition: StandardWellEval.hpp:63 DenseAd::Evaluation< Scalar, Indices::numEq > Eval Definition: StandardWellEval.hpp:64 static constexpr int WQTotal Definition: StandardWellEval.hpp:53 Definition: StandardWell.hpp:59 void computeWellConnectionPressures(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger) Definition: StandardWell_impl.hpp:1365 EvalWell wpolymermw(const Scalar throughput, const EvalWell &water_velocity, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:2017 void computeWellPotentials(const Simulator &simulator, const WellState< Scalar > &well_state, std::vector< Scalar > &well_potentials, DeferredLogger &deferred_logger) override computing the well potentials for group control Definition: StandardWell_impl.hpp:1742 static constexpr int numStaticWellEq Definition: StandardWell.hpp:100 std::optional< Scalar > computeBhpAtThpLimitProdWithAlq(const Simulator &ebos_simulator, const SummaryState &summary_state, const Scalar alq_value, DeferredLogger &deferred_logger) const override Definition: StandardWell_impl.hpp:2224 typename StdWellEval::BVectorWell BVectorWell Definition: StandardWell.hpp:120 void checkOperabilityUnderBHPLimit(const WellState< Scalar > &well_state, const Simulator &simulator, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:937 bool iterateWellEqWithControl(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) override Definition: StandardWell_impl.hpp:2334 void computeWellRatesWithThpAlqProd(const Simulator &ebos_simulator, const SummaryState &summary_state, DeferredLogger &deferred_logger, std::vector< Scalar > &potentials, Scalar alq) const Definition: StandardWell_impl.hpp:1725 void addWellContributions(SparseMatrixAdapter &mat) const override Definition: StandardWell_impl.hpp:1912 std::vector< Scalar > getPrimaryVars() const override Definition: StandardWell_impl.hpp:2531 void initPrimaryVariablesEvaluation() override Definition: StandardWell_impl.hpp:113 void updateIPRImplicit(const Simulator &simulator, WellState< Scalar > &well_state, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:861 void updateProductivityIndex(const Simulator &simulator, const WellProdIndexCalculator< Scalar > &wellPICalc, WellState< Scalar > &well_state, DeferredLogger &deferred_logger) const override Definition: StandardWell_impl.hpp:1239 void updateWaterMobilityWithPolymer(const Simulator &simulator, const int perf, std::vector< EvalWell > &mob_water, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:1848 bool iterateWellEqWithSwitching(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, const bool fixed_control=false, const bool fixed_status=false) override Definition: StandardWell_impl.hpp:2380 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_components, const int num_phases, const int index_of_well, const std::vector< PerforationData< Scalar > > &perf_data) Definition: StandardWell_impl.hpp:72 void updateWaterThroughput(const double dt, WellState< Scalar > &well_state) const override Definition: StandardWell_impl.hpp:2046 std::vector< Scalar > computeCurrentWellRates(const Simulator &ebosSimulator, DeferredLogger &deferred_logger) const override Definition: StandardWell_impl.hpp:2495 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) override Definition: StandardWell_impl.hpp:96 void updatePrimaryVariablesNewton(const BVectorWell &dwells, const bool stop_or_zero_rate_target, DeferredLogger &deferred_logger) Definition: StandardWell_impl.hpp:725 GetPropType< TypeTag, Properties::Scalar > Scalar Definition: WellInterface.hpp:79 void calculateExplicitQuantities(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:1405 void solveEqAndUpdateWellState(const Simulator &simulator, WellState< Scalar > &well_state, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:1383 bool computeWellPotentialsImplicit(const Simulator &ebos_simulator, std::vector< Scalar > &well_potentials, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:1618 void recoverWellSolutionAndUpdateWellState(const Simulator &simulator, const BVector &x, WellState< Scalar > &well_state, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:1452 bool jacobianContainsWellContributions() const override Wether the Jacobian will also have well contributions in it. Definition: StandardWell.hpp:216 typename StdWellEval::StdWellConnections::Properties WellConnectionProps Definition: StandardWell.hpp:270 void computeWellRatesWithBhp(const Simulator &ebosSimulator, const Scalar &bhp, std::vector< Scalar > &well_flux, DeferredLogger &deferred_logger) const override Definition: StandardWell_impl.hpp:1472 WellConnectionProps computePropertiesForWellConnectionPressures(const Simulator &simulator, const WellState< Scalar > &well_state) const Definition: StandardWell_impl.hpp:1144 void getMobility(const Simulator &simulator, const int perf, std::vector< Value > &mob, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:647 void computeWellRatesWithBhpIterations(const Simulator &ebosSimulator, const Scalar &bhp, std::vector< Scalar > &well_flux, DeferredLogger &deferred_logger) const override Definition: StandardWell_impl.hpp:1518 void updateIPR(const Simulator &simulator, DeferredLogger &deferred_logger) const override Definition: StandardWell_impl.hpp:768 std::vector< Scalar > computeWellPotentialWithTHP(const Simulator &ebosSimulator, DeferredLogger &deferred_logger, const WellState< Scalar > &well_state) const Definition: StandardWell_impl.hpp:1583 void computePerfRate(const IntensiveQuantities &intQuants, const std::vector< Value > &mob, const Value &bhp, const std::vector< Scalar > &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:126 void updateWellState(const Simulator &simulator, const BVectorWell &dwells, WellState< Scalar > &well_state, DeferredLogger &deferred_logger) Definition: StandardWell_impl.hpp:703 void assembleWellEqWithoutIteration(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) override Definition: StandardWell_impl.hpp:344 void computeWellConnectionDensitesPressures(const Simulator &simulator, const WellState< Scalar > &well_state, const WellConnectionProps &props, DeferredLogger &deferred_logger) Definition: StandardWell_impl.hpp:1314 virtual void apply(const BVector &x, BVector &Ax) const override Ax = Ax - C D^-1 B x. Definition: StandardWell_impl.hpp:1420 std::optional< Scalar > computeBhpAtThpLimitProd(const WellState< Scalar > &well_state, const Simulator &simulator, const SummaryState &summary_state, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:2210 void checkConvergenceExtraEqs(const std::vector< Scalar > &res, ConvergenceReport &report) const Definition: StandardWell_impl.hpp:2148 Scalar computeWellRatesAndBhpWithThpAlqProd(const Simulator &ebos_simulator, const SummaryState &summary_state, DeferredLogger &deferred_logger, std::vector< Scalar > &potentials, Scalar alq) const Definition: StandardWell_impl.hpp:1696 void updateConnectionRatePolyMW(const EvalWell &cq_s_poly, const IntensiveQuantities &int_quants, const WellState< Scalar > &well_state, const int perf, std::vector< RateVector > &connectionRates, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:2167 bool openCrossFlowAvoidSingularity(const Simulator &simulator) const Definition: StandardWell_impl.hpp:1133 void updatePrimaryVariables(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:1814 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 override check whether the well equations get converged for this well Definition: StandardWell_impl.hpp:1195 std::optional< Scalar > computeBhpAtThpLimitInj(const Simulator &simulator, const SummaryState &summary_state, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:2302 bool allDrawDownWrongDirection(const Simulator &simulator) const Definition: StandardWell_impl.hpp:1055 EvalWell pskin(const Scalar throughput, const EvalWell &water_velocity, const EvalWell &poly_inj_conc, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:1972 void updateWellStateFromPrimaryVariables(const bool stop_or_zero_rate_target, WellState< Scalar > &well_state, const SummaryState &summary_state, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:748 static constexpr int numWellConservationEq Definition: StandardWell.hpp:95 void handleInjectivityEquations(const Simulator &simulator, const WellState< Scalar > &well_state, const int perf, const EvalWell &water_flux_s, DeferredLogger &deferred_logger) Definition: StandardWell_impl.hpp:2100 int setPrimaryVars(typename std::vector< Scalar >::const_iterator it) override Definition: StandardWell_impl.hpp:2548 void assembleWellEqWithoutIterationImpl(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: StandardWell_impl.hpp:370 void checkOperabilityUnderTHPLimit(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger) override Definition: StandardWell_impl.hpp:1006 void addWellPressureEquations(PressureMatrix &mat, const BVector &x, const int pressureVarIndex, const bool use_well_weights, const WellState< Scalar > &well_state) const override Definition: StandardWell_impl.hpp:1920 EvalWell pskinwater(const Scalar throughput, const EvalWell &water_velocity, DeferredLogger &deferred_logger) const Definition: StandardWell_impl.hpp:1940 bool canProduceInjectWithCurrentBhp(const Simulator &simulator, const WellState< Scalar > &well_state, DeferredLogger &deferred_logger) Definition: StandardWell_impl.hpp:1097 void handleInjectivityRate(const Simulator &simulator, const int perf, std::vector< EvalWell > &cq_s) const Definition: StandardWell_impl.hpp:2077 static constexpr int numWellControlEq Definition: StandardWell.hpp:97 Scalar getRefDensity() const override Definition: StandardWell_impl.hpp:1837 void calculateSinglePerf(const Simulator &simulator, const int perf, WellState< Scalar > &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:497 Scalar connectionDensity(const int globalConnIdx, const int openConnIdx) const override Definition: StandardWell_impl.hpp:1799 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 VFPProperties< FluidSystem::Scalar > * vfp_properties_ Definition: WellInterfaceGeneric.hpp:362 const PhaseUsage & phaseUsage() const Definition: WellInterface.hpp:73 GetPropType< TypeTag, Properties::Simulator > Simulator Definition: WellInterface.hpp:78 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 Dune::BCRSMatrix< Opm::MatrixBlock< Scalar, 1, 1 > > PressureMatrix Definition: WellInterface.hpp:97 GetPropType< TypeTag, Properties::IntensiveQuantities > IntensiveQuantities Definition: WellInterface.hpp:82 GetPropType< TypeTag, Properties::Scalar > Scalar Definition: WellInterface.hpp:79 GetPropType< TypeTag, Properties::MaterialLaw > MaterialLaw Definition: WellInterface.hpp:83 Dune::BlockVector< VectorBlockType > BVector Definition: WellInterface.hpp:96 static constexpr bool has_polymermw Definition: WellInterface.hpp:114 GetPropType< TypeTag, Properties::FluidSystem > FluidSystem Definition: WellInterface.hpp:80 GetPropType< TypeTag, Properties::RateVector > RateVector Definition: WellInterface.hpp:85 BlackoilModelParameters< Scalar > ModelParameters Definition: WellInterface.hpp:106 GetPropType< TypeTag, Properties::Indices > Indices Definition: WellInterface.hpp:81 GetPropType< TypeTag, Properties::SparseMatrixAdapter > SparseMatrixAdapter Definition: WellInterface.hpp:84 static constexpr bool has_zFraction Definition: WellInterface.hpp:109 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 bool matrix_add_well_contributions_ Whether to add influences of wells between cells to the matrix and preconditioner matrix. Definition: BlackoilModelParameters.hpp:244 Static data associated with a well perforation. Definition: PerforationData.hpp:30 Definition: PerforationData.hpp:41 Definition: BlackoilPhases.hpp:46 |