33 const word& patchType,
43 wordConstructorTable::iterator cstrIter =
44 wordConstructorTablePtr_->find(patchType);
46 if (cstrIter == wordConstructorTablePtr_->end())
49 <<
"Unknown polyPatch type "
50 << patchType <<
" for patch " <<
name <<
nl <<
nl
51 <<
"Valid polyPatch types are :" <<
endl
52 << wordConstructorTablePtr_->sortedToc()
71 && ppPtr->constraint()
72 &&
findIndex(ppPtr->inGroups(), patchType) == -1
76 ppPtr->inGroups().append(patchType);
102 const word& patchType,
111 dictionaryConstructorTable::iterator cstrIter =
112 dictionaryConstructorTablePtr_->find(patchType);
114 if (cstrIter == dictionaryConstructorTablePtr_->end())
116 if (!disallowGenericPolyPatch)
118 cstrIter = dictionaryConstructorTablePtr_->find(
"genericPatch");
121 if (cstrIter == dictionaryConstructorTablePtr_->end())
126 ) <<
"Unknown polyPatch type "
127 << patchType <<
" for patch " <<
name <<
nl <<
nl
128 <<
"Valid polyPatch types are :" <<
endl
129 << dictionaryConstructorTablePtr_->sortedToc()
139 && ppPtr->constraint()
140 &&
findIndex(ppPtr->inGroups(), patchType) == -1
144 ppPtr->inGroups().append(patchType);
label size() const
Return the number of elements in the UList.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
label index() const
Return the index of this patch in the boundaryMesh.
const word & name() const
Return name.
static autoPtr< polyPatch > New(const word &patchType, const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm)
Return a pointer to a new patch created on freestore from.
label start() const
Return start label of this patch in the polyMesh face list.
A class for handling words, derived from string.
static const word null
An empty word.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define DebugInFunction
Report an information message using Foam::Info.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.