Go to the documentation of this file.
40 #ifndef meshObjects_multiWorldConnections_H
41 #define meshObjects_multiWorldConnections_H
61 TopologicalMeshObject,
85 static edge worldPair(
const label otherWorld);
89 static edge worldPair(
const word& otherWorld);
92 static label createCommunicator(
const edge& worlds);
120 bool empty()
const noexcept;
123 label
size()
const noexcept;
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
bool addConnectionById(const label otherWorld)
Define a connection from myWorld to other world by ID.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
label getCommById(const label otherWorld) const
Get communicator for myWorld to other world connection by ID.
~multiWorldConnections()
Destructor.
static const multiWorldConnections & New(const Time &runTime)
Access mesh object.
labelList comms() const
Get communicators used for myWorld to other worlds in sorted order.
label size() const noexcept
Number of world-to-world connections defined.
label getCommByName(const word &otherWorld) const
Get communicator for myWorld to other world connection by NAME.
bool empty() const noexcept
True if no world-to-world connections are defined.
Centralized handling of multi-world MPI connections.
multiWorldConnections(const Time &runTime)
Construct.
TopologicalMeshObject(const word &typeName, const objectRegistry &obr)
Construct from name and instance on registry.
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
TypeName("multiWorld")
Run-time type information.
bool addConnectionByName(const word &otherWorld)
Define a connection from myWorld to other world by NAME.