50 boundary_(*this, pMesh.boundaryMesh())
54 Pout<<
"pointMesh::pointMesh(const polyMesh&): "
55 <<
"Constructing from polyMesh " << pMesh.
name()
60 boundary_.calcGeometry();
70 Pout<<
"~pointMesh::pointMesh()"
83 Pout<<
"pointMesh::movePoints(const pointField&): "
84 <<
"Moving points." <<
endl;
97 Pout<<
"pointMesh::topoChange(const polyTopoChangeMap&): "
98 <<
"Topology change." <<
endl;
100 boundary_.topoChange();
108 Pout<<
"pointMesh::mapMesh(const polyMeshMap&): "
109 <<
"Mesh mapping." <<
endl;
111 boundary_.topoChange();
119 Pout<<
"pointMesh::distribute(const polyDistributionMap&): "
120 <<
"Distribute." <<
endl;
122 boundary_.topoChange();
129 const bool validBoundary
134 Pout<<
"pointMesh::reorderPatches( const labelUList&, const bool): "
135 <<
"Updating for reordered patches." <<
endl;
138 boundary_.shuffle(newToOld, validBoundary);
140 #define ReorderPatchFieldsType(Type, nullArg) \
141 ReorderPatchFields<PointField<Type>> \
143 const_cast<objectRegistry&>(thisDb()), \
147 #undef ReorderPatchFieldsType
155 Pout<<
"pointMesh::addPatch(const label): "
161 if (pbm.
size() != boundary_.size())
164 <<
" pointBoundaryMesh size :" << boundary_.size()
165 <<
" polyBoundaryMesh size :" << pbm.
size()
171 #define AddPatchFieldsType(Type, nullArg) \
172 AddPatchFields<PointField<Type>> \
174 const_cast<objectRegistry&>(thisDb()), \
176 calculatedPointPatchField<scalar>::typeName \
179 #undef ReorderPatchFieldsType
187 Pout<<
"pointMesh::reset(): "
188 <<
"Mesh reset." <<
endl;
Templated abstract base-class for demand-driven mesh objects used to automate their allocation to the...
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
const word & name() const
Return name.
label size() const
Return the number of elements in the UPtrList.
static void printStack(Ostream &)
Helper function to print a stack.
static autoPtr< facePointPatch > New(const polyPatch &, const pointBoundaryMesh &)
Return a pointer to a new patch created on freestore from polyPatch.
Mesh representing a set of points created from polyMesh.
virtual bool movePoints()
Move points.
static const HashSet< word > curGeometryFields
Set of names of registered current-time geometric fields.
pointMesh(const polyMesh &pMesh)
Construct from polyMesh.
virtual void topoChange(const polyTopoChangeMap &)
Update the mesh corresponding to given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
static const HashSet< word > geometryFields
Set of names of registered geometric fields.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual void addPatch(const label patchi)
Inserted patch at patchi.
void reset()
Reset pointMesh with respect to the updated polyMesh.
virtual void reorderPatches(const labelUList &newToOld, const bool validBoundary)
Reordered/removed trailing patches. If validBoundary call is.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Mesh consisting of general polyhedral cells.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineTypeNameAndDebug(combustionModel, 0)
prefixOSstream Pout(cout, "Pout")
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)
#define ReorderPatchFieldsType(Type, nullArg)
#define AddPatchFieldsType(Type, nullArg)