|
ReservoirCouplingMaster.hpp
Go to the documentation of this file.
145 const std::string &group_name, ReservoirCoupling::Phase phase, ReservoirCoupling::RateKind kind) const;
224 void saveGroupFlowsAtStartOfSyncStep() { this->report_step_data_->saveGroupFlowsAtStartOfSyncStep(); }
228 void updateFlowChangeTimeStepLimit() { this->report_step_data_->updateFlowChangeTimeStepLimit(); }
231 double flowChangeTimeStepLimit() const { return this->report_step_data_->flowChangeTimeStepLimit(); }
296 void setSlaveActivationDate(int index, double date) { this->slave_activation_dates_[index] = date; }
Definition: DeferredLogger.hpp:57 Definition: ReservoirCoupling.hpp:42 void setDeferredLogger(DeferredLogger *deferred_logger) Definition: ReservoirCoupling.hpp:55 void clearDeferredLogger() Definition: ReservoirCoupling.hpp:47 Definition: ReservoirCouplingMaster.hpp:43 void setSlaveGroupProductionData(const std::string &slave_name, std::vector< SlaveGroupProductionData > production_data) Definition: ReservoirCouplingMaster.hpp:302 void resizeSlaveActivationDates(int size) Definition: ReservoirCouplingMaster.hpp:214 bool hasSlaveGroupProductionData(const std::string &group_name) const Whether the slave of a master group has sent production data. Definition: ReservoirCouplingMaster.hpp:147 void resizeSlaveStartDates(int size) Definition: ReservoirCouplingMaster.hpp:215 std::map< std::string, std::vector< std::string > > & getSlaveNameToMasterGroupsMap() Definition: ReservoirCouplingMaster.hpp:166 char * getArgv(int index) const Definition: ReservoirCouplingMaster.hpp:117 bool slaveIsCoupled(int index) const Whether the slave currently takes part in the coupling. Definition: ReservoirCouplingMaster.hpp:333 bool slaveHasEnded(int index) const Whether the slave has reached the end of its own schedule and left the coupling. Definition: ReservoirCouplingMaster.hpp:322 int getSlaveGroupNumGroupControlledInjectors(const std::string &master_group_name, ReservoirCoupling::Phase phase) const double getActivationDate() const Definition: ReservoirCouplingMaster.hpp:115 char ** getArgv() const Definition: ReservoirCouplingMaster.hpp:118 const Potentials & getSlaveGroupPotentials(const std::string &master_group_name) const void sendGasLiftGroupLimitsToSlave(std::size_t slave_idx, const std::vector< ReservoirCoupling::GasLiftGroupLimits< Scalar > > &gas_lift_limits) const Definition: ReservoirCouplingMaster.hpp:261 void maybeActivate(int report_step) void receiveNextReportDateFromSlaves() bool syncAtReportSteps() const Whether the master syncs with slaves at slave report-step boundaries (true) or at every master actual... Definition: ReservoirCouplingMaster.hpp:351 std::size_t numSlaveGroups(unsigned int index) ReservoirCoupling::Logger & logger() Definition: ReservoirCouplingMaster.hpp:195 void resizeNextReportDates(int size) void maybeReceiveActivationHandshakeFromSlaves(double current_time) void sendNextTimeStepToSlaves(double next_time_step) Definition: ReservoirCouplingMaster.hpp:217 bool isFirstSubstepOfSyncTimestep() const void setFirstSubstepOfSyncTimestep(bool value) std::size_t numSlavesStarted() const double maybeChopSubStep(double suggested_timestep, double current_time) const bool slaveIsActivated(int index) const Whether the slave has completed its activation handshake with the master. Definition: ReservoirCouplingMaster.hpp:313 void setEffectiveGCW(const std::string &group_name, int value) Definition: ReservoirCouplingMaster.hpp:85 void sendProductionConstraintsToSlave(std::size_t slave_idx, const std::vector< ProductionGroupConstraints > &production_constraints) const std::size_t getMasterGroupCanonicalIdx(const std::string &slave_name, const std::string &master_group_name) const Get the canonical index of the master group for a given slave name and master group name.... std::size_t numCoupledSlaves() const Number of slaves that currently take part in the coupling. void addSlaveCommunicator(MPI_Comm comm) Definition: ReservoirCouplingMaster.hpp:61 void addSlaveStartDate(std::time_t date) Definition: ReservoirCouplingMaster.hpp:66 void rebuildSlaveIdxToMasterGroupsVector() void initStartOfReportStep(int report_step_idx) const Parallel::Communication & getComm() const Definition: ReservoirCouplingMaster.hpp:119 ReservoirCoupling::Logger & logger() const Definition: ReservoirCouplingMaster.hpp:196 void markSlaveEndedAndDisconnect(int index) Record that a slave has ended, and close its intercommunicator. int getSlaveIdx(const std::string &slave_name) const void setSlaveActivated(int index) Definition: ReservoirCouplingMaster.hpp:289 int effectiveInjectionGCW(const std::string &group_name, Phase phase) const Effective group-controlled-wells (GCW) count for a master group in the injection guide-rate distribut... Definition: ReservoirCouplingMaster.hpp:99 void setSlaveNextReportTimeOffset(int index, double offset) void addSlaveActivationDate(double date) Definition: ReservoirCouplingMaster.hpp:65 void setSlaveGroupInjectionData(const std::string &slave_name, std::vector< SlaveGroupInjectionData > injection_data) Definition: ReservoirCouplingMaster.hpp:297 Scalar getMasterGroupGasLiftRate(const std::string &group_name, bool network) const Lift gas rate of the slave group of a master group, as last received from the slave. Definition: ReservoirCouplingMaster.hpp:151 void clearDeferredLogger() Definition: ReservoirCouplingMaster.hpp:67 bool needsSlaveDataReceive() const Check if the master needs to receive production data from the slaves. void sendNumGroupConstraintsToSlave(std::size_t slave_idx, std::size_t num_injection_targets, std::size_t num_production_constraints, std::size_t num_gas_lift_limits) const double flowChangeTimeStepLimit() const Upper limit (in seconds) for the next sync step from GRUPMAST item 4, infinity if none. Definition: ReservoirCouplingMaster.hpp:231 Scalar getMasterGroupRate(const std::string &group_name, ReservoirCoupling::Phase phase, ReservoirCoupling::RateKind kind) const void setDeferredLogger(DeferredLogger *deferred_logger) Definition: ReservoirCouplingMaster.hpp:279 void sendCoupledNetworkActiveStatusToSlave(std::size_t slave_idx, bool active) const Send a single boolean to a slave telling it whether the master will iterate the cross-rescoup network... void maybeSpawnSlaveProcesses(int report_step) void sendTerminateAndDisconnect() Send terminate signal to all active slaves and disconnect intercommunicators. void receiveProductionDataFromSlaves() void resetEffectiveGCW() Clear all effective-GCW entries, production and injection. Call at the start of each master-group con... Definition: ReservoirCouplingMaster.hpp:110 const std::string & getSlaveName(int index) const Definition: ReservoirCouplingMaster.hpp:174 void updateFlowChangeTimeStepLimit() Update the flow-change time step limit (GRUPMAST item 4) from the flows received at the end of the sy... Definition: ReservoirCouplingMaster.hpp:228 void sendMasterGroupNodePressuresToSlave(std::size_t slave_idx, const std::vector< MasterGroupNodePressure > &pressures) const Send master-computed network-leaf node pressures to a slave. ReservoirCouplingMaster(const Parallel::Communication &comm, const Schedule &schedule, int argc, char **argv) void addSlaveName(const std::string &name) Definition: ReservoirCouplingMaster.hpp:64 void saveGroupFlowsAtStartOfSyncStep() Save the master group flow rates at the start of the sync step. Definition: ReservoirCouplingMaster.hpp:224 const double * getSlaveActivationDates() const Definition: ReservoirCouplingMaster.hpp:164 std::map< std::string, std::string > & getMasterGroupToSlaveNameMap() Definition: ReservoirCouplingMaster.hpp:158 void sendDontTerminateSignalToSlaves() Send "don't terminate" signal (value=0) to all active slaves. const Schedule & schedule() const Definition: ReservoirCouplingMaster.hpp:216 void updateMasterGroupNameOrderMap(const std::string &slave_name, const std::map< std::string, std::size_t > &master_group_map) double getSlaveActivationDate(int index) const Definition: ReservoirCouplingMaster.hpp:163 std::tuple< std::string, double, double > flowChangeLimitingGroup() const The master group that sets flowChangeTimeStepLimit(): name, fractional flow change and limiting fract... Definition: ReservoirCouplingMaster.hpp:235 void sendNumMasterGroupNodePressuresToSlave(std::size_t slave_idx, std::size_t num_pressures, bool is_final) const Send the count of master-computed network-leaf node pressures plus the master's is_final flag for thi... std::size_t numSlaves() const Definition: ReservoirCouplingMaster.hpp:202 const double * getSlaveStartDates() Definition: ReservoirCouplingMaster.hpp:176 int effectiveGCW(const std::string &group_name) const Effective group-controlled-wells (GCW) count for a master group, used by guide-rate distribution inde... Definition: ReservoirCouplingMaster.hpp:81 Scalar getMasterGroupGasLiftHeadroom(const std::string &group_name) const How much more lift gas the slave group of a master group can take. Definition: ReservoirCouplingMaster.hpp:155 void setSlaveActivationDate(int index, double date) Definition: ReservoirCouplingMaster.hpp:296 void setNeedsSlaveDataReceive(bool value) Set whether the master needs to receive production data from the slaves. MPI_Comm getSlaveComm(int index) const Definition: ReservoirCouplingMaster.hpp:165 void setEffectiveInjectionGCW(const std::string &group_name, Phase phase, int value) Definition: ReservoirCouplingMaster.hpp:103 double getSlaveStartDate(int index) const Definition: ReservoirCouplingMaster.hpp:175 const std::vector< std::string > & getMasterGroupNamesForSlave(std::size_t slave_idx) const Get the master group names associated with a slave reservoir by index. int getSlaveGroupNumGroupControlledProducers(const std::string &master_group_name) const double getSimulationStartDate() const Definition: ReservoirCouplingMaster.hpp:161 void sendInjectionTargetsToSlave(std::size_t slave_idx, const std::vector< InjectionGroupTarget > &injection_targets) const void receiveInjectionDataFromSlaves() void initTimeStepping() void setSlaveStartDate(int index, std::time_t date) Definition: ReservoirCouplingMaster.hpp:308 data::ReservoirCouplingGroupRates collectGroupRatesForSummary() const Collect production/injection rates for all master groups. bool isMasterGroup(const std::string &group_name) const Dune::Communication< MPIComm > Communication Definition: ParallelCommunication.hpp:30 RateKind Selects which kind of rate to retrieve from slave group data. Definition: ReservoirCoupling.hpp:196 Phase Phase indices for reservoir coupling, we currently only support black-oil phases (oil,... Definition: ReservoirCoupling.hpp:184 Definition: blackoilbioeffectsmodules.hh:45 Gas lift limits (GLIFTOPT) the master imposes on a slave group. Definition: ReservoirCoupling.hpp:336 Definition: ReservoirCoupling.hpp:305 Master-computed network-leaf node pressure for a single master group. Definition: ReservoirCoupling.hpp:362 Definition: ReservoirCoupling.hpp:215 Definition: ReservoirCoupling.hpp:315 Utility class for comparing double values representing epoch dates or elapsed time. Definition: ReservoirCoupling.hpp:431 Definition: ReservoirCoupling.hpp:285 Definition: ReservoirCoupling.hpp:239 |