RescoupTargetCalculator.hpp
Go to the documentation of this file.
1/*
2 Copyright 2025 Equinor ASA
3
4 This file is part of the Open Porous Media project (OPM).
5
6 OPM is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 OPM is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with OPM. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#ifndef OPM_RESCOUP_TARGET_CALCULATOR_HPP
21#define OPM_RESCOUP_TARGET_CALCULATOR_HPP
22#include <opm/input/eclipse/Schedule/Group/GuideRate.hpp>
23#include <opm/material/fluidsystems/PhaseUsageInfo.hpp>
33
34namespace Opm {
35
36template<class Scalar, class IndexTraits>
38public:
42 GuideRateHandler<Scalar, IndexTraits>& guide_rate_handler,
44 );
45
47private:
48 std::tuple<std::vector<InjectionGroupTarget>, std::vector<ProductionGroupTarget>>
49 calculateSlaveGroupTargets_(std::size_t slave_idx, GroupTargetCalculator<Scalar, IndexTraits>& calculator) const;
50 void sendSlaveGroupTargetsToSlave_(
51 const ReservoirCouplingMaster<Scalar>& rescoup_master,
52 std::size_t slave_idx,
53 const std::vector<InjectionGroupTarget>& injection_targets,
54 const std::vector<ProductionGroupTarget>& production_targets
55 ) const;
56
57 GuideRateHandler<Scalar, IndexTraits>& guide_rate_handler_;
58 const GroupStateHelper<Scalar, IndexTraits>& group_state_helper_;
59 const WellState<Scalar, IndexTraits>& well_state_;
60 const GroupState<Scalar>& group_state_;
61 const int report_step_idx_;
62 const Schedule& schedule_;
63 const SummaryState& summary_state_;
64 DeferredLogger& deferred_logger_;
65 ReservoirCouplingMaster<Scalar>& reservoir_coupling_master_;
67 const PhaseUsageInfo<IndexTraits>& phase_usage_;
68};
69
70} // namespace Opm
71#endif // OPM_RESCOUP_TARGET_CALCULATOR_HPP
Class for handling the blackoil well model.
Definition: BlackoilWellModelGeneric.hpp:96
Definition: DeferredLogger.hpp:57
Definition: GroupStateHelper.hpp:53
Definition: GroupState.hpp:41
Definition: GroupTargetCalculator.hpp:55
Handles computation and reporting of guide rates for wells and groups.
Definition: GuideRateHandler.hpp:46
Definition: GasLiftGroupInfo.hpp:37
Definition: RescoupTargetCalculator.hpp:37
void calculateMasterGroupTargetsAndSendToSlaves()
RescoupTargetCalculator(GuideRateHandler< Scalar, IndexTraits > &guide_rate_handler, GroupStateHelper< Scalar, IndexTraits > &group_state_helper)
Definition: ReservoirCouplingMaster.hpp:38
Definition: WellState.hpp:66
Definition: blackoilbioeffectsmodules.hh:43
Definition: ReservoirCoupling.hpp:211
Definition: ReservoirCoupling.hpp:221