Go to the documentation of this file.
89 const faceZone& fz = faceZones[zoneID];
127 addressing_(refCast<const faceZoneSet>(set).addressing()),
128 flipMap_(refCast<const faceZoneSet>(set).flipMap())
147 for (
label faceI = 0; faceI < maxLen; faceI++)
160 for (
label faceI = 0; faceI < maxLen; faceI++)
194 if (iter != faceToIndex.end())
196 label index = iter();
202 newAddressing.
append(faceI);
210 <<
"subset : there are " << nConflict
211 <<
" faces with different orientation in faceZonesSets "
242 if (iter != faceToIndex.end())
244 label index = iter();
253 newAddressing.
append(faceI);
261 <<
"addSet : there are " << nConflict
262 <<
" faces with different orientation in faceZonesSets "
293 if (iter != faceToIndex.end())
295 label index = iter();
305 newAddressing.
append(faceI);
313 <<
"deleteSet : there are " << nConflict
314 <<
" faces with different orientation in faceZonesSets "
330 return mesh.nFaces();
343 word oldTypeName = typeName;
344 const_cast<word&
>(
type()) = faceSet::typeName;
346 const_cast<word&
>(
type()) = oldTypeName;
354 zoneID = faceZones.size();
356 faceZones.setSize(zoneID+1);
372 faceZones[zoneID].resetAddressing(addressing_, flipMap_);
376 return ok && faceZones.write();
393 newAddressing[
n] = newFaceI;
const labelList & addressing() const
volScalarField w(IOobject("w", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar("w", dimensionSet(0, 0, 0, 0, 0, 0, 0), 0.0))
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
Write using given format, version and compression.
A class for handling words, derived from string.
void resize(const label newSize)
Resize the hash table for efficiency.
#define forAll(list, i)
Loop across all elements in list.
void updateSet()
Sort addressing and make faceSet part consistent with addressing.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
compressionType
Enumeration for the format of data in the stream.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
virtual void updateMesh(const mapPolyMesh &morphMap)
Update any stored data for new labels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const boolList & flipMap() const
Mesh consisting of general polyhedral cells.
const faceZoneMesh & faceZones() const
Return face zone mesh.
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.
virtual void deleteSet(const topoSet &set)
Delete elements present in set.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
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.
virtual void invert(const label maxLen)
Invert contents. (insert all members 0..maxLen-1 which were not in.
writeOption
Enumeration defining the write options.
Like faceSet but updates faceZone when writing.
const word & name() const
Return name.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
General set of labels of mesh quantity (points, cells, faces).
faceZoneSet(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
Construct from objectRegistry and name.
virtual void sync(const polyMesh &mesh)
Sync faceZoneSet across coupled patches.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
label size() const
Return number of elements in table.
Macros for easy insertion into run-time selection tables.
bool found(const Key &) const
Return true if hashedEntry is found in table.
label findZoneID(const word &zoneName) const
Find zone index given a name.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
const labelList & reverseFaceMap() const
Reverse face map.
void setSize(const label)
Reset size of List.
virtual void addSet(const topoSet &set)
Add elements present in set.
virtual void subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
void clearStorage()
Clear the table entries and the table itself.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
Write faceZone.
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)
Insert a new entry.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const dimensionedScalar c
Speed of light in a vacuum.
A List with indirect addressing.
readOption
Enumeration defining the read options.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual ~faceZoneSet()
Destructor.
void clearAddressing()
Clear addressing.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
const boolList & flipMap() const
Return face flip map.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const complex &)
Return a string representation of a complex.
bool set(const Key &key)
Same as insert (cannot overwrite nil content)
streamFormat
Enumeration for the format of data in the stream.
Cell-face mesh analysis engine.