33 const word& patchType,
46 wordConstructorTable::iterator cstrIter =
47 wordConstructorTablePtr_->find(patchType);
49 if (cstrIter == wordConstructorTablePtr_->end())
52 <<
"Unknown polyPatch type "
53 << patchType <<
" for patch " <<
name <<
nl <<
nl
54 <<
"Valid polyPatch types are :" <<
endl
55 << wordConstructorTablePtr_->sortedToc()
96 const word& patchType,
108 dictionaryConstructorTable::iterator cstrIter =
109 dictionaryConstructorTablePtr_->find(patchType);
111 if (cstrIter == dictionaryConstructorTablePtr_->end())
113 if (!disallowGenericPolyPatch)
115 cstrIter = dictionaryConstructorTablePtr_->find(
"genericPatch");
118 if (cstrIter == dictionaryConstructorTablePtr_->end())
123 ) <<
"Unknown polyPatch type "
124 << patchType <<
" for patch " <<
name <<
nl <<
nl
125 <<
"Valid polyPatch types are :" <<
endl
126 << dictionaryConstructorTablePtr_->sortedToc()
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 keyword definitions, which are a keyword followed by any number of values (e....
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.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define InfoInFunction
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 bool)
Return a word representation of a bool.