Go to the documentation of this file.
45 if(bType ==
"periodic")
54 if(! bDict.
addOrReplace(
"mirrorBoundaryIndex", mirrorIndex))
57 "canno add entry mirroBoundaryIndex to dictionary "<<
69 thisDomain_ =
domain(globalBox());
83 initialNumPoints_ = pointPos.
size();
84 if(!setThisDomain())
return false;
85 if(!createBoundaryDicts())
return false;
91 return initialNumPoints_;
130 size_t requiredSize = sizeOfElement*initialNumberInThis();
131 if(dst.
size() < requiredSize)
134 "size of destination data block [in byte]"<< dst.
size()<<
135 "is smaller than the required size [in byte]"<< requiredSize<<
endl;
139 if(src.
size() < requiredSize )
142 "size of source data block [in byte]"<< src.
size()<<
143 "is smaller than the required size [in byte]"<< requiredSize<<
endl;
148 std::memcpy(dst.
data(), src.
data(), requiredSize);
159 return initialTransferBlockData(
171 return initialTransferBlockData(
183 return initialTransferBlockData(
195 return initialTransferBlockData(
regularSimulationDomain(systemControl &control)
bool domainActive() const final
Is this domain active? Active mean, there is particle in it and boundaries and other entities of simu...
bool initialUpdateDomains(span< realx3 > pointPos) final
word thisBoundariesDictName() const
static int globalRank()
Rank of the processor in the global MPI.
INLINE_FUNCTION_HD uint32 size() const
Returns the number of elements in the span.
static uint32 sizeOfBoundaries()
virtual word globalName() const
global name of entry, separated with dots
const domain & thisDomain() const final
return the simulation domain of this processor
bool add(const word &keyword, const float &v)
add a float dataEntry
uint32 numberToBeExported() const final
iOstream & endl(iOstream &os)
Add newline and flush stream.
bool setThisDomain() final
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
bool initialTransferBlockData(span< char > src, span< char > dst, size_t sizeOfElement) const final
bool createBoundaryDicts() final
uint32 numberToBeImported() const final
Number of points to be imported after updating domains.
dictionary & subDict(const word &keyword)
ref to a subdictioanry fatalExit if not found
INLINE_FUNCTION_HD T * data() const
T getVal(const word &keyword) const
get the value of data entry
span< char > charSpan(span< T > s)
bool addOrReplace(const word &keyword, const T &v)
static const word & bundaryName(uint32 i)
Boundary name based on boundary index.
uint32 initialNumberInThis() const final
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...