Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
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]

Public Member Functions

 cellToCellStencil (const polyMesh &)
 
const polyMeshmesh () const
 
const globalIndexglobalNumbering () const
 
- Public Member Functions inherited from List
constexpr List () noexcept
 
 List (const label len)
 
 List (const label len, const T &val)
 
 List (const label len, const Foam::zero)
 
 List (const Foam::one, const T &val)
 
 List (const Foam::one, T &&val)
 
 List (const Foam::one, const Foam::zero)
 
 List (const List< T > &a)
 
 List (const UList< T > &a)
 
 List (List< T > &a, bool reuse)
 
 List (const UList< T > &list, const labelUList &indices)
 
template<unsigned N>
 List (const UList< T > &list, const FixedList< label, N > &indices)
 
template<unsigned N>
 List (const FixedList< T, N > &list)
 
 List (const PtrList< T > &list)
 
 List (const SLList< T > &list)
 
template<class Addr >
 List (const IndirectListBase< T, Addr > &list)
 
 List (std::initializer_list< T > list)
 
 List (List< T > &&list)
 
template<int SizeMin>
 List (DynamicList< T, SizeMin > &&list)
 
 List (SortableList< T > &&list)
 
 List (SLList< T > &&list)
 
 List (Istream &is)
 
autoPtr< List< T > > clone () const
 
 ~List ()
 
void clear ()
 
void resize (const label len)
 
void resize (const label len, const T &val)
 
void resize_nocopy (const label len)
 
void setSize (const label n)
 
void setSize (const label n, const T &val)
 
void append (const T &val)
 
void append (T &&val)
 
void append (const UList< T > &list)
 
template<class Addr >
void append (const IndirectListBase< T, Addr > &list)
 
label appendUniq (const T &val)
 
void transfer (List< T > &list)
 
template<int SizeMin>
void transfer (DynamicList< T, SizeMin > &list)
 
void transfer (SortableList< T > &list)
 
TnewElmt (const label i)
 
void operator= (const UList< T > &a)
 
void operator= (const List< T > &list)
 
void operator= (const SLList< T > &list)
 
template<class Addr >
void operator= (const IndirectListBase< T, Addr > &list)
 
template<unsigned N>
void operator= (const FixedList< T, N > &list)
 
void operator= (std::initializer_list< T > list)
 
void operator= (const T &val)
 
void operator= (const Foam::zero)
 
void operator= (List< T > &&list)
 
template<int SizeMin>
void operator= (DynamicList< T, SizeMin > &&list)
 
void operator= (SortableList< T > &&list)
 
void operator= (SLList< T > &&list)
 
IstreamreadList (Istream &is)
 
void shallowCopy (const UList< T > &)=delete
 
template<class TypeT = T>
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set (const label i, bool val=true)
 
template<class T >
 List (const label len)
 
template<class T >
 List (const label len, const T &val)
 
template<class T >
 List (const label len, const Foam::zero)
 
template<class T >
 List (const Foam::one, const T &val)
 
template<class T >
 List (const Foam::one, T &&val)
 
template<class T >
 List (const Foam::one, const Foam::zero)
 
template<class T >
 List (const UList< T > &a)
 
template<class T >
 List (const List< T > &a)
 
template<class T >
 List (List< T > &a, bool reuse)
 
template<class T >
 List (const UList< T > &list, const labelUList &indices)
 
template<class T >
 List (const PtrList< T > &list)
 
template<class T >
 List (const SLList< T > &list)
 
template<class T >
 List (std::initializer_list< T > list)
 
template<class T >
 List (List< T > &&list)
 
template<class T >
 List (SortableList< T > &&list)
 
template<class T >
 List (SLList< T > &&list)
 
template<class T >
void transfer (List< T > &list)
 
template<class T >
void transfer (SortableList< T > &list)
 
template<class T >
void operator= (const UList< T > &a)
 
template<class T >
void operator= (const List< T > &list)
 
template<class T >
void operator= (const SLList< T > &list)
 
template<class T >
void operator= (std::initializer_list< T > list)
 
template<class T >
void operator= (List< T > &&list)
 
template<class T >
void operator= (SortableList< T > &&list)
 
template<class T >
void operator= (SLList< T > &&list)
 
IstreamreadList (Istream &is)
 
template<class T >
constexpr List () noexcept
 
void resize (const label newLen)
 
template<class T >
void append (const T &val)
 
template<class T >
void append (T &&val)
 
template<class T >
void append (const UList< T > &list)
 
template<class T >
void operator= (const T &val)
 
template<class T >
void operator= (const Foam::zero)
 
template<class T >
 List (Istream &is)
 
IstreamreadList (Istream &is)
 

Protected Member Functions

void validBoundaryFaces (boolList &isValidBFace) const
 
autoPtr< indirectPrimitivePatchallCoupledFacesPatch () const
 
void insertFaceCells (const label exclude0, const label exclude1, const boolList &nonEmptyFace, const labelList &faceLabels, labelHashSet &globals) const
 
labelList calcFaceCells (const boolList &nonEmptyFace, const labelList &faceLabels, labelHashSet &globals) const
 

Static Protected Member Functions

static void merge (const label global0, const label global1, const labelList &listA, labelList &listB)
 
static void merge (const label globalI, const labelList &pGlobals, labelList &cCells)
 

Additional Inherited Members

- Public Types inherited from List
typedef SubList< TsubList
 
- Static Public Member Functions inherited from List
static const List< T > & null ()
 

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 52 of file cellToCellStencil.H.

Constructor & Destructor Documentation

◆ cellToCellStencil()

cellToCellStencil ( const polyMesh mesh)
explicit

Definition at line 301 of file cellToCellStencil.C.

Member Function Documentation

◆ merge() [1/2]

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

Definition at line 29 of file cellToCellStencil.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::findSortedIndex(), forAll, 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

Definition at line 129 of file cellToCellStencil.C.

References n, and Foam::BitOps::set().

Here is the call graph for this function:

◆ validBoundaryFaces()

void validBoundaryFaces ( boolList isValidBFace) const
protected

Definition at line 163 of file cellToCellStencil.C.

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

Here is the call graph for this function:

◆ allCoupledFacesPatch()

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

Definition at line 184 of file cellToCellStencil.C.

References polyMesh::boundaryMesh(), forAll, mesh, autoPtr::New(), patches, and points.

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

Definition at line 226 of file cellToCellStencil.C.

References polyMesh::faceNeighbour(), polyMesh::faceOwner(), forAll, HashSet::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

Definition at line 278 of file cellToCellStencil.C.

◆ mesh()

const polyMesh& mesh ( ) const
inline

Definition at line 119 of file cellToCellStencil.H.

Referenced by cellToCellStencil::validBoundaryFaces().

Here is the caller graph for this function:

◆ globalNumbering()

const globalIndex& globalNumbering ( ) const
inline

Definition at line 125 of file cellToCellStencil.H.

Referenced by extendedCentredCellToCellStencil::extendedCentredCellToCellStencil().

Here is the caller graph for this function:

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