Go to the documentation of this file.
63 int main(
int argc,
char *argv[])
67 "Add point/face/cell Zones from similarly named point/face/cell Sets"
74 "Ignore orientation of faceSet"
82 const bool noFlipMap =
args.
found(
"noFlipMap");
102 Info<<
"Searched : " << setsInstance/setsSubPath
104 <<
"Found : " << objects.names() <<
nl
108 IOobjectList pointObjects(objects.lookupClass(pointSet::typeName));
126 Info<<
"Overwriting contents of existing pointZone "
128 <<
" with that of set " <<
set.name() <<
"." <<
endl;
132 Info<<
"Adding set " <<
set.name() <<
" as a pointZone." <<
endl;
142 IOobjectList faceObjects(objects.lookupClass(faceSet::typeName));
162 label facei = faceLabels[i];
163 addressing.append(facei);
164 flipMap.append(
false);
169 const word setName(
set.name() +
"SlaveCells");
171 Info<<
"Trying to load cellSet " << setName
172 <<
" to find out the slave side of the zone." <<
nl
173 <<
"If you do not care about the flipMap"
174 <<
" (i.e. do not use the sideness)" <<
nl
175 <<
"use the -noFlipMap command line option."
182 slaveCellSets.
insert(setName);
186 label facei = faceLabels[i];
211 <<
"One of owner or neighbour of internal face "
212 << facei <<
" should be in cellSet " <<
cells.name()
213 <<
" to be able to determine orientation." <<
endl
236 addressing.append(facei);
237 flipMap.append(flip);
249 Info<<
"Overwriting contents of existing faceZone "
251 <<
" with that of set " <<
set.name() <<
"." <<
endl;
255 Info<<
"Adding set " <<
set.name() <<
" as a faceZone." <<
endl;
270 IOobjectList cellObjects(objects.lookupClass(cellSet::typeName));
276 if (!slaveCellSets.found(iter.key()))
289 Info<<
"Overwriting contents of existing cellZone "
291 <<
" with that of set " <<
set.name() <<
"." <<
endl;
295 Info<<
"Adding set " <<
set.name() <<
" as a cellZone." <<
endl;
311 <<
"Failed writing polyMesh."
void set(List< bool > &bools, const labelRange &range)
A class for handling words, derived from Foam::string.
A class for handling file names.
virtual bool write(const bool valid=true) const
virtual const fileName & dbDir() const
virtual void resetAddressing(const labelUList &addr, const bool flipMapValue)
static void addNote(const string ¬e)
const fileName & facesInstance() const
Ostream & endl(Ostream &os)
A HashTable with keys but without contents that is similar to std::unordered_set.
A subset of mesh faces organised as a primitive patch.
const cellZoneMesh & cellZones() const noexcept
virtual const labelList & faceOwner() const
const faceZoneMesh & faceZones() const noexcept
static instantList selectIfPresent(Time &runTime, const argList &args)
errorManip< error > abort(error &err)
A collection of cell labels.
List of IOobjects with searching and retrieving facilities.
word findInstance(const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const
errorManipArg< error, int > exit(error &err, const int errNo=1)
label index() const noexcept
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
bool isInternalFace(const label faceIndex) const noexcept
#define FatalErrorInFunction
forAllConstIters(mixture.phases(), phase)
static void addOptions(const bool constant=true, const bool withZero=false)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool insert(const Key &key)
const pointZoneMesh & pointZones() const noexcept
Foam::argList args(argc, argv)
labelList pointLabels(nPoints, -1)
virtual const labelList & faceNeighbour() const
bool found(const word &optName) const