57 Pout<<
"void attachPolyTopoChanger::attach(): "
58 <<
"Attaching mesh" <<
endl;
62 const fileName oldInst = mesh_.facesInstance();
76 if (removeEmptyPatches)
82 label nNewPatches = 0;
86 if (oldPatches[
patchi].size())
108 newPatches.
setSize(nNewPatches);
110 mesh_.removeBoundary();
111 mesh_.addPatches(newPatches);
115 mesh_.setInstance(oldInst);
119 Pout<<
"void attachPolyTopoChanger::attach(): "
120 <<
"Finished attaching mesh" <<
endl;
#define forAll(list, i)
Loop across all elements in list.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
autoPtr< IOobject > clone() const
Clone.
const word & name() const
Return name.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void setSize(const label)
Reset size of List.
label size() const
Return the number of elements in the UPtrList.
attachPolyTopoChanger(const IOobject &io, polyMesh &)
Read constructor from IOobject and a polyMesh.
void attach(const bool removeEmptyPatches=true)
Attach mesh. By default filter out empty patches.
A class for handling file names.
Mesh consisting of general polyhedral cells.
List of mesh modifiers defining the mesh dynamics.
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.
prefixOSstream Pout(cout, "Pout")