SlicedGeometricField< Type, PatchField, SlicedPatchField, GeoMesh > Class Template Reference

Specialization of GeometricField which holds slices of given complete fields in a form that they act as a GeometricField. More...

Classes

class  Internal
 The internalField of a SlicedGeometricField. More...
 

Public Types

typedef GeoMesh::Mesh Mesh
 
typedef GeoMesh::BoundaryMesh BoundaryMesh
 

Public Member Functions

 SlicedGeometricField (const IOobject &, const Mesh &, const dimensionSet &, const Field< Type > &completeField, const bool preserveCouples=true)
 Construct from components and field to slice. More...
 
 SlicedGeometricField (const IOobject &, const Mesh &, const dimensionSet &, const Field< Type > &completeIField, const Field< Type > &completeBField, const bool preserveCouples=true, const bool preserveProcessorOnly=false)
 Construct from components and separate fields to slice for the. More...
 
 SlicedGeometricField (const IOobject &, const GeometricField< Type, PatchField, GeoMesh > &, const bool preserveCouples=true)
 Construct from GeometricField. Reuses full internal and. More...
 
 SlicedGeometricField (const SlicedGeometricField< Type, PatchField, SlicedPatchField, GeoMesh > &)
 Construct as copy. More...
 
tmp< SlicedGeometricField< Type, PatchField, SlicedPatchField, GeoMesh > > clone () const
 Clone. More...
 
 ~SlicedGeometricField ()
 Destructor. More...
 
void correctBoundaryConditions ()
 Correct boundary field. More...
 
template<>
void correctBoundaryConditions ()
 
template<>
void correctBoundaryConditions ()
 
template<>
void correctBoundaryConditions ()
 
template<>
void correctBoundaryConditions ()
 
template<>
void correctBoundaryConditions ()
 

Detailed Description

template<class Type, template< class > class PatchField, template< class > class SlicedPatchField, class GeoMesh>
class Foam::SlicedGeometricField< Type, PatchField, SlicedPatchField, GeoMesh >

Specialization of GeometricField which holds slices of given complete fields in a form that they act as a GeometricField.

The destructor is wrapped to avoid deallocation of the storage of the complete fields when this is destroyed.

SlicedGeometricField can only be instantiated with a valid form of SlicedPatchField to handle the slicing and storage deallocation of the boundary field.

Source files

Definition at line 58 of file slicedSurfaceFieldsFwd.H.

Member Typedef Documentation

◆ Mesh

Definition at line 71 of file SlicedGeometricField.H.

◆ BoundaryMesh

Definition at line 72 of file SlicedGeometricField.H.

Constructor & Destructor Documentation

◆ SlicedGeometricField() [1/4]

SlicedGeometricField ( const IOobject io,
const Mesh mesh,
const dimensionSet ds,
const Field< Type > &  completeField,
const bool  preserveCouples = true 
)

Construct from components and field to slice.

Definition at line 214 of file SlicedGeometricField.C.

References correctBoundaryConditions(), and mesh.

Here is the call graph for this function:

◆ SlicedGeometricField() [2/4]

SlicedGeometricField ( const IOobject io,
const Mesh mesh,
const dimensionSet ds,
const Field< Type > &  completeIField,
const Field< Type > &  completeBField,
const bool  preserveCouples = true,
const bool  preserveProcessorOnly = false 
)

Construct from components and separate fields to slice for the.

internal field and boundary field

Definition at line 250 of file SlicedGeometricField.C.

References correctBoundaryConditions(), and mesh.

Here is the call graph for this function:

◆ SlicedGeometricField() [3/4]

SlicedGeometricField ( const IOobject io,
const GeometricField< Type, PatchField, GeoMesh > &  gf,
const bool  preserveCouples = true 
)

Construct from GeometricField. Reuses full internal and.

patch fields except on couples (preserveCouples=true).

Definition at line 294 of file SlicedGeometricField.C.

References correctBoundaryConditions(), and GeometricField< Type, PatchField, GeoMesh >::primitiveField().

Here is the call graph for this function:

◆ SlicedGeometricField() [4/4]

SlicedGeometricField ( const SlicedGeometricField< Type, PatchField, SlicedPatchField, GeoMesh > &  gf)

Construct as copy.

Definition at line 325 of file SlicedGeometricField.C.

◆ ~SlicedGeometricField()

Destructor.

Definition at line 380 of file SlicedGeometricField.C.

Member Function Documentation

◆ clone()

tmp<SlicedGeometricField<Type, PatchField, SlicedPatchField, GeoMesh> > clone ( ) const

Clone.

◆ correctBoundaryConditions() [1/6]

void correctBoundaryConditions ( )

Correct boundary field.

Definition at line 414 of file SlicedGeometricField.C.

References correctBoundaryConditions().

Here is the call graph for this function:

◆ correctBoundaryConditions() [2/6]

void correctBoundaryConditions ( )
inline

Definition at line 49 of file slicedSurfaceFields.H.

◆ correctBoundaryConditions() [3/6]

void correctBoundaryConditions ( )
inline

Definition at line 55 of file slicedSurfaceFields.H.

◆ correctBoundaryConditions() [4/6]

void correctBoundaryConditions ( )
inline

Definition at line 67 of file slicedSurfaceFields.H.

◆ correctBoundaryConditions() [5/6]

void correctBoundaryConditions ( )
inline

Definition at line 79 of file slicedSurfaceFields.H.

◆ correctBoundaryConditions() [6/6]

void correctBoundaryConditions ( )
inline

Definition at line 85 of file slicedSurfaceFields.H.


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