48 void Foam::pointMesh::mapFields(
const mapPolyMesh& mpm)
52 Pout<<
"void pointMesh::mapFields(const mapPolyMesh&): " 53 <<
"Mapping all registered pointFields." 57 const pointMeshMapper m(*
this, mpm);
59 MapGeometricFields<scalar, pointPatchField, pointMeshMapper, pointMesh>(m);
60 MapGeometricFields<vector, pointPatchField, pointMeshMapper, pointMesh>(m);
68 MapGeometricFields<symmTensor, pointPatchField, pointMeshMapper, pointMesh>
70 MapGeometricFields<tensor, pointPatchField, pointMeshMapper, pointMesh>(m);
76 Foam::pointMesh::pointMesh(
const polyMesh& pMesh)
78 MeshObject_type(pMesh),
84 Pout<<
"pointMesh::pointMesh(const polyMesh&): " 85 <<
"Constructing from polyMesh " << pMesh.
name()
90 boundary_.calcGeometry();
94 Foam::pointMesh::pointMesh(
const polyMesh& pMesh,
const IOobject&
io)
96 MeshObject<polyMesh,
Foam::UpdateableMeshObject, pointMesh>(pMesh),
97 GeoMesh<polyMesh>(pMesh),
98 boundary_(
io, *this, pMesh.boundaryMesh())
102 Pout<<
"pointMesh::pointMesh(const polyMesh&): " 103 <<
"Constructing from IO " <<
io.objectRelPath()
108 boundary_.calcGeometry();
112 Foam::pointMesh::pointMesh
124 pMesh.facesInstance(),
143 Pout<<
"pointMesh::setInstance(): " 144 <<
"Setting instance to " << inst <<
endl;
146 this->writeOpt(wOpt);
147 this->instance() = inst;
149 boundary_.writeOpt(wOpt);
150 boundary_.instance() = inst;
158 Pout<<
"pointMesh::movePoints(): " 159 <<
"Moving points." <<
endl;
172 Pout<<
"pointMesh::updateMesh(const mapPolyMesh&): " 173 <<
"Updating for topology changes." <<
nl <<
endl;
175 boundary_.updateMesh();
185 const bool writeOnProc
190 Pout<<
"pointMesh::writeObject(IOstreamOption, const bool): " 191 <<
"Writing to " << boundary_.objectRelPath() <<
endl;
193 return boundary_.writeObject(streamOpt, writeOnProc);
bool movePoints()
Move points.
writeOption
Enumeration defining write preferences.
A class for handling file names.
const word & name() const noexcept
Return the object name.
constexpr char nl
The newline '\n' character (0x0a)
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface...
Ostream & endl(Ostream &os)
Add newline and flush stream.
void updateMesh(const mapPolyMesh &mpm)
Update the mesh corresponding to given map.
A simple container for options an IOstream can normally have.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void MapGeometricFields(const MeshMapper &mapper)
Generic Geometric field mapper.
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc=true) const
Write.
Mesh representing a set of points created from polyMesh.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
int debug
Static debugging option.
defineTypeNameAndDebug(combustionModel, 0)
void setInstance(const fileName &instance, const IOobjectOption::writeOption wOpt=IOobject::AUTO_WRITE)
Set the instance for mesh files.
static word meshSubDir
Return the mesh sub-directory name (usually "pointMesh")
Mesh consisting of general polyhedral cells.
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Defines the attributes of an object for which implicit objectRegistry management is supported...
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
readOption
Enumeration defining read preferences.