BlackoilWellModelRescoup.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_BLACKOILWELLMODEL_RESCOUP_HEADER_INCLUDED
21#define OPM_BLACKOILWELLMODEL_RESCOUP_HEADER_INCLUDED
22
24
25#ifdef RESERVOIR_COUPLING_ENABLED
26
28
30
31#include <optional>
32
33namespace Opm {
34 class DeferredLogger;
35 class Schedule;
36 template<class TypeTag> class BlackoilWellModel;
37}
38
39namespace Opm {
40
46template<typename TypeTag>
47class BlackoilWellModelRescoup {
48 using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>;
49 using Scalar = GetPropType<TypeTag, Properties::Scalar>;
50 using IndexTraits = typename FluidSystem::IndexTraitsType;
51
52public:
53 explicit BlackoilWellModelRescoup(BlackoilWellModel<TypeTag>& well_model);
54
61 void receiveGroupConstraintsFromMaster();
62
70 void receiveSlaveGroupData();
71
78 void rescoupSyncSummaryData();
79
87 void sendMasterGroupConstraintsToSlaves();
88
95 void sendSlaveGroupDataToMaster();
96
99 std::optional<ReservoirCoupling::ScopedLoggerGuard> setupScopedLogger(DeferredLogger& local_logger);
100
101private:
102 BlackoilWellModel<TypeTag>& well_model_;
103};
104
105} // namespace Opm
106
108
109#endif // RESERVOIR_COUPLING_ENABLED
110#endif // OPM_BLACKOILWELLMODEL_RESCOUP_HEADER_INCLUDED
Defines a type tags and some fundamental properties all models.
Definition: blackoilbioeffectsmodules.hh:45