|
opm-simulators
|
Collects and sends group data from slave process to master in reservoir coupling. More...
#include <RescoupSendSlaveGroupData.hpp>
Public Types | |
| using | SlaveGroupProductionData = ReservoirCoupling::SlaveGroupProductionData<Scalar> |
| using | SlaveGroupInjectionData = ReservoirCoupling::SlaveGroupInjectionData<Scalar> |
| using | Potentials = ReservoirCoupling::Potentials<Scalar> |
| using | ProductionRates = ReservoirCoupling::ProductionRates<Scalar> |
| using | InjectionRates = ReservoirCoupling::InjectionRates<Scalar> |
| using | GroupStateHelperType = GroupStateHelper<Scalar, IndexTraits> |
Public Member Functions | |
| RescoupSendSlaveGroupData (GroupStateHelperType &groupStateHelper) | |
| Construct a sender for slave group data. | |
| const Parallel::Communication & | comm () const |
| Get the communication object. | |
| void | sendSlaveGroupDataToMaster () |
| Collect and send group data to the master process. | |
Collects and sends group data from slave process to master in reservoir coupling.
This class handles the collection of production and injection data from the slave process's group state and sends it to the master process via MPI. It is responsible for:
The class acts as a bridge between the well/group management system (GroupStateHelper) and the MPI communication layer (ReservoirCouplingSlave), ensuring that slave group data is properly formatted and transmitted to the master for group control calculations.
| Scalar | Floating-point type for rate and potential values (typically double or float) |
| IndexTraits | Type traits for phase indexing |
| Opm::RescoupSendSlaveGroupData< Scalar, IndexTraits >::RescoupSendSlaveGroupData | ( | GroupStateHelperType & | groupStateHelper | ) |
Construct a sender for slave group data.
| groupStateHelper | Reference to the GroupStateHelper for accessing group state and schedule |
|
inline |
Get the communication object.
| void Opm::RescoupSendSlaveGroupData< Scalar, IndexTraits >::sendSlaveGroupDataToMaster | ( | ) |
Collect and send group data to the master process.
This method orchestrates the collection of both production and injection data for all slave groups and sends them to the master process via the ReservoirCouplingSlave. The data is collected from the current group state and formatted according to the reservoir coupling protocol.
The method performs the following operations: