GeometricFieldListSlicer< Type > Class Template Reference

Class to provide list slices to different parts of a geometric field. More...

Public Member Functions

 GeometricFieldListSlicer ()
 Construct null. Set later. More...
 
template<class GeoMesh , template< class > class PrimitiveField>
 GeometricFieldListSlicer (const GeoMesh &mesh, const UPtrList< GeometricField< Type, GeoMesh, PrimitiveField >> &geoFields)
 Construct from a mesh and a list of fields. More...
 
template<class GeoMesh , template< class > class PrimitiveField>
void set (const GeoMesh &mesh, const UPtrList< GeometricField< Type, GeoMesh, PrimitiveField >> &geoFields)
 Set the field pointers. More...
 
FieldListSlice< Type > slice (const label elementi) const
 Return a slice for an internal element. More...
 
FieldListSlice< Type > patchSlice (const label patchi, const label patchElementi) const
 Return a slice for a patch element. More...
 

Detailed Description

template<class Type>
class Foam::GeometricFieldListSlicer< Type >

Class to provide list slices to different parts of a geometric field.

See also
Foam::FieldListSlice

Definition at line 49 of file GeometricFieldListSlicer.H.

Constructor & Destructor Documentation

◆ GeometricFieldListSlicer() [1/2]

Construct null. Set later.

Definition at line 65 of file GeometricFieldListSlicer.H.

◆ GeometricFieldListSlicer() [2/2]

GeometricFieldListSlicer ( const GeoMesh &  mesh,
const UPtrList< GeometricField< Type, GeoMesh, PrimitiveField >> &  geoFields 
)
inline

Construct from a mesh and a list of fields.

Definition at line 70 of file GeometricFieldListSlicer.H.

References mesh, and GeometricFieldListSlicer< Type >::set().

Here is the call graph for this function:

Member Function Documentation

◆ set()

void set ( const GeoMesh &  mesh,
const UPtrList< GeometricField< Type, GeoMesh, PrimitiveField >> &  geoFields 
)
inline

Set the field pointers.

Definition at line 85 of file GeometricFieldListSlicer.H.

References fvMesh::boundary(), forAll, mesh, patchi, List< T >::resize(), UPtrList< T >::resize(), UPtrList< T >::set(), and UPtrList< T >::size().

Referenced by GeometricFieldListSlicer< Type >::GeometricFieldListSlicer().

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

◆ slice()

FieldListSlice<Type> slice ( const label  elementi) const
inline

Return a slice for an internal element.

Definition at line 116 of file GeometricFieldListSlicer.H.

Referenced by psiuMulticomponentThermo::implementation::cellComposition(), and multicomponentThermo::implementation::cellComposition().

Here is the caller graph for this function:

◆ patchSlice()

FieldListSlice<Type> patchSlice ( const label  patchi,
const label  patchElementi 
) const
inline

Return a slice for a patch element.

Definition at line 122 of file GeometricFieldListSlicer.H.

References patchi.

Referenced by psiuMulticomponentThermo::implementation::patchFaceComposition(), and multicomponentThermo::implementation::patchFaceComposition().

Here is the caller graph for this function:

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