Go to the documentation of this file.
34 Foam::attachPolyTopoChanger::attachPolyTopoChanger
44 Foam::attachPolyTopoChanger::attachPolyTopoChanger
59 Pout<<
"void attachPolyTopoChanger::attach(): "
60 <<
"Attaching mesh" <<
endl;
78 if (removeEmptyPatches)
84 label nNewPatches = 0;
88 if (oldPatches[patchi].size())
90 newPatches[nNewPatches] = oldPatches[patchi].
clone
94 oldPatches[patchi].size(),
95 oldPatches[patchi].
start()
104 Pout<<
"Removing zero-sized patch " << patchi
105 <<
" named " << oldPatches[patchi].
name() <<
endl;
110 newPatches.setSize(nNewPatches);
121 Pout<<
"void attachPolyTopoChanger::attach(): "
122 <<
"Finished attaching mesh" <<
endl;
int debug
Static debugging option.
void addPatches(PtrList< polyPatch > &plist, const bool validBoundary=true)
Add boundary patches.
void attach(const bool removeEmptyPatches=true)
Attach mesh. By default filter out empty patches.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling file names.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
virtual bool checkMesh(const bool report=false) const
Check mesh for correctness. Returns false for no error.
virtual tmp< scalarField > movePoints(const pointField &)
Move points, returns volumes swept by faces in motion.
List of mesh modifiers defining the mesh dynamics.
const fileName & facesInstance() const
Return the current instance directory for faces.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
label start() const
The start label of the boundary faces in the polyMesh face list.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
polyMesh & mesh_
Reference to mesh.
autoPtr< mapPolyMesh > changeMesh(const bool inflate, const bool syncParallel=true, const bool orderCells=false, const bool orderPoints=false)
virtual const pointField & oldPoints() const
Return old points (mesh motion)
PtrList< T > clone(Args &&... args) const
Make a copy by cloning each of the list elements.
void removeBoundary()
Remove boundary patches.
const word & name() const noexcept
Return name.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void setInstance(const fileName &instance, const IOobject::writeOption wOpt=IOobject::AUTO_WRITE)
Set the instance for mesh files.