A subset of mesh faces organised as a primitive patch. More...
Public Member Functions | |
TypeName ("faceZone") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, faceZone, dictionary,(const word &name, const dictionary &dict, const label index, const faceZoneMesh &zm),(name, dict, index, zm)) | |
faceZone (const word &name, const labelUList &addr, const boolList &fm, const label index, const faceZoneMesh &zm) | |
Construct from components. More... | |
faceZone (const word &name, const Xfer< labelList > &addr, const Xfer< boolList > &fm, const label index, const faceZoneMesh &) | |
Construct from components, transferring contents. More... | |
faceZone (const word &name, const dictionary &, const label index, const faceZoneMesh &) | |
Construct from dictionary. More... | |
faceZone (const faceZone &, const labelUList &addr, const boolList &fm, const label index, const faceZoneMesh &) | |
Construct given the original zone and resetting the. More... | |
faceZone (const faceZone &, const Xfer< labelList > &addr, const Xfer< boolList > &fm, const label index, const faceZoneMesh &) | |
Construct given the original zone, resetting the. More... | |
virtual autoPtr< faceZone > | clone (const faceZoneMesh &zm) const |
Construct and return a clone, resetting the zone mesh. More... | |
virtual autoPtr< faceZone > | clone (const labelUList &addr, const boolList &fm, const label index, const faceZoneMesh &zm) const |
Construct and return a clone, resetting the face list. More... | |
virtual | ~faceZone () |
Destructor. More... | |
const boolList & | flipMap () const |
Return face flip map. More... | |
label | whichFace (const label globalCellID) const |
Helper function to re-direct to zone::localID(...) More... | |
const primitiveFacePatch & | operator() () const |
Return reference to primitive patch. More... | |
const faceZoneMesh & | zoneMesh () const |
Return zoneMesh reference. More... | |
const labelList & | masterCells () const |
Return labels of master cells (cells next to the master face. More... | |
const labelList & | slaveCells () const |
Return labels of slave cells. More... | |
const labelList & | meshEdges () const |
Return global edge index for local edges. More... | |
virtual void | clearAddressing () |
Clear addressing. More... | |
virtual void | resetAddressing (const labelUList &, const boolList &) |
Reset addressing and flip map (clearing demand-driven data) More... | |
virtual bool | checkDefinition (const bool report=false) const |
Check zone definition. Return true if in error. More... | |
virtual bool | checkParallelSync (const bool report=false) const |
Check whether all procs have faces synchronised. Return. More... | |
virtual void | movePoints (const pointField &) |
Correct patch after moving points. More... | |
virtual void | updateMesh (const mapPolyMesh &) |
Update for changes in topology. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
virtual void | writeDict (Ostream &) const |
Write dictionary. More... | |
![]() | |
TypeName ("zone") | |
Runtime type information. More... | |
zone (const word &name, const labelUList &addr, const label index) | |
Construct from components. More... | |
zone (const word &name, const Xfer< labelList > &addr, const label index) | |
Construct from components, transferring contents. More... | |
zone (const word &name, const dictionary &, const word &labelsName, const label index) | |
Construct from dictionary. More... | |
zone (const zone &, const labelUList &addr, const label index) | |
Construct given the original zone and resetting the. More... | |
zone (const zone &, const Xfer< labelList > &addr, const label index) | |
Construct given the original zone, resetting the. More... | |
virtual | ~zone () |
Destructor. More... | |
const word & | name () const |
Return name. More... | |
label | localID (const label globalID) const |
Map storing the local index for every global index. Used to find. More... | |
label | index () const |
Return the index of this zone in zone list. More... | |
virtual bool | checkDefinition (const label maxSize, const bool report=false) const |
Check zone definition with max size given. Return true if in error. More... | |
![]() | |
List () | |
Null constructor. More... | |
List (const label) | |
Construct with given size. More... | |
List (const label, const T &) | |
Construct with given size and value for all elements. More... | |
List (const List< T > &) | |
Copy constructor. More... | |
List (const Xfer< List< T > > &) | |
Construct by transferring the parameter contents. More... | |
List (List< T > &, bool reUse) | |
Construct as copy or re-use as specified. More... | |
List (const UList< T > &, const labelUList &mapAddressing) | |
Construct as subset. More... | |
template<class InputIterator > | |
List (InputIterator first, InputIterator last) | |
Construct given start and end iterators. More... | |
template<unsigned Size> | |
List (const FixedList< T, Size > &) | |
Construct as copy of FixedList<T, Size> More... | |
List (const PtrList< T > &) | |
Construct as copy of PtrList<T> More... | |
List (const SLList< T > &) | |
Construct as copy of SLList<T> More... | |
List (const UIndirectList< T > &) | |
Construct as copy of UIndirectList<T> More... | |
List (const BiIndirectList< T > &) | |
Construct as copy of BiIndirectList<T> More... | |
List (Istream &) | |
Construct from Istream. More... | |
autoPtr< List< T > > | clone () const |
Clone. More... | |
~List () | |
Destructor. More... | |
label | size () const |
Return the number of elements in the UList. More... | |
void | resize (const label) |
Alias for setSize(const label) More... | |
void | resize (const label, const T &) |
Alias for setSize(const label, const T&) More... | |
void | setSize (const label) |
Reset size of List. More... | |
void | setSize (const label, const T &) |
Reset size of List and value for new elements. More... | |
void | clear () |
Clear the list, i.e. set size to zero. More... | |
void | append (const T &) |
Append an element at the end of the list. More... | |
void | append (const UList< T > &) |
Append a List at the end of this list. More... | |
void | append (const UIndirectList< T > &) |
Append a UIndirectList at the end of this list. More... | |
void | transfer (List< T > &) |
Transfer the contents of the argument List into this list. More... | |
template<unsigned SizeInc, unsigned SizeMult, unsigned SizeDiv> | |
void | transfer (DynamicList< T, SizeInc, SizeMult, SizeDiv > &) |
Transfer the contents of the argument List into this list. More... | |
void | transfer (SortableList< T > &) |
Transfer the contents of the argument List into this list. More... | |
Xfer< List< T > > | xfer () |
Transfer contents to the Xfer container. More... | |
T & | newElmt (const label) |
Return subscript-checked element of UList. More... | |
void | operator= (const UList< T > &) |
Assignment from UList operator. Takes linear time. More... | |
void | operator= (const List< T > &) |
Assignment operator. Takes linear time. More... | |
void | operator= (const SLList< T > &) |
Assignment from SLList operator. Takes linear time. More... | |
void | operator= (const UIndirectList< T > &) |
Assignment from UIndirectList operator. Takes linear time. More... | |
void | operator= (const BiIndirectList< T > &) |
Assignment from BiIndirectList operator. Takes linear time. More... | |
void | operator= (const T &) |
Assignment of all entries to the given value. More... | |
template<class T > | |
List (const label s) | |
template<class T > | |
List (const label s, const T &a) | |
template<class T > | |
List (const List< T > &a) | |
template<class T > | |
List (const Xfer< List< T > > &lst) | |
template<class T > | |
List (List< T > &a, bool reUse) | |
template<class T > | |
List (const UList< T > &a, const labelUList &map) | |
template<class T > | |
List (const PtrList< T > &lst) | |
template<class T > | |
List (const SLList< T > &lst) | |
template<class T > | |
List (const UIndirectList< T > &lst) | |
template<class T > | |
List (const BiIndirectList< T > &lst) | |
template<class T > | |
void | transfer (List< T > &a) |
template<class T > | |
void | transfer (SortableList< T > &a) |
template<class T > | |
List () | |
template<class T > | |
List (Istream &is) | |
Static Public Member Functions | |
static autoPtr< faceZone > | New (const word &name, const dictionary &, const label index, const faceZoneMesh &) |
Return a pointer to a new face zone. More... | |
![]() | |
static const List< T > & | null () |
Return a null List. More... | |
Static Public Attributes | |
static const char *const | labelsName = "faceLabels" |
The name associated with the zone-labels dictionary entry. More... | |
Protected Member Functions | |
faceZone (const faceZone &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const faceZone &) |
Disallow default bitwise assignment. More... | |
void | calcFaceZonePatch () const |
Build primitive patch. More... | |
const Map< label > & | faceLookupMap () const |
Return map of local face indices. More... | |
void | calcCellLayers () const |
Calculate master and slave face layer. More... | |
void | checkAddressing () const |
Check addressing. More... | |
![]() | |
const Map< label > & | lookupMap () const |
Return a reference to the look-up map. More... | |
void | calcLookupMap () const |
Construct the look-up map. More... | |
zone (const zone &) | |
Disallow default bitwise copy construct. More... | |
![]() | |
void | size (const label) |
Override size to be inconsistent with allocated storage. More... | |
Protected Attributes | |
boolList | flipMap_ |
Flip map for all faces in the zone. Set to true if the. More... | |
const faceZoneMesh & | zoneMesh_ |
Reference to zone list. More... | |
primitiveFacePatch * | patchPtr_ |
Primitive patch made out of correctly flipped faces. More... | |
labelList * | masterCellsPtr_ |
Master cell layer. More... | |
labelList * | slaveCellsPtr_ |
Slave cell layer. More... | |
labelList * | mePtr_ |
Global edge addressing. More... | |
![]() | |
word | name_ |
Name of zone. More... | |
label | index_ |
Index of zone. More... | |
Map< label > * | lookupMapPtr_ |
Map of labels in zone for fast location lookup. More... | |
Static Private Attributes | |
static const word | labelsName_ |
The name associated with the zone-labels dictionary entry. More... | |
Friends | |
Ostream & | operator<< (Ostream &, const faceZone &) |
Ostream Operator. More... | |
Additional Inherited Members | |
![]() | |
typedef SubList< T > | subList |
Declare type of subList. More... | |
A subset of mesh faces organised as a primitive patch.
For quick check whether a face belongs to the zone use the lookup mechanism in faceZoneMesh, where all the zoned faces are registered with their zone number.
Definition at line 64 of file faceZone.H.
Disallow default bitwise copy construct.
Referenced by faceZone::clone().
faceZone | ( | const word & | name, |
const labelUList & | addr, | ||
const boolList & | fm, | ||
const label | index, | ||
const faceZoneMesh & | zm | ||
) |
Construct from components.
Definition at line 195 of file faceZone.C.
faceZone | ( | const word & | name, |
const Xfer< labelList > & | addr, | ||
const Xfer< boolList > & | fm, | ||
const label | index, | ||
const faceZoneMesh & | zm | ||
) |
Construct from components, transferring contents.
Definition at line 216 of file faceZone.C.
faceZone | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index, | ||
const faceZoneMesh & | zm | ||
) |
Construct from dictionary.
Definition at line 237 of file faceZone.C.
faceZone | ( | const faceZone & | fz, |
const labelUList & | addr, | ||
const boolList & | fm, | ||
const label | index, | ||
const faceZoneMesh & | zm | ||
) |
Construct given the original zone and resetting the.
face list and zone mesh information
Definition at line 257 of file faceZone.C.
faceZone | ( | const faceZone & | fz, |
const Xfer< labelList > & | addr, | ||
const Xfer< boolList > & | fm, | ||
const label | index, | ||
const faceZoneMesh & | zm | ||
) |
Construct given the original zone, resetting the.
face list and zone mesh information
Definition at line 278 of file faceZone.C.
|
virtual |
Destructor.
Definition at line 300 of file faceZone.C.
|
protected |
Disallow default bitwise assignment.
|
protected |
Build primitive patch.
Definition at line 48 of file faceZone.C.
References Foam::abort(), Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), forAll, Foam::Info, mesh, ZoneMesh::mesh(), faceZone::patchPtr_, points, List::size(), and faceZone::zoneMesh().
|
protected |
Calculate master and slave face layer.
Definition at line 99 of file faceZone.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, and List::size().
|
protected |
Check addressing.
Definition at line 162 of file faceZone.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, List::size(), and WarningInFunction.
TypeName | ( | "faceZone" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
faceZone | , | ||
dictionary | , | ||
(const word &name, const dictionary &dict, const label index, const faceZoneMesh &zm) | , | ||
(name, dict, index, zm) | |||
) |
|
inlinevirtual |
Construct and return a clone, resetting the zone mesh.
Definition at line 204 of file faceZone.H.
References faceZone::faceZone(), faceZone::flipMap(), and zone::index().
Referenced by singleCellFvMesh::agglomerateMesh().
|
inlinevirtual |
Construct and return a clone, resetting the face list.
and zone mesh
Definition at line 215 of file faceZone.H.
References faceZone::faceZone(), and zone::index().
|
static |
Return a pointer to a new face zone.
created on freestore from dictionary
Definition at line 32 of file faceZoneNew.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::Info, Foam::name(), and Foam::nl.
|
inline |
Return face flip map.
Definition at line 249 of file faceZone.H.
References faceZone::flipMap_.
Referenced by faceZone::calcFaceZonePatch(), repatchPolyTopoChanger::changeAnchorPoint(), changePatchID(), repatchPolyTopoChanger::changePatchID(), faceZone::clone(), directionalPressureGradientExplicitSource::correct(), meshRefinement::createBaffle(), meshRefinement::createZoneBaffles(), meshRefinement::doSplitFaces(), faceZoneSet::faceZoneSet(), faceCollapser::filterFace(), boundaryCutter::getFaceInfo(), hexRef8::getFaceInfo(), removeFaces::getFaceInfo(), meshCutter::getFaceInfo(), meshRefinement::getZoneBafflePatches(), meshCutAndRemove::getZoneInfo(), effectivenessHeatExchangerSource::initialise(), fluxSummary::initialiseFaceZone(), insertDuplicateMerge(), meshRefinement::mergeBaffles(), polyMeshAdder::mergePoints(), removePoints::modifyFace(), layerAdditionRemoval::removeCellLayer(), reorderMesh(), fvMeshDistribute::repatch(), faceSource::setFaceZoneFaces(), removeCells::setRefinement(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), combineFaces::setRefinement(), tetDecomposer::setRefinement(), edgeCollapser::setRefinement(), addPatchCellLayer::setRefinement(), combineFaces::setUnrefinement(), meshRefinement::splitFacesUndo(), and fvMeshSubset::subsetZones().
Foam::label whichFace | ( | const label | globalCellID | ) | const |
Helper function to re-direct to zone::localID(...)
Definition at line 314 of file faceZone.C.
References zone::localID().
Referenced by repatchPolyTopoChanger::changeAnchorPoint(), changePatchID(), repatchPolyTopoChanger::changePatchID(), meshRefinement::createBaffle(), meshRefinement::doSplitFaces(), faceCollapser::filterFace(), boundaryCutter::getFaceInfo(), hexRef8::getFaceInfo(), removeFaces::getFaceInfo(), meshCutter::getFaceInfo(), meshCutAndRemove::getZoneInfo(), insertDuplicateMerge(), edgeCollapser::markFaceZoneEdges(), meshRefinement::mergeBaffles(), polyMeshAdder::mergePoints(), removePoints::modifyFace(), layerAdditionRemoval::removeCellLayer(), fvMeshDistribute::repatch(), polyTopoChange::resetZones(), duplicatePoints::setRefinement(), removeCells::setRefinement(), perfectInterface::setRefinement(), combineFaces::setRefinement(), tetDecomposer::setRefinement(), edgeCollapser::setRefinement(), addPatchCellLayer::setRefinement(), combineFaces::setUnrefinement(), and meshRefinement::splitFacesUndo().
const Foam::primitiveFacePatch & operator() | ( | ) | const |
Return reference to primitive patch.
Definition at line 320 of file faceZone.C.
const Foam::faceZoneMesh & zoneMesh | ( | ) | const |
Return zoneMesh reference.
Definition at line 308 of file faceZone.C.
Referenced by faceZone::calcFaceZonePatch().
const Foam::labelList & masterCells | ( | ) | const |
Return labels of master cells (cells next to the master face.
zone in the prescribed direction)
Definition at line 331 of file faceZone.C.
Referenced by layerAdditionRemoval::changeTopology(), directionalPressureGradientExplicitSource::correct(), and autoLayerDriver::doLayers().
const Foam::labelList & slaveCells | ( | ) | const |
Return labels of slave cells.
Definition at line 342 of file faceZone.C.
Referenced by directionalPressureGradientExplicitSource::correct(), and autoLayerDriver::doLayers().
const Foam::labelList & meshEdges | ( | ) | const |
Return global edge index for local edges.
Definition at line 353 of file faceZone.C.
References mesh.
|
virtual |
Clear addressing.
Reimplemented from zone.
Definition at line 394 of file faceZone.C.
References zone::clearAddressing(), and Foam::deleteDemandDrivenData().
|
virtual |
Reset addressing and flip map (clearing demand-driven data)
Definition at line 408 of file faceZone.C.
References List::operator=().
Referenced by reorderMesh().
|
virtual |
Check zone definition. Return true if in error.
Implements zone.
Definition at line 449 of file faceZone.C.
References zone::checkDefinition(), and mesh.
|
virtual |
Check whether all procs have faces synchronised. Return.
true if in error.
Definition at line 455 of file faceZone.C.
References polyMesh::boundaryMesh(), Foam::endl(), forAll, primitiveMesh::isInternalFace(), mesh, Foam::name(), IOobject::name(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::Pout, Foam::returnReduce(), syncTools::swapBoundaryFaceList(), and polyBoundaryMesh::whichPatch().
|
virtual |
Correct patch after moving points.
Reimplemented from zone.
Definition at line 544 of file faceZone.C.
References p.
|
virtual |
Update for changes in topology.
Definition at line 419 of file faceZone.C.
References Foam::faceMap(), forAll, mapPolyMesh::reverseFaceMap(), and List::setSize().
|
virtual |
Write.
Reimplemented from zone.
Definition at line 552 of file faceZone.C.
References Foam::name(), and Foam::nl.
Referenced by Foam::operator<<().
|
virtual |
Write dictionary.
Implements zone.
Definition at line 560 of file faceZone.C.
References token::BEGIN_BLOCK, token::END_BLOCK, token::END_STATEMENT, Foam::endl(), Foam::name(), Foam::nl, and Foam::type().
|
staticprivate |
The name associated with the zone-labels dictionary entry.
Definition at line 71 of file faceZone.H.
|
protected |
Flip map for all faces in the zone. Set to true if the.
face needs to be flipped to achieve the correct orientation.
Definition at line 79 of file faceZone.H.
Referenced by faceZone::flipMap().
|
protected |
Reference to zone list.
Definition at line 82 of file faceZone.H.
|
mutableprotected |
Primitive patch made out of correctly flipped faces.
Definition at line 88 of file faceZone.H.
Referenced by faceZone::calcFaceZonePatch().
|
mutableprotected |
Master cell layer.
Definition at line 91 of file faceZone.H.
|
mutableprotected |
Slave cell layer.
Definition at line 94 of file faceZone.H.
|
mutableprotected |
Global edge addressing.
Definition at line 97 of file faceZone.H.
|
static |
The name associated with the zone-labels dictionary entry.
Definition at line 126 of file faceZone.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.