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... | |
Reconstructor for lagrangian positions and fields.
Definition at line 52 of file lagrangianReconstructor.H.
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.
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 particle< Type >::cell(), cloudName(), particle< Type >::coordinates(), Foam::faceMap(), forAll, forAllConstIters(), passivePositionParticle::location(), Foam::mag(), particle< Type >::procTetPt(), HashTable< T, Key, Hash >::size(), particle< Type >::tetFace(), Foam::vtk::write(), and Foam::Zero.
Reconstruct a single field for given cloud.
tmp<CompactIOField<Field<Type>, Type> > reconstructFieldField | ( | const word & | cloudName, |
const word & | fieldName | ||
) |
Reconstruct a single field-field for given cloud.
Reconstruct multiple fields for given cloud.
label reconstructFields | ( | const word & | cloudName, |
const IOobjectList & | objects, | ||
const wordRes & | selectedFields = wordRes() |
||
) |
Reconstruct multiple fields for given cloud.
label reconstructFieldFields | ( | const word & | cloudName, |
const IOobjectList & | objects, | ||
const wordRes & | selectedFields = wordRes() |
||
) |
Reconstruct multiple field-field for given cloud.
void reconstructAllFields | ( | const word & | cloudName, |
const IOobjectList & | cloudObjs, | ||
const wordRes & | selectedFields = wordRes() |
||
) |
Reconstruct all fields for known cloud field types.
Definition at line 165 of file lagrangianReconstructor.C.
References doLocalCode.
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().
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().
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().
Foam::label reconstructFields | ( | const word & | cloudName, |
const IOobjectList & | objects, | ||
const wordRes & | selectedFields | ||
) |
Definition at line 182 of file lagrangianReconstructorTemplates.C.
References cloudName(), UList< T >::empty(), and IOobjectList::sorted().
Foam::label reconstructFieldFields | ( | const word & | cloudName, |
const IOobjectList & | objects, | ||
const wordRes & | selectedFields | ||
) |
Definition at line 204 of file lagrangianReconstructorTemplates.C.
References UPtrList< T >::append(), cloudName(), UList< T >::empty(), Foam::endl(), Foam::Info, io(), Foam::nl, Foam::sort(), IOobjectList::sorted(), and Ostream::write().
|
static |
Output verbosity when writing.
Definition at line 97 of file lagrangianReconstructor.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.