GeometricFieldListSlicer< Type, PatchField, GeoMesh > 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...
 
 GeometricFieldListSlicer (const typename geoFieldType::Mesh &mesh, const UPtrList< const geoFieldType > &geoFields)
 Construct from a mesh and a list of fields. More...
 
 GeometricFieldListSlicer (const typename geoFieldType::Mesh &mesh, const UPtrList< geoFieldType > &geoFields)
 Construct from a mesh and a list of fields. More...
 
void set (const typename geoFieldType::Mesh &mesh, const UPtrList< const geoFieldType > &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, template< class > class PatchField, class GeoMesh>
class Foam::GeometricFieldListSlicer< Type, PatchField, GeoMesh >

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

See also
Foam::FieldListSlice

Definition at line 51 of file GeometricFieldListSlicer.H.

Constructor & Destructor Documentation

◆ GeometricFieldListSlicer() [1/3]

Construct null. Set later.

Definition at line 73 of file GeometricFieldListSlicer.H.

◆ GeometricFieldListSlicer() [2/3]

GeometricFieldListSlicer ( const typename geoFieldType::Mesh mesh,
const UPtrList< const geoFieldType > &  geoFields 
)
inline

Construct from a mesh and a list of fields.

Definition at line 77 of file GeometricFieldListSlicer.H.

References GeometricFieldListSlicer< Type, PatchField, GeoMesh >::set().

Here is the call graph for this function:

◆ GeometricFieldListSlicer() [3/3]

GeometricFieldListSlicer ( const typename geoFieldType::Mesh mesh,
const UPtrList< geoFieldType > &  geoFields 
)
inline

Construct from a mesh and a list of fields.

Definition at line 87 of file GeometricFieldListSlicer.H.

Member Function Documentation

◆ set()

void set ( const typename geoFieldType::Mesh mesh,
const UPtrList< const geoFieldType > &  geoFields 
)
inline

Set the field pointers.

Definition at line 104 of file GeometricFieldListSlicer.H.

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

Referenced by GeometricFieldListSlicer< Type, PatchField, GeoMesh >::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 134 of file GeometricFieldListSlicer.H.

◆ patchSlice()

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

Return a slice for a patch element.

Definition at line 140 of file GeometricFieldListSlicer.H.

References patchi.


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