45 void Foam::pointMesh::mapFields(
const mapPolyMesh& mpm)
49 Pout<<
"void pointMesh::mapFields(const mapPolyMesh&): " 50 <<
"Mapping all registered pointFields." 54 const pointMeshMapper m(*
this, mpm);
56 MapGeometricFields<scalar, pointPatchField, pointMeshMapper, pointMesh>(m);
57 MapGeometricFields<vector, pointPatchField, pointMeshMapper, pointMesh>(m);
65 MapGeometricFields<symmTensor, pointPatchField, pointMeshMapper, pointMesh>
67 MapGeometricFields<tensor, pointPatchField, pointMeshMapper, pointMesh>(m);
77 boundary_(*this, pMesh.boundaryMesh())
81 Pout<<
"pointMesh::pointMesh(const polyMesh&): " 82 <<
"Constructing from polyMesh " << pMesh.
name()
87 boundary_.calcGeometry();
97 Pout<<
"~pointMesh::pointMesh()" 111 Pout<<
"pointMesh::reset(const bool validBoundary): " 112 <<
"Resetting from polyMesh " << pm.
name() <<
endl;
119 boundary_.calcGeometry();
128 Pout<<
"pointMesh::movePoints(const pointField&): " 129 <<
"Moving points." <<
endl;
142 Pout<<
"pointMesh::updateMesh(const mapPolyMesh&): " 143 <<
"Updating for topology changes." <<
endl;
156 const bool validBoundary
161 Pout<<
"pointMesh::reorderPatches( const labelUList&, const bool): " 162 <<
"Updating for reordered patches." <<
endl;
166 boundary_.
shuffle(newToOld, validBoundary);
169 ReorderPatchFields<pointScalarField>(
db, newToOld);
170 ReorderPatchFields<pointVectorField>(
db, newToOld);
171 ReorderPatchFields<pointSphericalTensorField>(
db, newToOld);
172 ReorderPatchFields<pointSymmTensorField>(
db, newToOld);
173 ReorderPatchFields<pointTensorField>(
db, newToOld);
181 Pout<<
"pointMesh::addPatch(const label): " 182 <<
"Adding patch at " << patchi <<
endl;
190 <<
" pointBoundaryMesh size :" << boundary_.
size()
191 <<
" polyBoundaryMesh size :" << pbm.
size()
203 AddPatchFields<pointSphericalTensorField>
virtual bool movePoints()
Move points.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
static void printStack(Ostream &)
Helper function to print a stack.
virtual void reorderPatches(const labelUList &newToOld, const bool validBoundary)
Reordered/removed trailing patches. If validBoundary call is.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word & name() const
Return name.
bool set(const label) const
Is element set.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void reset(const bool validBoundary)
Reset for changed polyMesh.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void movePoints(const pointField &)
Correct pointBoundaryMesh after moving points.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void shuffle(const labelUList &newToOld, const bool validBoundary)
Reorders patches. Ordering does not have to be done in.
virtual void addPatch(const label patchi)
Inserted patch at patchi.
virtual void updateMesh(const mapPolyMesh &mpm)
Update the mesh corresponding to given map.
void updateMesh()
Correct pointBoundaryMesh after topology update.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
static autoPtr< facePointPatch > New(const polyPatch &, const pointBoundaryMesh &)
Return a pointer to a new patch created on freestore from polyPatch.
void MapGeometricFields(const MeshMapper &mapper)
Generic Geometric field mapper.
Mesh representing a set of points created from polyMesh.
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
A class for handling words, derived from string.
const objectRegistry & thisDb() const
Return database. For now is its polyMesh.
void reset(const polyBoundaryMesh &)
Create pointBoundaryMesh from polyBoundaryMesh.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
defineTypeNameAndDebug(combustionModel, 0)
label size() const
Return the number of elements in the UPtrList.
const polyMesh & mesh() const
prefixOSstream Pout(cout, "Pout")
pointMesh(const polyMesh &pMesh)
Construct from polyMesh.
Mesh consisting of general polyhedral cells.
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Registry of regIOobjects.
const objectRegistry & db() const
Return the local objectRegistry.
word patchFieldType(const PatchField &pf)
const polyMesh & operator()() const
Return reference to polyMesh.