|
MultisegmentWell.hpp
Go to the documentation of this file.
390 // TODO: this function largely overlaps with calculatePhaseProperties(), some refactoring/unification should be done
Definition: ConvergenceReport.hpp:38 Definition: DeferredLogger.hpp:57 Definition: GroupStateHelper.hpp:56 Definition: MultisegmentWellEval.hpp:50 MultisegmentWellEquations< Scalar, IndexTraits, numWellEq, Indices::numEq > Equations Definition: MultisegmentWellEval.hpp:64 static constexpr int SPres Definition: MultisegmentWellEval.hpp:58 static constexpr int numWellDofs Definition: MultisegmentWellEval.hpp:82 void addBCDMatrix(std::vector< BMatrix > &b_matrices, std::vector< CMatrix > &c_matrices, std::vector< DMatrix > &d_matrices, Opm::SparseTable< int > &wcells) const typename PrimaryVariables::EvalWell EvalWell Definition: MultisegmentWellEval.hpp:73 typename Equations::BVectorWell BVectorWell Definition: MultisegmentWellEval.hpp:68 Definition: MultisegmentWell.hpp:42 bool computeWellPotentialsImplicit(const Simulator &simulator, const GroupStateHelperType &groupStateHelper, std::vector< Scalar > &well_potentials) const Definition: MultisegmentWell_impl.hpp:539 bool iterateWellEqWithSwitching(const Simulator &simulator, const double dt, const Well::InjectionControls &inj_controls, const Well::ProductionControls &prod_controls, const GroupStateHelperType &groupStateHelper, WellStateType &well_state, const bool fixed_control, const bool fixed_status, const bool solving_with_zero_rate) override Definition: MultisegmentWell_impl.hpp:1672 std::vector< Scalar > segment_initial_energy_ Definition: MultisegmentWell.hpp:220 SegmentFluidState< EvalWell > wellhead_fluid_state_ Definition: MultisegmentWell.hpp:228 void computeInitialSegmentEnergy() Definition: MultisegmentWell_impl.hpp:2805 void updateWellState(const Simulator &simulator, const BVectorWell &dwells, const GroupStateHelperType &groupStateHelper, WellStateType &well_state, const Scalar relaxation_factor=1.0) Definition: MultisegmentWell_impl.hpp:721 void updateWaterThroughput(const double dt, WellStateType &well_state) const override Definition: MultisegmentWell_impl.hpp:2177 void addWellPressureEquations(PressureMatrix &mat, const BVector &x, const int pressureVarIndex, const bool use_well_weights, const WellStateType &well_state) const override Definition: MultisegmentWell_impl.hpp:907 void assembleWellEqWithoutIteration(const Simulator &simulator, const GroupStateHelperType &groupStateHelper, const double dt, const Well::InjectionControls &inj_controls, const Well::ProductionControls &prod_controls, WellStateType &well_state, const bool solving_with_zero_rate) override Definition: MultisegmentWell_impl.hpp:1863 Scalar connectionDensity(const int globalConnIdx, const int openConnIdx) const override Definition: MultisegmentWell_impl.hpp:872 void addWellContributions(SparseMatrixAdapter &jacobian) const override Definition: MultisegmentWell_impl.hpp:894 void getTransMult(Value &trans_mult, const Simulator &simulator, const int cell_indx) const Definition: MultisegmentWell_impl.hpp:1177 EvalWell surfaceToReservoirRate(unsigned phaseIdx, const FluidStateT &fs, const std::vector< EvalWell > &surface_rates, int seg, std::string_view context, DeferredLogger &deferred_logger) const Definition: MultisegmentWell_impl.hpp:2662 EvalWell getSegmentSurfaceVolume(const int seg_idx, const FSInfo &info, DeferredLogger &deferred_logger) const Definition: MultisegmentWell_impl.hpp:2188 std::vector< Scalar > computeWellPotentialWithTHP(const WellStateType &well_state, const Simulator &simulator, const GroupStateHelperType &groupStateHelper) const Definition: MultisegmentWell_impl.hpp:487 Scalar getRefDensity() const override Definition: MultisegmentWell_impl.hpp:1237 EvalWell computeSegmentEnergyRate(int seg, int upwind_seg, const SegmentFluidState< EvalWell > &upwind_fs, std::string_view context, DeferredLogger &deferred_logger) const Definition: MultisegmentWell_impl.hpp:2713 std::vector< SegmentFluidState< EvalWell > > segment_fluid_state_ Definition: MultisegmentWell.hpp:223 void updateWellStateWithTarget(const Simulator &simulator, const GroupStateHelperType &groupStateHelper, WellStateType &well_state) const override updating the well state based the current control mode Definition: MultisegmentWell_impl.hpp:182 std::vector< Scalar > getPrimaryVars() const override Definition: MultisegmentWell_impl.hpp:2410 void computeWellRatesWithBhpIterations(const Simulator &simulator, const Scalar &bhp, const GroupStateHelperType &groupStateHelper, std::vector< Scalar > &well_flux) const override Definition: MultisegmentWell_impl.hpp:411 void checkOperabilityUnderTHPLimit(const Simulator &ebos_simulator, const WellStateType &well_state, const GroupStateHelperType &groupStateHelper) override Definition: MultisegmentWell_impl.hpp:1482 bool iterateWellEqWithControl(const Simulator &simulator, const double dt, const Well::InjectionControls &inj_controls, const Well::ProductionControls &prod_controls, const GroupStateHelperType &groupStateHelper, WellStateType &well_state) override Definition: MultisegmentWell_impl.hpp:1535 ValueType computeSegmentEnergy(int seg) const Definition: MultisegmentWell_impl.hpp:2866 std::vector< Scalar > computeCurrentWellRates(const Simulator &simulator, DeferredLogger &deferred_logger) const override Definition: MultisegmentWell_impl.hpp:2364 void apply(const BVector &x, BVector &Ax) const override Ax = Ax - C D^-1 B x. Definition: MultisegmentWell_impl.hpp:227 MultisegmentWell(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: MultisegmentWell_impl.hpp:63 void checkOperabilityUnderBHPLimit(const WellStateType &well_state, const Simulator &ebos_simulator, DeferredLogger &deferred_logger) override Definition: MultisegmentWell_impl.hpp:1245 void getMobility(const Simulator &simulator, const int local_perf_index, std::vector< Value > &mob, DeferredLogger &deferred_logger) const Definition: MultisegmentWell_impl.hpp:1197 void recoverWellSolutionAndUpdateWellState(const Simulator &simulator, const BVector &x, const GroupStateHelperType &groupStateHelper, WellStateType &well_state) override Definition: MultisegmentWell_impl.hpp:262 void assemblePerforationEnergyEq(const IntensiveQuantities &int_quants, const std::vector< EvalWell > &cq_s, const int seg, const int local_perf_index, DeferredLogger &deferred_logger) Definition: MultisegmentWell_impl.hpp:2750 static constexpr Scalar energy_scaling_factor_ Definition: MultisegmentWell.hpp:79 bool openCrossFlowAvoidSingularity(const Simulator &simulator) const Definition: MultisegmentWell_impl.hpp:2115 void computeSegmentFluidProperties(const Simulator &simulator, DeferredLogger &deferred_logger) Definition: MultisegmentWell_impl.hpp:1149 int setPrimaryVars(typename std::vector< Scalar >::const_iterator it) override Definition: MultisegmentWell_impl.hpp:2428 void computeWellRatesWithBhp(const Simulator &simulator, const Scalar &bhp, std::vector< Scalar > &well_flux, DeferredLogger &deferred_logger) const override Definition: MultisegmentWell_impl.hpp:361 void updateSegmentFluidState(const FSInfo &info, DeferredLogger &deferred_logger) Definition: MultisegmentWell_impl.hpp:2894 Base::template BlackOilFluidStateType< ValueType > SegmentFluidState Definition: MultisegmentWell.hpp:102 void scaleSegmentRatesAndPressure(WellStateType &well_state) const override updating the segment pressure and rates based the current bhp and well rates Definition: MultisegmentWell_impl.hpp:171 bool allDrawDownWrongDirection(const Simulator &simulator) const Definition: MultisegmentWell_impl.hpp:2124 int debug_cost_counter_ Definition: MultisegmentWell.hpp:230 void updateProductivityIndex(const Simulator &simulator, const WellProdIndexCalculator< Scalar > &wellPICalc, WellStateType &well_state, DeferredLogger &deferred_logger) const override Definition: MultisegmentWell_impl.hpp:790 std::optional< Scalar > computeBhpAtThpLimitProd(const WellStateType &well_state, const Simulator &ebos_simulator, const GroupStateHelperType &groupStateHelper, const SummaryState &summary_state) const Definition: MultisegmentWell_impl.hpp:2206 Scalar maxPerfPress(const Simulator &simulator) const override Definition: MultisegmentWell_impl.hpp:2336 void computePerfRate(const IntensiveQuantities &int_quants, const std::vector< Value > &mob_perfcells, const std::vector< Value > &Tw, const int seg, const int perf, const Value &segment_pressure, const bool &allow_cf, std::vector< Value > &cq_s, Value &perf_press, PerforationRates< Scalar > &perf_rates, DeferredLogger &deferred_logger) const Definition: MultisegmentWell_impl.hpp:1076 SegmentFluidState< EvalWell > createSegmentFluidState(int seg, const FSInfo &info, DeferredLogger &deferred_logger) const Definition: MultisegmentWell_impl.hpp:2639 SegmentFluidState< ValueType > createFluidState(const std::vector< ValueType > &fluid_composition, const ValueType &pressure, const ValueType &temperature, const ValueType &saltConcentration, DeferredLogger &deferred_logger) const Definition: MultisegmentWell_impl.hpp:2482 void computeWellPotentials(const Simulator &simulator, const WellStateType &well_state, const GroupStateHelperType &groupStateHelper, std::vector< Scalar > &well_potentials) override computing the well potentials for group control Definition: MultisegmentWell_impl.hpp:299 void calculateExplicitQuantities(const Simulator &simulator, const GroupStateHelperType &groupStateHelper) override Definition: MultisegmentWell_impl.hpp:765 static constexpr bool compositionSwitchEnabled Definition: MultisegmentWell.hpp:74 void computePerfCellPressDiffs(const Simulator &simulator) Definition: MultisegmentWell_impl.hpp:646 void solveEqAndUpdateWellState(const Simulator &simulator, const GroupStateHelperType &groupStateHelper, WellStateType &well_state) override Definition: MultisegmentWell_impl.hpp:616 void addBCDMatrix(std::vector< typename Base::BMatrix > &b_matrices, std::vector< typename Base::CMatrix > &c_matrices, std::vector< typename Base::DMatrix > &d_matrices, Opm::SparseTable< int > &wcells) const override Definition: MultisegmentWell.hpp:194 void updateWellHeadCondition(const Simulator &simulator, const Scalar first_perf_temperature, const Scalar first_perf_salt_concentration, DeferredLogger &deferred_logger) Definition: MultisegmentWell_impl.hpp:2814 std::optional< Scalar > computeBhpAtThpLimitInj(const Simulator &ebos_simulator, const GroupStateHelperType &groupStateHelper, const SummaryState &summary_state) const Definition: MultisegmentWell_impl.hpp:2281 void updateIPR(const Simulator &ebos_simulator, DeferredLogger &deferred_logger) const override Definition: MultisegmentWell_impl.hpp:1311 ConvergenceReport getWellConvergence(const GroupStateHelperType &groupStateHelper, const std::vector< Scalar > &B_avg, const bool relax_tolerance) const override check whether the well equations get converged for this well Definition: MultisegmentWell_impl.hpp:201 void updatePrimaryVariables(const GroupStateHelperType &groupStateHelper) override Definition: MultisegmentWell_impl.hpp:156 void updateIPRImplicit(const Simulator &simulator, const GroupStateHelperType &groupStateHelper, WellStateType &well_state) override Definition: MultisegmentWell_impl.hpp:1412 void computeWellRatesAtBhpLimit(const Simulator &simulator, const GroupStateHelperType &groupStateHelper, std::vector< Scalar > &well_flux) const Definition: MultisegmentWell_impl.hpp:345 FSInfo getFirstPerforationFluidStateInfo(const Simulator &simulator) const Definition: MultisegmentWell_impl.hpp:2454 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: MultisegmentWell_impl.hpp:121 std::vector< std::vector< Scalar > > segment_fluid_initial_ Definition: MultisegmentWell.hpp:218 std::optional< Scalar > computeBhpAtThpLimitProdWithAlq(const Simulator &simulator, const GroupStateHelperType &groupStateHelper, const SummaryState &summary_state, const Scalar alq_value, bool iterate_if_no_solution) const override Definition: MultisegmentWell_impl.hpp:2224 void computeInitialSegmentFluids(const FSInfo &info, DeferredLogger &deferred_logger) Definition: MultisegmentWell_impl.hpp:703 void getScaledWellFractions(std::vector< Scalar > &scaled_fractions, DeferredLogger &deferred_logger) const override Definition: MultisegmentWell_impl.hpp:2445 Class encapsulating some information about parallel wells. Definition: ParallelWellInfo.hpp:198 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:132 Definition: WellInterface.hpp:78 GetPropType< TypeTag, Properties::Simulator > Simulator Definition: WellInterface.hpp:83 typename WellInterfaceFluidSystem< FluidSystem >::RateConverterType RateConverterType Definition: WellInterface.hpp:106 Dune::BCRSMatrix< Opm::MatrixBlock< Scalar, 1, 1 > > PressureMatrix Definition: WellInterface.hpp:99 BlackOilFluidState< ValueType, FluidSystem, energyModuleType !=EnergyModules::NoTemperature, energyModuleType==EnergyModules::FullyImplicitThermal, Indices::compositionSwitchIdx !=std::numeric_limits< unsigned >::max(), has_watVapor, has_brine, has_saltPrecip, has_disgas_in_water, has_solvent, Indices::numPhases > BlackOilFluidStateType Definition: WellInterface.hpp:141 Dune::BCRSMatrix< Dune::FieldMatrix< Scalar, numResDofs, numWellDofs > > CMatrix Definition: WellInterface.hpp:378 GetPropType< TypeTag, Properties::IntensiveQuantities > IntensiveQuantities Definition: WellInterface.hpp:88 GetPropType< TypeTag, Properties::Scalar > Scalar Definition: WellInterface.hpp:84 GetPropType< TypeTag, Properties::MaterialLaw > MaterialLaw Definition: WellInterface.hpp:89 typename FluidSystem::IndexTraitsType IndexTraits Definition: WellInterface.hpp:86 Dune::BlockVector< VectorBlockType > BVector Definition: WellInterface.hpp:98 typename Base::ModelParameters ModelParameters Definition: WellInterface.hpp:112 GetPropType< TypeTag, Properties::FluidSystem > FluidSystem Definition: WellInterface.hpp:85 BlackOilFluidStateType< Eval > FluidState Definition: WellInterface.hpp:144 Dune::BCRSMatrix< Dune::FieldMatrix< Scalar, numWellDofs, numWellDofs > > DMatrix Definition: WellInterface.hpp:379 Dune::BlockVector< Dune::FieldVector< Scalar, numWellDofs > > WVector Definition: WellInterface.hpp:380 WellState< Scalar, IndexTraits > WellStateType Definition: WellInterface.hpp:101 GetPropType< TypeTag, Properties::Indices > Indices Definition: WellInterface.hpp:87 GetPropType< TypeTag, Properties::SparseMatrixAdapter > SparseMatrixAdapter Definition: WellInterface.hpp:90 GroupStateHelper< Scalar, IndexTraits > GroupStateHelperType Definition: WellInterface.hpp:103 Dune::BCRSMatrix< Dune::FieldMatrix< Scalar, numWellDofs, numResDofs > > BMatrix Definition: WellInterface.hpp:377 Definition: WellProdIndexCalculator.hpp:37 Definition: WellState.hpp:66 Defines the common properties required by the porous medium multi-phase models. Definition: blackoilbioeffectsmodules.hh:45 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:56 |