LagrangianFieldReconstructor Class Reference

Lagrangian field reconstructor. More...

Public Member Functions

 LagrangianFieldReconstructor (const fvMesh &completeFvMesh, const PtrList< fvMesh > &procFvMeshes, const labelListList &faceProcAddressing, const labelListList &cellProcAddressing, const word &LagrangianName)
 Construct from components. More...
 
 LagrangianFieldReconstructor (const LagrangianFieldReconstructor &)=delete
 Disallow default bitwise copy construction. More...
 
 ~LagrangianFieldReconstructor ()
 Destructor. More...
 
const LagrangianMeshcompleteMesh () const
 Access the complete mesh. More...
 
const PtrList< LagrangianMesh > & procMeshes () const
 Access the list of processor meshes. More...
 
void reconstructPositions () const
 Write the reconstructed positions. More...
 
template<class GeoField >
tmp< GeoField > reconstructField (const IOobject &) const
 Read and reconstruct a field. More...
 
template<class GeoField >
void reconstructFields (const IOobjectList &objects, const HashSet< word > &selectedFields) const
 Read, reconstruct and write all/selected Lagrangian fields. More...
 
void operator= (const LagrangianFieldReconstructor &)=delete
 Disallow default bitwise assignment. More...
 
template<class Type , template< class > class PrimitiveField, template< class, class, template< class > class > class GeoField>
Foam::tmp< PrimitiveField< Type > > reconstructLagrangianPrimitiveField (const PtrList< GeoField< Type, LagrangianMesh, PrimitiveField >> &procFields) const
 
template<class Type , template< class > class PrimitiveField>
Foam::tmp< Foam::DimensionedField< Type, Foam::LagrangianMesh, PrimitiveField > > reconstructLagrangianField (const PtrList< DimensionedField< Type, LagrangianMesh, PrimitiveField >> &procFields) const
 
template<class Type , template< class > class PrimitiveField>
Foam::tmp< Foam::GeometricField< Type, Foam::LagrangianMesh, PrimitiveField > > reconstructLagrangianField (const PtrList< GeometricField< Type, LagrangianMesh, PrimitiveField >> &procFields) const
 
template<class GeoField >
Foam::tmp< GeoField > reconstructField (const IOobject &fieldIo) const
 

Static Public Member Functions

static bool reconstructs (const IOobjectList &objects, const HashSet< word > &selectedFields)
 Return whether anything in the object list gets reconstructed. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ LagrangianFieldReconstructor() [1/2]

LagrangianFieldReconstructor ( const fvMesh completeFvMesh,
const PtrList< fvMesh > &  procFvMeshes,
const labelListList faceProcAddressing,
const labelListList cellProcAddressing,
const word LagrangianName 
)

Construct from components.

Definition at line 30 of file LagrangianFieldReconstructor.C.

References polyMesh::faces(), forAll, LagrangianMesh::inject(), Foam::mag(), LagrangianMesh::mesh(), and List< T >::size().

Here is the call graph for this function:

◆ LagrangianFieldReconstructor() [2/2]

Disallow default bitwise copy construction.

◆ ~LagrangianFieldReconstructor()

Destructor.

Definition at line 115 of file LagrangianFieldReconstructor.C.

Member Function Documentation

◆ completeMesh()

const LagrangianMesh& completeMesh ( ) const
inline

Access the complete mesh.

Definition at line 141 of file LagrangianFieldReconstructor.H.

◆ procMeshes()

const PtrList<LagrangianMesh>& procMeshes ( ) const
inline

Access the list of processor meshes.

Definition at line 147 of file LagrangianFieldReconstructor.H.

◆ reconstructs()

bool reconstructs ( const IOobjectList objects,
const HashSet< word > &  selectedFields 
)
static

Return whether anything in the object list gets reconstructed.

Definition at line 121 of file LagrangianFieldReconstructor.C.

References Foam::FOR_ALL_FIELD_TYPES(), and RECONSTRUCTS_LAGRANGIAN_FIELDS_TYPE.

Here is the call graph for this function:

◆ reconstructPositions()

void reconstructPositions ( ) const

Write the reconstructed positions.

Definition at line 160 of file LagrangianFieldReconstructor.C.

◆ reconstructField() [1/2]

tmp<GeoField> reconstructField ( const IOobject ) const

Read and reconstruct a field.

◆ reconstructFields()

void reconstructFields ( const IOobjectList objects,
const HashSet< word > &  selectedFields 
) const

Read, reconstruct and write all/selected Lagrangian fields.

Definition at line 213 of file LagrangianFieldReconstructorTemplates.C.

References HashTable< T, Key, Hash >::empty(), Foam::endl(), fields, forAllConstIter, HashTable< T, Key, Hash >::found(), Foam::Info, Foam::name(), Foam::nl, objects, and Foam::vtkWriteOps::write().

Here is the call graph for this function:

◆ operator=()

void operator= ( const LagrangianFieldReconstructor )
delete

Disallow default bitwise assignment.

◆ reconstructLagrangianPrimitiveField()

Foam::tmp<PrimitiveField<Type> > reconstructLagrangianPrimitiveField ( const PtrList< GeoField< Type, LagrangianMesh, PrimitiveField >> &  procFields) const

Definition at line 65 of file LagrangianFieldReconstructorTemplates.C.

References forAll, tmp< T >::ref(), and UList< T >::size().

Here is the call graph for this function:

◆ reconstructLagrangianField() [1/2]

Foam::tmp<Foam::DimensionedField<Type, Foam::LagrangianMesh, PrimitiveField> > reconstructLagrangianField ( const PtrList< DimensionedField< Type, LagrangianMesh, PrimitiveField >> &  procFields) const

Definition at line 95 of file LagrangianFieldReconstructorTemplates.C.

References Foam::name(), IOobject::NO_READ, and IOobject::NO_WRITE.

Here is the call graph for this function:

◆ reconstructLagrangianField() [2/2]

Foam::tmp<Foam::GeometricField<Type, Foam::LagrangianMesh, PrimitiveField> > reconstructLagrangianField ( const PtrList< GeometricField< Type, LagrangianMesh, PrimitiveField >> &  procFields) const

Definition at line 124 of file LagrangianFieldReconstructorTemplates.C.

References Foam::clone(), forAll, Foam::name(), IOobject::NO_READ, IOobject::NO_WRITE, and PtrList< T >::set().

Here is the call graph for this function:

◆ reconstructField() [2/2]

Foam::tmp<GeoField> reconstructField ( const IOobject fieldIo) const

Definition at line 179 of file LagrangianFieldReconstructorTemplates.C.

References forAll, IOobject::MUST_READ, IOobject::name(), IOobject::NO_WRITE, and PtrList< T >::set().

Here is the call graph for this function:

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