48void Foam::pointMesh::mapFields(
const mapPolyMesh& mpm)
52 Pout<<
"void pointMesh::mapFields(const mapPolyMesh&): "
53 <<
"Mapping all registered pointFields."
57 const pointMeshMapper m(*
this, mpm);
76Foam::pointMesh::pointMesh(
const polyMesh& pMesh)
78 MeshObject_type(pMesh),
84 Pout<<
"pointMesh::pointMesh(const polyMesh&): "
85 <<
"Constructing from polyMesh " << pMesh.
name()
90 boundary_.calcGeometry();
94Foam::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();
112Foam::pointMesh::pointMesh
114 const polyMesh& pMesh,
124 pMesh.facesInstance(),
127 Foam::IOobject::NO_WRITE
143 Pout<<
"pointMesh::setInstance(): "
144 <<
"Setting instance to " << inst <<
endl;
146 this->writeOpt(wOpt);
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);
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
const MESH & mesh_
Reference to Mesh.
GeoMesh(const polyMesh &mesh)
writeOption writeOpt() const noexcept
Get the write option.
readOption
Enumeration defining read preferences.
writeOption
Enumeration defining write preferences.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
const fileName & instance() const noexcept
Read access to instance path component.
A simple container for options an IOstream can normally have.
MeshObject(const polyMesh &mesh)
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
A class for handling file names.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Mesh representing a set of points created from polyMesh.
void setInstance(const fileName &instance, const IOobjectOption::writeOption wOpt=IOobject::AUTO_WRITE)
Set the instance for mesh files.
bool movePoints()
Move points.
const Time & time() const
Return Time from polyMesh.
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc=true) const
Write.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh for underlying volume mesh.
void updateMesh(const mapPolyMesh &mpm)
Update the mesh corresponding to given map.
static word meshSubDir
Return the mesh sub-directory name (usually "pointMesh").
Mesh consisting of general polyhedral cells.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Namespace for handling debugging switches.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void MapGeometricFields(const MeshMapper &mapper)
Generic Geometric field mapper.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
constexpr char nl
The newline '\n' character (0x0a).