39 void Foam::nonConformalPolyPatch::validateSize()
const 41 if (patch_.size() != 0)
44 <<
"Patch " << patch_.name() <<
" has " << patch_.size()
45 <<
" faces. Patches of type " << patch_.type()
55 if (origPatchID_ != -1)
57 origPatchName_ = newNames[origPatchID_];
62 <<
"Cannot rename " << nonConformalPolyPatch::typeName
63 <<
" without the original patch index" 71 if (origPatchID_ != -1)
73 origPatchID_ =
findIndex(newToOldIndex, origPatchID_);
83 origPatchName_(
word::null),
93 const word& origPatchName
97 origPatchName_(origPatchName),
111 origPatchName_(dict.
lookup<
word>(
"originalPatch")),
125 origPatchName_(ncPatch.origPatchName_),
142 return origPatchName_;
148 if (origPatchID_ == -1)
152 if (origPatchID_ == -1)
156 <<
endl <<
"Valid patch names are " 163 if (isA<nonConformalPolyPatch>(p))
166 <<
"The originalPatch for the " 167 << patch_.type() <<
" patch " << patch_.
name() <<
" is " 168 << p.
name() <<
" which is also of " 169 << nonConformalPolyPatch::typeName <<
" type. This is not " 170 <<
"allowed. The originalPatch must be of a non-" 171 << nonConformalPolyPatch::typeName <<
" type." 188 writeEntry(os,
"originalPatch", origPatchName_);
const word & name() const
Return name.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label findPatchID(const word &patchName) const
Find patch index given a name.
A class for handling words, derived from string.
wordList names() const
Return a list of patch names.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
defineTypeNameAndDebug(combustionModel, 0)
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
A patch is a list of labels that address the faces in the global face list.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.