Go to the documentation of this file.
61 int main(
int argc,
char *argv[])
66 "add point/face/cell Zones from similar named point/face/cell Sets"
72 "ignore orientation of faceSet"
88 word setsInstance = runTime.findInstance
100 <<
"Found : " << objects.names() <<
nl
104 IOobjectList pointObjects(objects.lookupClass(pointSet::typeName));
117 Info<<
"Adding set " << set.name() <<
" as a pointZone." <<
endl;
136 Info<<
"Overwriting contents of existing pointZone " << zoneID
137 <<
" with that of set " << set.name() <<
"." <<
endl;
146 IOobjectList faceObjects(objects.lookupClass(faceSet::typeName));
166 label faceI = faceLabels[i];
167 addressing.append(faceI);
168 flipMap.append(
false);
173 const word setName(set.name() +
"SlaveCells");
175 Info<<
"Trying to load cellSet " << setName
176 <<
" to find out the slave side of the zone." <<
nl
177 <<
"If you do not care about the flipMap"
178 <<
" (i.e. do not use the sideness)" <<
nl
179 <<
"use the -noFlipMap command line option."
186 slaveCellSets.
insert(setName);
190 label faceI = faceLabels[i];
215 <<
"One of owner or neighbour of internal face "
216 << faceI <<
" should be in cellSet " <<
cells.name()
217 <<
" to be able to determine orientation." <<
endl
240 addressing.append(faceI);
241 flipMap.append(flip);
248 Info<<
"Adding set " << set.name() <<
" as a faceZone." <<
endl;
268 Info<<
"Overwriting contents of existing faceZone " << zoneID
269 <<
" with that of set " << set.name() <<
"." <<
endl;
282 IOobjectList cellObjects(objects.lookupClass(cellSet::typeName));
288 if (!slaveCellSets.
found(iter.key()))
297 Info<<
"Adding set " << set.name() <<
" as a cellZone." <<
endl;
316 Info<<
"Overwriting contents of existing cellZone " << zoneID
317 <<
" with that of set " << set.name() <<
"." <<
endl;
332 <<
"Failed writing polyMesh."
A class for handling words, derived from string.
static void addNote(const string &)
Add extra notes for the usage information.
#define forAll(list, i)
Loop across all elements in list.
A subset of mesh points. The labels of points in the zone can be obtained from the addressing() list.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
const fileName & facesInstance() const
Return the current instance directory for faces.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A HashTable with keys but without contents.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
const faceZoneMesh & faceZones() const
Return face zone mesh.
virtual bool write() const
Write mesh using IO settings from time.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A subset of mesh faces organised as a primitive patch.
const pointZoneMesh & pointZones() const
Return point zone mesh.
virtual const labelList & faceOwner() const
Return face owner.
int main(int argc, char *argv[])
static instantList selectIfPresent(Time &runTime, const argList &args)
If any time option provided return the set of times (as select0)
A list that is sorted upon construction or when explicitly requested with the sort() method.
bool found(const Key &) const
Return true if hashedEntry is found in table.
errorManip< error > abort(error &err)
A collection of cell labels.
label findZoneID(const word &zoneName) const
Find zone index given a name.
List of IOobjects with searching and retrieving facilities.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
bool isInternalFace(const label faceIndex) const
Return true if given face label is internal to the mesh.
bool insert(const Key &key)
Insert a new entry.
static const word null
An empty word.
bool optionFound(const word &opt) const
Return true if the named option is found.
Foam::argList args(argc, argv)
labelList pointLabels(nPoints, -1)
virtual const labelList & faceNeighbour() const
Return face neighbour.