Go to the documentation of this file.
58 Pout<<
"void attachPolyTopoChanger::attach(): "
59 <<
"Attaching mesh" <<
endl;
77 if (removeEmptyPatches)
83 label nNewPatches = 0;
87 if (oldPatches[patchI].
size())
89 newPatches[nNewPatches] = oldPatches[patchI].
clone
93 oldPatches[patchI].
size(),
94 oldPatches[patchI].start()
103 Pout<<
"Removing zero-sized patch " << patchI
104 <<
" named " << oldPatches[patchI].
name() <<
endl;
109 newPatches.
setSize(nNewPatches);
120 Pout<<
"void attachPolyTopoChanger::attach(): "
121 <<
"Finished attaching mesh" <<
endl;
void attach(const bool removeEmptyPatches=true)
Attach mesh. By default filter out empty patches.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling file names.
bool checkMesh(const bool report=false) const
Check mesh for correctness. Returns false for no error.
#define forAll(list, i)
Loop across all elements in list.
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.
Mesh consisting of general polyhedral cells.
polyMesh & mesh_
Reference to mesh.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
autoPtr< mapPolyMesh > changeMesh(const bool inflate, const bool syncParallel=true, const bool orderCells=false, const bool orderPoints=false)
const word & name() const
Return name.
virtual const pointField & oldPoints() const
Return old points for mesh motion.
attachPolyTopoChanger(const attachPolyTopoChanger &)
Disallow default bitwise copy construct.
void removeBoundary()
Remove boundary patches.
void setInstance(const fileName &)
Set the instance for mesh files.
void setSize(const label)
Reset size of List.
prefixOSstream Pout(cout, "Pout")
void addPatches(const List< polyPatch * > &, const bool validBoundary=true)
Add boundary patches.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Foam::autoPtr< IOobject > clone() const
Clone.
label size() const
Return the number of elements in the PtrList.