10 #ifndef DOMAINHANDLER_H
11 #define DOMAINHANDLER_H
51 void createMesh(std::vector<Mdouble>& simulationMin, std::vector<Mdouble>& simulationMax,
52 std::vector<unsigned>& numberOfDomains,
bool open);
57 void createDomains(std::vector<Mdouble> domainMin, std::vector<Mdouble> domainMax,
58 std::vector<unsigned>& globalMeshIndex, std::vector<unsigned>& numberOfDomains,
int dimCounter,
59 std::vector<Mdouble>& meshSize,
bool open);
127 void updateStatus(std::set<BaseParticle*>& particlesToBeDeleted);
dominoes D
Definition: Domino.cpp:55
Container to store the pointers to all objects that one creates in a simulation.
Definition: BaseHandler.h:30
Definition: BaseParticle.h:33
Container to store all Domain.
Definition: DomainHandler.h:26
void createDomains(std::vector< Mdouble > domainMin, std::vector< Mdouble > domainMax, std::vector< unsigned > &globalMeshIndex, std::vector< unsigned > &numberOfDomains, int dimCounter, std::vector< Mdouble > &meshSize, bool open)
Recursive function that creates the domains for a 3D mesh.
Definition: DomainHandler.cc:134
std::string getName() const final
returns the name of the class
Definition: DomainHandler.cc:208
void setCurrentDomainIndex(unsigned int index)
This sets a domain to the processor.
Definition: DomainHandler.cc:218
DomainHandler()
Default constructor, it creates an empty DomainHandler.
Definition: DomainHandler.cc:18
Mdouble getInteractionDistance()
Gets the interaction distance of the domain handler.
Definition: DomainHandler.cc:302
int getParticleDomainGlobalIndex(BaseParticle *particle)
Definition: DomainHandler.cc:308
void updateVelocity()
Definition: DomainHandler.cc:402
void setInteractionDistance(Mdouble interactionDistance)
Sets the interaction distance of the domain handler.
Definition: DomainHandler.cc:277
unsigned int currentDomainIndex_
Index to the particular domain of this process.
Definition: DomainHandler.h:140
void initialise()
Definition: DomainHandler.cc:412
unsigned int getCurrentDomainIndex() const
Gets the domain index assigned to the processor.
Definition: DomainHandler.cc:243
void addNewParticles()
Definition: DomainHandler.cc:407
void addObject(Domain *D) final
Adds a Domain to the DomainHandler.
Definition: DomainHandler.cc:181
void readOldObject(std::istream &is)
reads an old domain object
Definition: DomainHandler.cc:201
std::vector< unsigned > getNumberOfDomains()
Gets the number of domains in the domain handler.
Definition: DomainHandler.cc:265
Domain * getParticleDomain(int globalIndex)
Definition: DomainHandler.cc:392
void readAndAddObject(std::istream &is) final
reads a domain object
Definition: DomainHandler.cc:193
std::vector< unsigned > numberOfDomains_
vector containing the number of domains in Cartesian direction
Definition: DomainHandler.h:150
Mdouble interactionDistance_
Interaction distance between a domain boundary and the communication zone boundary.
Definition: DomainHandler.h:155
Domain * getCurrentDomain()
Gets the domain assigned to the processor.
Definition: DomainHandler.cc:228
std::vector< int > globalIndexToProcessorList_
look-up table to find the processor of a domain given the globalIndex of the domain
Definition: DomainHandler.h:145
~DomainHandler() final
Destructor, it destructs the DomainHandler and all Domain it contains.
Definition: DomainHandler.cc:56
void updateStatus(std::set< BaseParticle * > &particlesToBeDeleted)
Definition: DomainHandler.cc:397
DomainHandler & operator=(const DomainHandler &rhs)
Assignment operator.
Definition: DomainHandler.cc:42
void setNumberOfDomains(std::vector< unsigned > &numberOfdomains)
Sets the number of domains in the domain handler.
Definition: DomainHandler.cc:254
int getParticleProcessor(int globalIndex)
Definition: DomainHandler.cc:387
void createMesh(std::vector< Mdouble > &simulationMin, std::vector< Mdouble > &simulationMax, std::vector< unsigned > &numberOfDomains, bool open)
Creates a Cartesian square mesh in 3D.
Definition: DomainHandler.cc:71
The simulation can be subdivided into Domain's used in parallel code.
Definition: Domain.h:42
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286