35 const word& meshInstance,
39 const word& defaultFacesName,
40 word& defaultFacesType
67 patchDictionary.
add(patchEntries[
patchi]);
77 patchDictionary.
subDict(patchNames[patchi]);
79 patchDicts.
set(patchi, patchDict.
clone());
80 patchDicts[
patchi].remove(
"nFaces");
81 patchDicts[
patchi].remove(
"startFace");
85 if (patchDictionary.
found(defaultFacesName))
88 patchDictionary.
subDict(defaultFacesName);
93 Info<<
nl <<
"Default patch type set to " << defaultFacesType <<
endl;
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#define forAll(list, i)
Loop across all elements in list.
A class for handling file names.
bool set(const label) const
Is element set.
bool headerOk()
Read header (uses typeGlobalFile to find file) and check.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Templated form of IOobject providing type information for file reading and header type checking...
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
autoPtr< dictionary > clone() const
Construct and return clone.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
A class for handling words, derived from string.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
void preservePatchTypes(const objectRegistry &obr, const word &meshInstance, const fileName &meshDir, const wordList &patchNames, PtrList< dictionary > &patchDicts, const word &defaultFacesName, word &defaultFacesType)
Preserve patch types.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Registry of regIOobjects.
Foam::polyBoundaryMeshEntries.