Go to the documentation of this file.
133 "polyMeshGenFaces::polyMeshGenFaces("
134 "const Time& runTime,"
135 "const pointField& points,"
136 "const faceList& faces,"
137 "const wordList& patchNames,"
138 "const labelList& patchStart,"
139 "const labelList& nFacesInPatch)"
152 nFacesInPatch[patchI],
197 if( faceLabel >=
boundaries_[patchI].patchStart() )
235 if((patchID < 0) || (patchID >=
boundaries_.size()))
239 "polyMeshGenFaces::getPatchName(const label patchID) const"
240 ) <<
"invalid patch ID supplied"
255 WarningIn(
"polyMeshGenFaces::findPatches(const word&)")
256 <<
"Cannot find any patch names matching " << patchName <<
endl;
267 Warning <<
"Face subset " << setName <<
" already exists!" <<
endl;
274 std::map<label, meshSubset>::const_iterator it=
faceSubsets_.begin();
302 std::map<label, meshSubset>::const_iterator it =
306 Warning <<
"Subset " << setI <<
" is not a face subset" <<
endl;
310 return it->second.name();
315 std::map<label, meshSubset>::const_iterator it;
318 if( it->second.name() == setName )
519 std::map<label, meshSubset>::const_iterator setIt;
526 setIt->second.name(),
536 setIt->second.containedElements(containedElements);
538 forAll(containedElements, i)
539 set.
insert(containedElements[i]);
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from string.
word faceSubsetName(const label) const
void removeFaceSubset(const label)
A PtrList of objects of type <T> with automated input and output.
List< Key > toc() const
Return the table of contents.
#define forAll(list, i)
Loop across all elements in list.
labelList findPatches(const word &patchName) const
return a list of patch indices corresponding to the given
wordList patchNames() const
return list of patches in the boundary
Template functions to aid in the implementation of demand driven data.
label faceSubsetIndex(const word &) const
static bool & parRun()
Is this a parallel run?
label addFaceSubset(const word &)
virtual bool write() const
Write using setting from DB.
std::map< label, meshSubset > faceSubsets_
face subsets
Ostream & endl(Ostream &os)
Add newline and flush stream.
label faceIsInPatch(const label faceLabel) const
return patch label for the given face label
wordList names() const
Return the list of names of the IOobjects.
IOList< label > labelIOList
Label container classes.
Constant dispersed-phase particle diameter model.
Like polyPatch but without reference to mesh. patchIdentifier::index is not used. Used in boundaryMes...
void deleteDemandDrivenData(DataPtr &dataPtr)
bool set(const label) const
Is element set.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
label getPatchID(const word &patchName) const
return the index of a patch given its name
PtrList< processorBoundaryPatch > procBoundaries_
label faceIsInProcPatch(const label faceLabel) const
return processor patch label for the given face label
virtual ~polyMeshGenFaces()
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
word getPatchName(const label patchID) const
return the name of a patch given its ID
wordList patchNames(nPatches)
polyMeshGenFaces(const polyMeshGenFaces &)
labelIOList * neighbourPtr_
IOobject * lookup(const word &name) const
Lookup a given name and return IOobject ptr if found else NULL.
static autoPtr< boundaryPatchBase > New(const word &name, const dictionary &dict)
A list of keyword definitions, which are a keyword followed by any number of values (e....
#define forAllReverse(list, i)
Reverse loop across all elements in list.
errorManip< error > abort(error &err)
List of IOobjects with searching and retrieving facilities.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
void setSize(const label)
Reset size of List.
label nIntFaces_
number of internal faces, owner and neighbour
bool findStrings(const wordReListMatcher &matcher, const std::string &str)
Return true if string matches one of the regular expressions.
virtual void calculateOwnersAndNeighbours() const =0
calculate owner and neighbour addressing
faceListPMG faces_
list of faces
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const word & constant() const
Return constant name.
A List of objects of type <T> with automated input and output.
bool insert(const Key &key)
Insert a new entry.
const Time & runTime_
reference to the Time registry
Operations on lists of strings.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
#define WarningIn(functionName)
Report a warning using Foam::Warning.
void size(const label)
Override size to be inconsistent with allocated storage.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
void clearOut() const
clear all pointer data
PtrList< boundaryPatch > boundaries_
boundary data