54#ifndef Foam_parPointFieldDistributor_H
55#define Foam_parPointFieldDistributor_H
67class mapDistributePolyMesh;
68class mapDistributeBase;
83 const label nOldPoints_;
126 const bool savePoints =
false,
142 const bool savePoints =
false,
190 bool old(isWriteProc_);
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Generic GeometricField class.
List of IOobjects with searching and retrieving facilities.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Distributor/redistributor for point fields, uses a two (or three) stage construction.
label distributeAllFields(const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const
bool hasPatchPointMaps() const
True if patch maps (per boundary) exist.
tmp< GeometricField< Type, pointPatchField, pointMesh > > distributePointField(const IOobject &fieldObject) const
Read and distribute point field.
void distributeAndStore(const PtrList< GeometricField< Type, pointPatchField, pointMesh > > &) const
void resetTarget()
Clear target mesh / distribution map.
bool isWriteProc(const bool on) noexcept
Change status of write enabled (on this proc)
bool isWriteProc() const noexcept
Get status of write enabled (on this proc)
void clearMeshPoints()
Clear out meshPoints (per boundary) for the source mesh.
void clearPatchPointMaps()
Clear out patch maps (per boundary)
tmp< GeometricField< Type, pointPatchField, pointMesh > > distributeField(const GeometricField< Type, pointPatchField, pointMesh > &fld) const
Distribute point field.
label distributePointFields(const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const
Read, distribute and write all/selected point fields.
void saveMeshPoints()
Create/recreate meshPoints (per boundary) for the source mesh.
static int verbose_
Output verbosity when writing.
void resetTarget(const pointMesh &tgtMesh, const mapDistributePolyMesh &distMap)
Reset target mesh / distribution map.
void createPatchPointMaps()
Construct per-patch addressing.
bool hasTarget() const
True if a target mesh/distribution map has been attached.
bool hasMeshPoints() const
Mesh representing a set of points created from polyMesh.
A class for managing references or pointers (no reference counting)
A class for managing temporary objects.
A List of wordRe with additional matching capabilities.
Forwards and collection of common point field types.