54 #ifndef Foam_parPointFieldDistributor_H 55 #define Foam_parPointFieldDistributor_H 67 class mapDistributePolyMesh;
68 class mapDistributeBase;
83 const label nOldPoints_;
126 const bool savePoints =
false,
142 const bool savePoints =
false,
190 bool old(isWriteProc_);
202 const IOobjectList& objects,
203 const wordRes& selectedFields = wordRes()
209 tmp<GeometricField<Type, pointPatchField, pointMesh>>
212 const GeometricField<Type, pointPatchField, pointMesh>&
fld 217 tmp<GeometricField<Type, pointPatchField, pointMesh>>
220 const IOobject& fieldObject
void clearMeshPoints()
Clear out meshPoints (per boundary) for the source mesh.
void clearPatchPointMaps()
Clear out patch maps (per boundary)
void saveMeshPoints()
Create/recreate meshPoints (per boundary) for the source mesh.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
void createPatchPointMaps()
Construct per-patch addressing.
label distributeAllFields(const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const
Read, distribute and write all/selected point field types (scalar, vector, ... types) ...
void resetTarget()
Clear target mesh / distribution map.
tmp< GeometricField< Type, pointPatchField, pointMesh > > distributePointField(const IOobject &fieldObject) const
Read and distribute point field.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Forwards and collection of common point field types.
bool hasPatchPointMaps() const
True if patch maps (per boundary) exist.
Distributor/redistributor for point fields, uses a two (or three) stage construction.
A class for managing references or pointers (no reference counting)
bool isWriteProc() const noexcept
Get status of write enabled (on this proc)
Mesh representing a set of points created from polyMesh.
static int verbose_
Output verbosity when writing.
bool hasMeshPoints() const
True if meshPoints (per boundary) for the source mesh have been saved.
label distributePointFields(const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const
Read, distribute and write all/selected point fields.
bool hasTarget() const
True if a target mesh/distribution map has been attached.
tmp< GeometricField< Type, pointPatchField, pointMesh > > distributeField(const GeometricField< Type, pointPatchField, pointMesh > &fld) const
Distribute point field.
A List of wordRe with additional matching capabilities.
void distributeAndStore(const PtrList< GeometricField< Type, pointPatchField, pointMesh >> &) const
Distributed each (unregistered!) point field and store the result on its objectRegistry.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...