Go to the documentation of this file.
38 #ifndef parLagrangianRedistributor_H
39 #define parLagrangianRedistributor_H
49 class mapDistributePolyMesh;
50 class mapDistributeBase;
52 class passiveParticleCloud;
58 class parLagrangianRedistributor
69 const mapDistributePolyMesh&
distMap_;
94 const fvMesh& srcMesh,
95 const fvMesh& tgtMesh,
96 const label nOldCells,
97 const mapDistributePolyMesh& distMap
115 passiveParticleCloud& cloud
128 const IOobjectList& objects,
129 const HashSet<word>& selectedFields
136 const mapDistributeBase& map,
138 const IOobjectList& objects,
139 const HashSet<word>& selectedFields
146 const mapDistributeBase& map,
148 const IOobjectList& objects,
149 const HashSet<word>& selectedFields
153 template<
class Container>
156 const passiveParticleCloud& cloud,
157 const IOobjectList& objects,
158 const HashSet<word>& selectedFields
162 template<
class Container>
165 const mapDistributeBase& map,
166 passiveParticleCloud& cloud
179 # include "parLagrangianRedistributorRedistributeFields.C"
void redistributeStoredLagrangianFields(const mapDistributeBase &map, passiveParticleCloud &cloud) const
Redistribute and write stored lagrangian fields.
static void readLagrangianFields(const passiveParticleCloud &cloud, const IOobjectList &objects, const HashSet< word > &selectedFields)
Read and store all fields of a cloud.
void operator=(const parLagrangianRedistributor &)
Disallow default bitwise assignment.
autoPtr< mapDistributeBase > redistributeLagrangianPositions(passiveParticleCloud &cloud) const
Redistribute and write lagrangian positions.
List< label > labelList
A List of labels.
const fvMesh & tgtMesh_
Destination mesh reference.
const fvMesh & srcMesh_
Source mesh reference.
parLagrangianRedistributor(const parLagrangianRedistributor &)
Disallow default bitwise copy construct.
void redistributeLagrangianFields(const mapDistributeBase &map, const word &cloudName, const IOobjectList &objects, const HashSet< word > &selectedFields) const
Read, redistribute and write all/selected lagrangian fields.
List< word > wordList
A List of words.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static wordList filterObjects(const IOobjectList &objects, const HashSet< word > &selectedFields)
Pick up any fields of a given type.
static void findClouds(const fvMesh &, wordList &cloudNames, List< wordList > &objectNames)
Find all clouds (on all processors) and for each cloud all.
labelList destinationProcID_
For every src cell the target processor.
const mapDistributePolyMesh & distMap_
Distribution map reference.
void redistributeLagrangianFieldFields(const mapDistributeBase &map, const word &cloudName, const IOobjectList &objects, const HashSet< word > &selectedFields) const
Read, redistribute and write all/selected lagrangian fieldFields.
const word cloudName(propsDict.lookup("cloudName"))
labelList destinationCell_
For every src cell the target cell.