Data Structures | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Attributes
cellToCellStencil Class Reference

baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or boundaryfaces in global addressing. More...

Inheritance diagram for cellToCellStencil:
Inheritance graph
[legend]
Collaboration diagram for cellToCellStencil:
Collaboration graph
[legend]

Data Structures

class  unionEqOp
 Combine operator for labelLists. More...
 

Public Member Functions

 cellToCellStencil (const polyMesh &)
 Construct from mesh. More...
 
const polyMeshmesh () const
 
const globalIndexglobalNumbering () const
 Global numbering for cells and boundary faces. More...
 
- Public Member Functions inherited from List
 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...
 
TnewElmt (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)
 

Protected Member Functions

void validBoundaryFaces (boolList &isValidBFace) const
 Valid boundary faces (not empty and not coupled) More...
 
autoPtr< indirectPrimitivePatchallCoupledFacesPatch () const
 Return patch of all coupled faces. More...
 
void insertFaceCells (const label exclude0, const label exclude1, const boolList &nonEmptyFace, const labelList &faceLabels, labelHashSet &globals) const
 Collect cell neighbours of faces in global numbering. More...
 
labelList calcFaceCells (const boolList &nonEmptyFace, const labelList &faceLabels, labelHashSet &globals) const
 Collect cell neighbours of faces in global numbering. More...
 
- Protected Member Functions inherited from List
void size (const label)
 Override size to be inconsistent with allocated storage. More...
 

Static Protected Member Functions

static void merge (const label, const label, const labelList &, labelList &)
 Merge two lists. More...
 
static void merge (const label, const labelList &, labelList &)
 Merge two lists. More...
 

Private Attributes

const polyMeshmesh_
 
const globalIndex globalNumbering_
 Global numbering for cells and boundary faces. More...
 

Additional Inherited Members

- Public Types inherited from List
typedef SubList< TsubList
 Declare type of subList. More...
 
- Static Public Member Functions inherited from List
static const List< T > & null ()
 Return a null List. More...
 

Detailed Description

baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or boundaryfaces in global addressing.

Source files

Definition at line 54 of file cellToCellStencil.H.

Constructor & Destructor Documentation

◆ cellToCellStencil()

cellToCellStencil ( const polyMesh mesh)
explicit

Construct from mesh.

Definition at line 342 of file cellToCellStencil.C.

Member Function Documentation

◆ merge() [1/2]

void merge ( const label  global0,
const label  global1,
const labelList listA,
labelList listB 
)
staticprotected

Merge two lists.

Definition at line 35 of file cellToCellStencil.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::findSortedIndex(), forAll, List::size(), Foam::sort(), and List::transfer().

Here is the call graph for this function:

◆ merge() [2/2]

void merge ( const label  globalI,
const labelList pGlobals,
labelList cCells 
)
staticprotected

Merge two lists.

Definition at line 136 of file cellToCellStencil.C.

References forAll, forAllConstIter(), HashSet< Key, Hash >::insert(), n, List::setSize(), and HashTable::size().

Here is the call graph for this function:

◆ validBoundaryFaces()

void validBoundaryFaces ( boolList isValidBFace) const
protected

Valid boundary faces (not empty and not coupled)

Definition at line 170 of file cellToCellStencil.C.

References polyMesh::boundaryMesh(), polyPatch::coupled(), forAll, cellToCellStencil::mesh(), primitiveMesh::nInternalFaces(), patches, List::setSize(), and polyPatch::start().

Here is the call graph for this function:

◆ allCoupledFacesPatch()

Foam::autoPtr< Foam::indirectPrimitivePatch > allCoupledFacesPatch ( ) const
protected

Return patch of all coupled faces.

Definition at line 193 of file cellToCellStencil.C.

References polyMesh::boundaryMesh(), polyPatch::coupled(), forAll, mesh, patches, points, and polyPatch::start().

Here is the call graph for this function:

◆ insertFaceCells()

void insertFaceCells ( const label  exclude0,
const label  exclude1,
const boolList nonEmptyFace,
const labelList faceLabels,
labelHashSet globals 
) const
protected

Collect cell neighbours of faces in global numbering.

Definition at line 267 of file cellToCellStencil.C.

References polyMesh::faceNeighbour(), polyMesh::faceOwner(), forAll, HashSet< Key, Hash >::insert(), mesh, and primitiveMesh::nInternalFaces().

Here is the call graph for this function:

◆ calcFaceCells()

Foam::labelList calcFaceCells ( const boolList nonEmptyFace,
const labelList faceLabels,
labelHashSet globals 
) const
protected

Collect cell neighbours of faces in global numbering.

Definition at line 319 of file cellToCellStencil.C.

References HashTable::clear(), and HashTable::toc().

Here is the call graph for this function:

◆ mesh()

const polyMesh& mesh ( ) const
inline

Definition at line 122 of file cellToCellStencil.H.

References cellToCellStencil::mesh_.

Referenced by CFCCellToCellStencil::calcCellStencil(), and cellToCellStencil::validBoundaryFaces().

Here is the caller graph for this function:

◆ globalNumbering()

const globalIndex& globalNumbering ( ) const
inline

Global numbering for cells and boundary faces.

Definition at line 128 of file cellToCellStencil.H.

References cellToCellStencil::globalNumbering_.

Referenced by CFCCellToCellStencil::calcCellStencil(), extendedCentredCellToCellStencil::extendedCentredCellToCellStencil(), and main().

Here is the caller graph for this function:

Field Documentation

◆ mesh_

const polyMesh& mesh_
private

Definition at line 60 of file cellToCellStencil.H.

Referenced by cellToCellStencil::mesh().

◆ globalNumbering_

const globalIndex globalNumbering_
private

Global numbering for cells and boundary faces.

Definition at line 63 of file cellToCellStencil.H.

Referenced by cellToCellStencil::globalNumbering().


The documentation for this class was generated from the following files: