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 56 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 39 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 56 of file lagrangianReconstructor.C.

References particle< Type >::cell(), cloudName(), particle< Type >::coordinates(), Foam::faceMap(), forAll, forAllConstIters, passivePositionParticle::location(), Foam::mag(), cloud::POSITIONS, particle< Type >::procTetPt(), HashTable< T, Key, Hash >::size(), particle< Type >::tetFace(), IOPosition< CloudType >::write(), particle< Type >::writeLagrangianPositions, 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 166 of file lagrangianReconstructor.C.

References doLocalCode.

◆ reconstructField() [2/2]

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

Definition at line 37 of file lagrangianReconstructorTemplates.C.

References cloudName(), field(), forAll, IOobject::MUST_READ, Foam::New(), IOobject::NO_READ, IOobject::NO_WRITE, cloud::prefix, UList< T >::size(), fvMesh::time(), Time::timeName(), and IOobject::typeHeaderOk().

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 92 of file lagrangianReconstructorTemplates.C.

References cloudName(), field(), forAll, IOobject::MUST_READ, Foam::New(), IOobject::NO_READ, IOobject::NO_WRITE, cloud::prefix, UList< T >::size(), and IOobject::typeHeaderOk().

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 153 of file lagrangianReconstructorTemplates.C.

References cloudName(), Foam::endl(), Foam::Info, io(), IOobject::isHeaderClass(), IOobject::name(), Foam::nl, and 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 188 of file lagrangianReconstructorTemplates.C.

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

Here is the call graph for this function:

◆ reconstructFieldFields() [2/2]

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

Definition at line 210 of file lagrangianReconstructorTemplates.C.

References UPtrList< T >::append(), cloudName(), UList< T >::empty(), Foam::endl(), Foam::Info, io(), IOobject::name(), Foam::nl, Foam::sort(), IOobjectList::sorted(), and write().

Here is the call graph for this function:

Member Data Documentation

◆ verbose_

int verbose_ = 1
static

Output verbosity when writing.

Definition at line 87 of file lagrangianReconstructor.H.


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