34 const fvMesh& completeMesh,
41 completeMesh_(completeMesh),
42 procMeshes_(procMeshes),
43 faceProcAddressing_(faceProcAddressing),
44 cellProcAddressing_(cellProcAddressing),
57 bool Foam::lagrangianFieldReconstructor::reconstructs
65 #define DO_LAGRANGIAN_FIELDS_TYPE(Type, nullArg) \
67 || reconstructs<IOField<Type>>(objects, selectedFields) \
68 || reconstructs<IOField<Field<Type>>>(objects, selectedFields) \
69 || reconstructs<CompactIOField<Field<Type>>>(objects, selectedFields);
72 #undef DO_LAGRANGIAN_FIELDS_TYPE
107 const label completeCelli =
108 cellProcAddressing_[proci][
p.cell()];
109 const label completeFacei =
110 mag(faceProcAddressing_[proci][
p.tetFace()]) - 1;
132 return completeCloudPtr;
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
A HashTable with keys but without contents.
Template class for intrusive linked lists.
Helper IO class to read and write particle positions.
virtual bool write(const bool write=true) const
Write using setting from DB.
List of IOobjects with searching and retrieving facilities.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh data needed to do the Finite Volume discretisation.
void reconstructPositions() const
Write the reconstructed positions.
autoPtr< passiveParticleCloud > completeCloud() const
Generate the reconstructed cloud.
lagrangianFieldReconstructor(const fvMesh &completeMesh, const PtrList< fvMesh > &procMeshes, const labelListList &faceProcAddressing, const labelListList &cellProcAddressing, const word &cloudName)
Construct from components.
~lagrangianFieldReconstructor()
Destructor.
A Cloud of passive particles.
A class for handling words, derived from string.
#define DO_LAGRANGIAN_FIELDS_TYPE(Type, nullArg)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)
const word cloudName(propsDict.lookup("cloudName"))