132 double getTime() const final override;
214 mutable
logging::Logger
_log{
"cplscheme::CompositionalCouplingScheme"};
Acts as one coupling scheme, but consists of several composed ones.
PtrCouplingScheme _implicitScheme
The optional implicit scheme to be handled last.
ChangedMeshes secondSynchronization() override
bool sendsInitializedData() const final override
Returns true, if any of the composed coupling schemes sendsInitializedData for this participant.
std::vector< CouplingScheme * > activeOrAllSchemes() const
Actions also work before initialize is called.
bool isTimeWindowComplete() const final override
Returns true, when the accessor can advance to the next time window.
std::vector< CouplingScheme * > allSchemes() const
Returns all schemes in execution order, explicit as well as implicit.
void updateActiveSchemes()
std::string localParticipant() const final override
Returns the name of the local participant.
void finalize() final override
Finalizes the coupling and disconnects communication.
ImplicitData implicitDataToReceive() const final override
Returns a vector of implicit data to receive in the next advance.
std::vector< CouplingScheme * > _activeSchemes
bool isCouplingOngoing() const final override
Returns true, when the coupled simulation is still ongoing.
double getTime() const final override
Returns the currently computed time of the coupling scheme.
std::vector< std::string > getCouplingPartners() const final override
Returns list of all coupling partners.
void initialize() final override
Initializes the coupling scheme and establishes a communication connection to the coupling partner.
Schemes _explicitSchemes
Explicit coupling schemes to be executed.
~CompositionalCouplingScheme() override=default
Destructor, empty.
bool isImplicitCouplingScheme() const final override
True if one cplscheme is an implicit scheme.
std::vector< PtrCouplingScheme > Schemes
double getTimeWindowSize() const final override
Returns the time window size, if one is given by the coupling scheme.
void secondExchange() override
bool requiresSubsteps() const final override
Returns true if any send data of the scheme requires substeps.
bool isActionRequired(Action action) const final override
Returns true, if the given action has to be performed by the accessor.
void markActionFulfilled(Action action) final override
Tells the coupling scheme that the accessor has performed the given action.
bool addComputedTime(double timeToAdd) final override
Adds newly computed time. Has to be called before every advance.
bool hasDataBeenReceived() const final override
checks all coupling schemes this coupling scheme is composed of.
bool hasConverged() const final override
True if the implicit scheme has converged or no implicit scheme is defined.
int getTimeWindows() const final override
Returns the currently computed time windows of the coupling scheme.
void requireAction(Action action) final override
Sets an action required to be performed by the accessor.
bool isInitialized() const final override
Returns true, if initialize has been called.
bool _explicitOnHold
Are explicit schemes on hold?
double getNextTimeStepMaxSize() const final override
Returns the maximal size of the next time step to be computed.
bool hasTimeWindowSize() const final override
Returns true, if time window size is given by any of the coupling schemes in this compositional coupl...
void addCouplingScheme(const PtrCouplingScheme &scheme)
Adds another coupling scheme in parallel to this scheme.
void firstExchange() override
ChangedMeshes firstSynchronization(const ChangedMeshes &changes) override
Exchanges data and updates the state of the coupling scheme.
bool willDataBeExchanged(double lastSolverTimeStepSize) const final override
Returns true, if data will be exchanged when calling advance().
void checkCompatibleTimeWindowSizes(const CouplingScheme &impl, const CouplingScheme &expl) const
check if time windows are compatible
void reinitialize() final override
Reinitializes the coupling scheme, coupling data, and acceleration schemes.
std::string printCouplingState() const final override
Returns a string representation of the current coupling state.
double getTimeWindowStart() const final override
bool isActionFulfilled(Action action) const final override
Returns true, if the given action has been performed by the accessor.
Interface for all coupling schemes.
std::vector< MeshID > ChangedMeshes
Action
Actions that are required by CouplingSchemes.
contains actions to modify exchanged data.
contains implementations of coupling schemes for coupled simulations.
std::shared_ptr< CouplingScheme > PtrCouplingScheme
contains the logging framework.