Data Structures | Public Types | Public Member Functions | Private Member Functions
SlicedGeometricField Class Reference

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

Data Structures

class  DimensionedInternalField
 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...
 
 ~SlicedGeometricField ()
 Destructor. More...
 
void correctBoundaryConditions ()
 Correct boundary field. More...
 
void correctBoundaryConditions ()
 
void correctBoundaryConditions ()
 
void correctBoundaryConditions ()
 
void correctBoundaryConditions ()
 
void correctBoundaryConditions ()
 

Private Member Functions

tmp< FieldField< PatchField, Type > > slicedBoundaryField (const Mesh &mesh, const Field< Type > &completeField, const bool preserveCouples, const bool preserveProcessorOnly=false)
 Slice the given field and a create a PtrList of SlicedPatchField. More...
 
tmp< FieldField< PatchField, Type > > slicedBoundaryField (const Mesh &mesh, const FieldField< PatchField, Type > &bField, const bool preserveCouples)
 Slice the given field and a create a PtrList of SlicedPatchField. More...
 
void operator= (const SlicedGeometricField &)
 Disallow default bitwise assignment. More...
 
void operator= (const GeometricField< Type, PatchField, GeoMesh > &)
 Disallow standard assignment to GeometricField,. More...
 
void operator= (const tmp< GeometricField< Type, PatchField, GeoMesh > > &)
 Disallow standard assignment to tmp<GeometricField>,. More...
 

Detailed Description

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 56 of file slicedSurfaceFieldsFwd.H.

Member Typedef Documentation

◆ Mesh

Definition at line 69 of file SlicedGeometricField.H.

◆ BoundaryMesh

Definition at line 70 of file SlicedGeometricField.H.

Constructor & Destructor Documentation

◆ SlicedGeometricField() [1/4]

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

Construct from components and field to slice.

◆ SlicedGeometricField() [2/4]

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.

internal field and boundary field

◆ SlicedGeometricField() [3/4]

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

Construct from GeometricField. Reuses full internal and.

patch fields except on couples (preserveCouples=true).

◆ SlicedGeometricField() [4/4]

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

Construct as copy.

◆ ~SlicedGeometricField()

Destructor.

Definition at line 353 of file SlicedGeometricField.C.

References UList::operator=().

Here is the call graph for this function:

Member Function Documentation

◆ slicedBoundaryField() [1/2]

tmp<FieldField<PatchField, Type> > slicedBoundaryField ( const Mesh mesh,
const Field< Type > &  completeField,
const bool  preserveCouples,
const bool  preserveProcessorOnly = false 
)
private

Slice the given field and a create a PtrList of SlicedPatchField.

from which the boundary field is built

◆ slicedBoundaryField() [2/2]

Foam::tmp< Foam::FieldField< PatchField, Type > > slicedBoundaryField ( const Mesh mesh,
const FieldField< PatchField, Type > &  bField,
const bool  preserveCouples 
)
private

Slice the given field and a create a PtrList of SlicedPatchField.

from which the boundary field is built

Definition at line 119 of file SlicedGeometricField.C.

References forAll, mesh, Foam::compressible::New(), and patchi.

Here is the call graph for this function:

◆ operator=() [1/3]

void operator= ( const SlicedGeometricField )
private

Disallow default bitwise assignment.

◆ operator=() [2/3]

void operator= ( const GeometricField< Type, PatchField, GeoMesh > &  )
private

Disallow standard assignment to GeometricField,.

== assignment is allowed.

◆ operator=() [3/3]

void operator= ( const tmp< GeometricField< Type, PatchField, GeoMesh > > &  )
private

Disallow standard assignment to tmp<GeometricField>,.

== assignment is allowed.

◆ correctBoundaryConditions() [1/6]

void correctBoundaryConditions ( )

Correct boundary field.

◆ correctBoundaryConditions() [2/6]

void correctBoundaryConditions ( )
inline

Definition at line 47 of file slicedSurfaceFields.H.

◆ correctBoundaryConditions() [3/6]

void correctBoundaryConditions ( )
inline

Definition at line 53 of file slicedSurfaceFields.H.

◆ correctBoundaryConditions() [4/6]

void correctBoundaryConditions ( )
inline

Definition at line 65 of file slicedSurfaceFields.H.

◆ correctBoundaryConditions() [5/6]

void correctBoundaryConditions ( )
inline

Definition at line 77 of file slicedSurfaceFields.H.

◆ correctBoundaryConditions() [6/6]

void correctBoundaryConditions ( )
inline

Definition at line 83 of file slicedSurfaceFields.H.


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