lagrangianReconstructor Class Reference

Reconstructor for lagrangian positions and fields. More...

Public Member Functions

 lagrangianReconstructor (const fvMesh &mesh, const PtrList< fvMesh > &procMeshes, const PtrList< labelIOList > &faceProcAddressing, const PtrList< labelIOList > &cellProcAddressing)
 Construct from components. More...
 
label reconstructPositions (const word &cloudName) const
 Reconstruct positions for given cloud. More...
 
template<class Type >
tmp< IOField< Type > > reconstructField (const word &cloudName, const word &fieldName)
 Reconstruct a single field for given cloud. More...
 
template<class Type >
tmp< CompactIOField< Field< Type >, Type > > reconstructFieldField (const word &cloudName, const word &fieldName)
 Reconstruct a single field-field for given cloud. More...
 
template<class Type >
label reconstructFields (const word &cloudName, const UPtrList< const IOobject > &fieldObjects)
 Reconstruct multiple fields for given cloud. More...
 
template<class Type >
label reconstructFields (const word &cloudName, const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Reconstruct multiple fields for given cloud. More...
 
template<class Type >
label reconstructFieldFields (const word &cloudName, const IOobjectList &objects, const wordRes &selectedFields=wordRes())
 Reconstruct multiple field-field for given cloud. More...
 
void reconstructAllFields (const word &cloudName, const IOobjectList &cloudObjs, const wordRes &selectedFields=wordRes())
 Reconstruct all fields for known cloud field types. More...
 
template<class Type >
Foam::tmp< Foam::IOField< Type > > reconstructField (const word &cloudName, const word &fieldName)
 
template<class Type >
Foam::tmp< Foam::CompactIOField< Foam::Field< Type >, Type > > reconstructFieldField (const word &cloudName, const word &fieldName)
 
template<class Type >
Foam::label reconstructFields (const word &cloudName, const UPtrList< const IOobject > &fieldObjects)
 
template<class Type >
Foam::label reconstructFields (const word &cloudName, const IOobjectList &objects, const wordRes &selectedFields)
 
template<class Type >
Foam::label reconstructFieldFields (const word &cloudName, const IOobjectList &objects, const wordRes &selectedFields)
 

Static Public Attributes

static int verbose_ = 1
 Output verbosity when writing. More...
 

Detailed Description

Reconstructor for lagrangian positions and fields.

Source files

Definition at line 52 of file lagrangianReconstructor.H.

Constructor & Destructor Documentation

◆ lagrangianReconstructor()

lagrangianReconstructor ( const fvMesh mesh,
const PtrList< fvMesh > &  procMeshes,
const PtrList< labelIOList > &  faceProcAddressing,
const PtrList< labelIOList > &  cellProcAddressing 
)

Construct from components.

Definition at line 33 of file lagrangianReconstructor.C.

Member Function Documentation

◆ reconstructPositions()

Foam::label reconstructPositions ( const word cloudName) const

Reconstruct positions for given cloud.

Option 1: locate on reconstructed mesh

new passivePositionParticle ( mesh_, ppi.location(), mappedCell )

Option 2: maintain read location

Definition at line 50 of file lagrangianReconstructor.C.

References cloudName(), Foam::faceMap(), forAll, Foam::mag(), Foam::vtk::write(), and Foam::Zero.

Here is the call graph for this function:

◆ reconstructField() [1/2]

tmp<IOField<Type> > reconstructField ( const word cloudName,
const word fieldName 
)

Reconstruct a single field for given cloud.

◆ reconstructFieldField() [1/2]

tmp<CompactIOField<Field<Type>, Type> > reconstructFieldField ( const word cloudName,
const word fieldName 
)

Reconstruct a single field-field for given cloud.

◆ reconstructFields() [1/4]

label reconstructFields ( const word cloudName,
const UPtrList< const IOobject > &  fieldObjects 
)

Reconstruct multiple fields for given cloud.

◆ reconstructFields() [2/4]

label reconstructFields ( const word cloudName,
const IOobjectList objects,
const wordRes selectedFields = wordRes() 
)

Reconstruct multiple fields for given cloud.

◆ reconstructFieldFields() [1/2]

label reconstructFieldFields ( const word cloudName,
const IOobjectList objects,
const wordRes selectedFields = wordRes() 
)

Reconstruct multiple field-field for given cloud.

◆ reconstructAllFields()

void reconstructAllFields ( const word cloudName,
const IOobjectList cloudObjs,
const wordRes selectedFields = wordRes() 
)

Reconstruct all fields for known cloud field types.

Definition at line 164 of file lagrangianReconstructor.C.

References doLocalCode.

◆ reconstructField() [2/2]

Foam::tmp<Foam::IOField<Type> > reconstructField ( const word cloudName,
const word fieldName 
)

Definition at line 31 of file lagrangianReconstructorTemplates.C.

References cloudName(), field(), forAll, Foam::New(), and UList< Type >::size().

Here is the call graph for this function:

◆ reconstructFieldField() [2/2]

Foam::tmp<Foam::CompactIOField<Foam::Field<Type>, Type> > reconstructFieldField ( const word cloudName,
const word fieldName 
)

Definition at line 86 of file lagrangianReconstructorTemplates.C.

References cloudName(), field(), forAll, Foam::New(), and UList< T >::size().

Here is the call graph for this function:

◆ reconstructFields() [3/4]

Foam::label reconstructFields ( const word cloudName,
const UPtrList< const IOobject > &  fieldObjects 
)

Definition at line 147 of file lagrangianReconstructorTemplates.C.

References cloudName(), Foam::endl(), Foam::Info, io(), Foam::nl, and Ostream::write().

Here is the call graph for this function:

◆ reconstructFields() [4/4]

Foam::label reconstructFields ( const word cloudName,
const IOobjectList objects,
const wordRes selectedFields 
)

Definition at line 182 of file lagrangianReconstructorTemplates.C.

References cloudName(), IOobjectList::csorted(), and UList< T >::empty().

Here is the call graph for this function:

◆ reconstructFieldFields() [2/2]

Foam::label reconstructFieldFields ( const word cloudName,
const IOobjectList objects,
const wordRes selectedFields 
)

Member Data Documentation

◆ verbose_

int verbose_ = 1
static

Output verbosity when writing.

Definition at line 97 of file lagrangianReconstructor.H.


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