Go to the documentation of this file.
45 zones[zoneI].start() =
count;
46 count += zones[zoneI].size();
49 if (count < this->size())
52 <<
"more faces " << this->size() <<
" than zones " <<
count
53 <<
" ... extending final zone"
56 zones.last().size() +=
count - this->size();
58 else if (
count > this->size())
61 <<
"more zones " <<
count <<
" than faces " << this->size()
82 this->storedFaces().transfer(oldFaces);
97 newFaces[facei].transfer(oldFaces[
faceMap[facei]]);
99 this->storedFaces().transfer(newFaces);
118 if (srfZones[zoneI].size() || !cullEmpty)
120 zones[nZone] =
surfZone(srfZones[zoneI], nZone);
143 if (sizes[zoneI] || !cullEmpty)
152 start += sizes[zoneI];
174 if (sizes[zoneI] || !cullEmpty)
183 start += sizes[zoneI];
202 this->storedZones().clear();
void checkZones()
Basic sanity check on zones.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling words, derived from Foam::string.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void sortFacesAndStore(DynamicList< Face > &unsortedFaces, DynamicList< label > &zoneIds, const bool sorted)
Sort faces by zones and store sorted faces.
bool addZonesToFaces()
Propagate zone information on face regions.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const complex &c)
Return string representation of complex.
virtual void addZones(const UList< surfZone > &, const bool cullEmpty=false)
Add surface zones.
virtual void removeZones()
Remove surface zones.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
A surface zone on a MeshedSurface.
label ListType::const_reference const label start
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void clear()
Clear the list, i.e. set size to zero.
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
Various functions to operate on Lists.
labelList sortedOrder(const UList< T > &input)
Return the (stable) sort order for the list.
void setSize(const label newSize)
Alias for resize(const label)
#define WarningInFunction
Report a warning using Foam::Warning.