54 #ifndef Foam_parPointFieldDistributor_H 55 #define Foam_parPointFieldDistributor_H 67 class mapDistributePolyMesh;
68 class mapDistributeBase;
83 const label nOldPoints_;
110 template<
class FieldType>
111 void writeField(
const FieldType&
fld)
const;
137 const bool isWriteProc =
true 159 const bool isWriteProc =
true 266 # include "parPointFieldDistributor.txx" void clearMeshPoints()
Clear out meshPoints (per boundary) for the source mesh.
void clearPatchPointMaps()
Clear out patch maps (per boundary)
void operator=(const parPointFieldDistributor &)=delete
No copy assignment.
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.
bool hasTarget() const noexcept
True if a target mesh/distribution map has been attached.
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.
Distributor/redistributor for point fields, uses a two (or three) stage construction.
A class for managing references or pointers (no reference counting)
Mesh representing a set of points created from polyMesh.
static int verbose_
Output verbosity when writing.
label distributePointFields(const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const
Read, distribute and write all/selected point fields.
tmp< GeometricField< Type, pointPatchField, pointMesh > > distributeField(const GeometricField< Type, pointPatchField, pointMesh > &fld) const
Distribute point field.
A List of wordRe with additional matching capabilities.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
void distributeAndStore(const UPtrList< 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))
const pointMesh & sourceMesh() const noexcept
The source mesh.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
bool hasMeshPoints() const noexcept
True if meshPoints (per boundary) for the source mesh have been saved.
parPointFieldDistributor(const parPointFieldDistributor &)=delete
No copy construct.
bool hasPatchPointMaps() const noexcept
True if patch maps (per boundary) exist.