Calculates zone number for every face of patch. More...
Public Member Functions | |
ClassName ("patchZones") | |
patchZones (const primitivePatch &pp, const boolList &borderEdge) | |
Fills *this with zone of face. Zone is area. More... | |
label | nZones () const |
Number of zones. More... | |
ClassName ("patchZones") | |
patchZones (const primitivePatch &pp, const boolList &borderEdge) | |
Fills *this with zone of face. Zone is area. More... | |
label | nZones () const |
Number of zones. 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) | |
Private Member Functions | |
labelList | faceToEdge (const labelList &changedFaces, labelList &edgeRegion) |
Gets labels of changed faces and propagates them to the edges. More... | |
labelList | edgeToFace (const labelList &changedEdges) |
Reverse of faceToEdge: gets edges and returns faces. More... | |
void | markZone (label faceI) |
Fill *this with current zone for every face reachable. More... | |
labelList | faceToEdge (const labelList &changedFaces, labelList &edgeRegion) |
Gets labels of changed faces and propagates them to the edges. More... | |
labelList | edgeToFace (const labelList &changedEdges) |
Reverse of faceToEdge: gets edges and returns faces. More... | |
void | markZone (label faceI) |
Fill *this with current zone for every face reachable. More... | |
Private Attributes | |
const primitivePatch & | pp_ |
Reference to patch. More... | |
const boolList & | borderEdge_ |
Reference to protected edges. More... | |
label | nZones_ |
Max number of zones. More... | |
Additional Inherited Members | |
![]() | |
typedef SubList< T > | subList |
Declare type of subList. More... | |
![]() | |
static const List< T > & | null () |
Return a null List. More... | |
![]() | |
void | size (const label) |
Override size to be inconsistent with allocated storage. More... | |
Calculates zone number for every face of patch.
Gets constructed from patch and is a labeList with zone number for every patch face.
Gets constructed from patch and is a labeList with zone number for every patch face.
Definition at line 53 of file patchZones.H.
patchZones | ( | const primitivePatch & | pp, |
const boolList & | borderEdge | ||
) |
Fills *this with zone of face. Zone is area.
reachable by edge crossing without crossing borderEdge (bool for every edge in patch).
Definition at line 153 of file patchZones.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorIn, and List::size().
patchZones | ( | const primitivePatch & | pp, |
const boolList & | borderEdge | ||
) |
Fills *this with zone of face. Zone is area.
reachable by edge crossing without crossing borderEdge (bool for every edge in patch).
|
private |
Gets labels of changed faces and propagates them to the edges.
Returns labels of edges changed. Does not cross edges marked in regionEdge
Definition at line 41 of file patchZones.C.
References forAll, and List::setSize().
|
private |
Reverse of faceToEdge: gets edges and returns faces.
Definition at line 75 of file patchZones.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::edgeFaces(), forAll, patchZones::nZones_, patchZones::pp_, and List::setSize().
|
private |
Fill *this with current zone for every face reachable.
from faceI without crossing edge marked in borderEdge.
Definition at line 106 of file patchZones.C.
References Foam::endl(), Foam::Info, and List::size().
ClassName | ( | "patchZones" | ) |
|
inline |
Number of zones.
Definition at line 103 of file patchZones.H.
References patchZones::nZones_.
Referenced by oldCyclicPolyPatch::getGeometricHalves().
Gets labels of changed faces and propagates them to the edges.
Returns labels of edges changed. Does not cross edges marked in regionEdge
Reverse of faceToEdge: gets edges and returns faces.
|
private |
Fill *this with current zone for every face reachable.
from faceI without crossing edge marked in borderEdge.
ClassName | ( | "patchZones" | ) |
|
inline |
|
private |
Reference to patch.
Definition at line 60 of file patchZones.H.
Referenced by patchZones::edgeToFace().
|
private |
Reference to protected edges.
Definition at line 63 of file patchZones.H.
|
private |
Max number of zones.
Definition at line 66 of file patchZones.H.
Referenced by patchZones::edgeToFace(), and patchZones::nZones().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.