Go to the documentation of this file.
33 real boundaryExtntionLengthRatio =
39 uint32 neighborListUpdateInterval =
40 boundaries.
getValMax(
"neighborListUpdateInterval", updateInterval);
42 boundaries.
addOrReplace(
"neighborListUpdateInterval", neighborListUpdateInterval);
47 thisBDict.
addOrReplace(
"neighborLength", neighborLength);
48 thisBDict.
addOrReplace(
"boundaryExtntionLengthRatio", boundaryExtntionLengthRatio);
49 thisBDict.
addOrReplace(
"updateInterval", updateInterval);
50 thisBDict.
addOrReplace(
"neighborListUpdateInterval", neighborListUpdateInterval);
62 auto& bDict = thisBDict.
subDict(bName);
64 if(!bDict.addOrKeep(
"neighborLength", neighborLength))
71 if(!bDict.addOrReplace(
"updateInterval", updateInterval))
78 bDict.addOrReplace(
"boundaryExtntionLengthRatio", boundaryExtntionLengthRatio);
93 globalBox_(subDict(
"globalBox"))
98 "Error in preparing dictionaries for boundaries"<<
endl;
105 const realx3 &lowerPointExtension,
106 const realx3 &upperPointExtension
109 realx3 minP = thisDomain().minPoint() + lowerPointExtension;
110 realx3 maxP = thisDomain().maxPoint() + upperPointExtension;
111 return domain({minP, maxP});
117 return thisDomain().boundaryPlane(i);
128 if( systemControlvCtorSelector_.search(sType) )
130 return systemControlvCtorSelector_[sType] (control);
136 fatalError <<
"Ctor Selector "<< sType <<
" dose not exist. \n"
137 <<
"Avaiable ones are: \n\n"
139 systemControlvCtorSelector_
#define fatalExit
Fatal exit.
word thisBoundariesDictName() const
domain extendThisDomain(const realx3 &lowerPointExtension, const realx3 &upperPointExtension) const
static uint32 sizeOfBoundaries()
iOstream & printKeys(iOstream &os, const wordHashMap< T > &m)
virtual word globalName() const
global name of entry, separated with dots
const plane & boundaryPlane(uint32 i) const
return a const ref to the plane of boundary i of this processor
iOstream & endl(iOstream &os)
Add newline and flush stream.
bool containsDictionay(const word &name) const
check if a sub-dictionary exists
T getValMax(const word &keyword, const T &maxVal) const
get the value of data entry and return max(value, maxVal)
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
word angleBracketsNames(const word &w1, const word &w2)
Output <w1,w2>
#define fatalError
Report a fatal error and exit the applicaiton.
dictionary & subDict(const word &keyword)
ref to a subdictioanry fatalExit if not found
T getVal(const word &keyword) const
get the value of data entry
static uniquePtr< simulationDomain > create(systemControl &control)
bool addOrReplace(const word &keyword, const T &v)
localProcessors & pFlowProcessors()
simulationDomain(systemControl &control)
Constrcut from components.
static const word & bundaryName(uint32 i)
Boundary name based on boundary index.
bool addDict(const word &keyword, const dictionary &dict)
add a dictionary with the specifiedd keyword, if it exists, replace it.
T getValOrSetMax(const word &keyword, const T &setMaxVal) const
get the value of data entry anf return max(setMaxVal, value) if not found, set the value to setMaxVal
const char *const domainFile__
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
bool prepareBoundaryDicts()