40 double timeWindowSize,
51 bool requiresInitialization,
52 bool exchangeSubsteps,
59 bool requiresInitialization,
60 bool exchangeSubsteps,
std::string localParticipant() const final override
Returns the name of the local participant.
BaseCouplingScheme(double maxTime, int maxTimeWindows, double timeWindowSize, std::string localParticipant, int minIterations, int maxIterations, CouplingMode cplMode, constants::TimesteppingMethod dtMethod)
std::string _controller
name of the controller participant
std::set< std::string > _receiveInitialFrom
Coupling partners to receive initial data from.
std::map< std::string, m2n::PtrM2N > _m2ns
A vector of m2ns. A m2n is a communication device to the other coupling participant.
void exchangeInitialData() final override
implements functionality for initialize in base class.
bool sendsInitializedDataTo(const std::string &to) const
void addDataToSend(const mesh::PtrData &data, mesh::PtrMesh mesh, bool requiresInitialization, bool exchangeSubsteps, const std::string &to)
Adds data to be sent on data exchange and possibly be modified during coupling iterations.
DataMap & getAccelerationData() final override
interface to provide accelerated data, depending on coupling scheme being used
void exchangeFirstData() final override
Functions needed for advance()
void determineInitialDataExchange() override
Determines which data is initialized and therefore has to be exchanged during initialize.
bool hasAnySendData() final override
void initializeReceiveDataStorage() final override
Functions needed for initialize()
std::set< std::string > _sendInitialTo
Coupling partners to send initial data to.
MultiCouplingScheme(double maxTime, int maxTimeWindows, double timeWindowSize, const std::string &localParticipant, std::map< std::string, m2n::PtrM2N > m2ns, const std::string &controller, int minIterations, int maxIterations)
Constructor.
std::map< std::string, DataMap > _sendDataVector
A vector of all data to be sent.
std::vector< std::string > getCouplingPartners() const final override
Returns list of all coupling partners.
bool _isController
if this is the controller or not
void addDataToReceive(const mesh::PtrData &data, mesh::PtrMesh mesh, bool requiresInitialization, bool exchangeSubsteps, const std::string &from)
Adds data to be received on data exchange.
std::map< std::string, DataMap > _receiveDataVector
A vector of all data to be received.
void exchangeSecondData() final override
Exchanges the second set of data.
bool receivesInitializedDataFrom(const std::string &from) const
This class provides a lightweight logger.
contains implementations of coupling schemes for coupled simulations.
std::map< int, PtrCouplingData > DataMap
provides Mesh, Data and primitives.
std::shared_ptr< Data > PtrData
std::shared_ptr< Mesh > PtrMesh