55 Pout<<
"pointMesh::pointMesh(const polyMesh&): "
56 <<
"Constructing from polyMesh " << pMesh.
name()
61 boundary_.calcGeometry();
71 Pout<<
"~pointMesh::pointMesh()"
83 if (!pointsPtr_.valid())
110 Pout<<
"pointMesh::movePoints(const pointField&): "
111 <<
"Moving points." <<
endl;
114 boundary_.movePoints(mesh_.points());
117 meshObjects::movePoints<pointMesh>(
const_cast<polyMesh&
>(mesh_));
127 Pout<<
"pointMesh::topoChange(const polyTopoChangeMap&): "
128 <<
"Topology change." <<
endl;
132 boundary_.topoChange();
134 meshObjects::topoChange<pointMesh>(
const_cast<polyMesh&
>(mesh_), map);
142 Pout<<
"pointMesh::mapMesh(const polyMeshMap&): "
143 <<
"Mesh mapping." <<
endl;
147 boundary_.topoChange();
149 meshObjects::mapMesh<pointMesh>(
const_cast<polyMesh&
>(mesh_), map);
157 Pout<<
"pointMesh::swap(const polyMesh&): "
158 <<
"Mesh swapping." <<
endl;
189 Pout<<
"pointMesh::distribute(const polyDistributionMap&): "
190 <<
"Distribute." <<
endl;
194 boundary_.topoChange();
196 meshObjects::distribute<pointMesh>(
const_cast<polyMesh&
>(mesh_), map);
203 const bool validBoundary
208 Pout<<
"pointMesh::reorderPatches( const labelUList&, const bool): "
209 <<
"Updating for reordered patches." <<
endl;
212 boundary_.shuffle(newToOld, validBoundary);
213 meshObjects::reorderPatches<pointMesh>
220 #define ReorderPatchFieldsType(Type, nullArg) \
221 ReorderPatchFields<PointField<Type>> \
223 const_cast<objectRegistry&>(db()), \
227 #undef ReorderPatchFieldsType
235 Pout<<
"pointMesh::addPatch(const label): "
241 if (pbm.
size() != boundary_.size())
244 <<
" pointBoundaryMesh size :" << boundary_.size()
245 <<
" polyBoundaryMesh size :" << pbm.
size()
250 meshObjects::addPatch<pointMesh>(
const_cast<polyMesh&
>(mesh_),
patchi);
252 #define AddPatchFieldsType(Type, nullArg) \
253 AddPatchFields<PointField<Type>> \
255 const_cast<objectRegistry&>(db()), \
257 calculatedPointPatchField<scalar>::typeName \
260 #undef ReorderPatchFieldsType
268 Pout<<
"pointMesh::clear(): "
269 <<
"Clear all but permanent registered meshObjects" <<
endl;
273 meshObjects::clear<pointMesh, DeletableMeshObject>
284 Pout<<
"pointMesh::reset(): "
285 <<
"Mesh reset." <<
endl;
289 meshObjects::reset<pointMesh>(
const_cast<polyMesh&
>(mesh_));
Templated abstract base-class for demand-driven mesh objects used to automate their allocation to the...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word & name() const
Return name.
Specialisation of DimensionedField which holds a slice of a given complete field in such a form that ...
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.
static void clearUpto(objectRegistry &)
Clear all meshObjects derived from FromType up to (but not including)
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 swap(polyMesh &)
Swap mesh.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
const DimensionedField< vector, pointMesh > & C() const
Return point locations.
virtual void addPatch(const label patchi)
Inserted patch at patchi.
virtual void clear()
Clear all but permanent registered meshObjects.
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.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
#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.
const dimensionSet & dimLength
FOR_ALL_FIELD_TYPES(makeDimensionedPointFieldFunctions)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
prefixOSstream Pout(cout, "Pout")
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)
#define ReorderPatchFieldsType(Type, nullArg)
#define AddPatchFieldsType(Type, nullArg)
faceListList boundary(nPatches)