Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
zoneCellStencils Class Referenceabstract

base class for cell stencil in a narrow band More...

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

Public Member Functions

 TypeName ("zoneCellStencils")
 
 zoneCellStencils (const fvMesh &)
 
virtual ~zoneCellStencils ()=default
 
void updateStencil (const boolList &zone)
 
const labelHashSetneedsComm () noexcept
 
const polyMeshmesh () const noexcept
 
const globalIndexglobalNumbering () const noexcept
 
- 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

autoPtr< indirectPrimitivePatchnonEmptyFacesPatch () const
 
autoPtr< indirectPrimitivePatchallCoupledFacesPatch () const
 
void validBoundaryFaces (boolList &isValidBFace) 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
 
virtual void calculateStencil (const boolList &zone, labelListList &globalCellCells)=0
 
 zoneCellStencils (const zoneCellStencils &)=delete
 
void operator= (const zoneCellStencils &)=delete
 

Static Protected Member Functions

static void merge (const label globalI, const labelList &pGlobals, labelList &cCells)
 

Protected Attributes

const fvMeshmeshRef_
 
labelHashSet needComm_
 
globalIndex globalNumbering_
 

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

base class for cell stencil in a narrow band

Original code supplied by Henning Scheufler, DLR (2019)

Source files

Definition at line 54 of file zoneCellStencils.H.

Constructor & Destructor Documentation

◆ zoneCellStencils() [1/2]

zoneCellStencils ( const zoneCellStencils )
protecteddelete

◆ zoneCellStencils() [2/2]

zoneCellStencils ( const fvMesh mesh)
explicit

Definition at line 251 of file zoneCellStencils.C.

◆ ~zoneCellStencils()

virtual ~zoneCellStencils ( )
virtualdefault

Member Function Documentation

◆ nonEmptyFacesPatch()

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

Definition at line 37 of file zoneCellStencils.C.

References polyMesh::boundaryMesh(), polyMesh::faces(), forAll, zoneCellStencils::meshRef_, autoPtr::New(), patches, and polyMesh::points().

Here is the call graph for this function:

◆ allCoupledFacesPatch()

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

Definition at line 79 of file zoneCellStencils.C.

References forAll, autoPtr::New(), and patches.

Here is the call graph for this function:

◆ validBoundaryFaces()

void validBoundaryFaces ( boolList isValidBFace) const
protected

Definition at line 120 of file zoneCellStencils.C.

References forAll, patches, and List::setSize().

Referenced by zoneCPCStencil::zoneCPCStencil().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ merge()

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

Definition at line 143 of file zoneCellStencils.C.

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

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 178 of file zoneCellStencils.C.

References HashSet::insert().

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 228 of file zoneCellStencils.C.

◆ calculateStencil()

virtual void calculateStencil ( const boolList zone,
labelListList globalCellCells 
)
protectedpure virtual

Referenced by zoneCellStencils::updateStencil().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const zoneCellStencils )
protecteddelete

◆ TypeName()

TypeName ( "zoneCellStencils"  )

◆ updateStencil()

void updateStencil ( const boolList zone)
inline

Definition at line 143 of file zoneCellStencils.H.

References zoneCellStencils::calculateStencil().

Referenced by zoneDistribute::setUpCommforZone(), and zoneDistribute::updateStencil().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ needsComm()

const labelHashSet& needsComm ( )
inlinenoexcept

Definition at line 150 of file zoneCellStencils.H.

References zoneCellStencils::needComm_.

Referenced by zoneDistribute::setUpCommforZone().

Here is the caller graph for this function:

◆ mesh()

const polyMesh& mesh ( ) const
inlinenoexcept

Definition at line 155 of file zoneCellStencils.H.

References zoneCellStencils::meshRef_.

◆ globalNumbering()

const globalIndex& globalNumbering ( ) const
inlinenoexcept

Definition at line 161 of file zoneCellStencils.H.

References zoneCellStencils::globalNumbering_.

Member Data Documentation

◆ meshRef_

const fvMesh& meshRef_
protected

◆ needComm_

labelHashSet needComm_
protected

Definition at line 66 of file zoneCellStencils.H.

Referenced by zoneCellStencils::needsComm().

◆ globalNumbering_

globalIndex globalNumbering_
protected

Definition at line 69 of file zoneCellStencils.H.

Referenced by zoneCellStencils::globalNumbering().


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