This class is derived from polyMesh and serves as a tool for statically connecting pieces of a mesh by executing the mesh modifiers and cleaning the mesh. More...
#include <dynamicMesh/attachPolyTopoChanger.H>
This class is derived from polyMesh and serves as a tool for statically connecting pieces of a mesh by executing the mesh modifiers and cleaning the mesh.
The idea is that a mesh can be built from pieces and put together using various mesh modifiers (mainly sliding interfaces) which are not needed during the run. Therefore, once the mesh is assembled and mesh modification triggered, the newly created point, face and cell zones can be cleared together with the mesh modifiers thus creating a singly connected static mesh.
Note: All point, face and cell zoning will be lost! Do it after attaching the parts of the mesh, as the point, face and cell numbering changes.
Definition at line 60 of file attachPolyTopoChanger.H.
Public Member Functions | |
attachPolyTopoChanger (const IOobject &io, polyMesh &) | |
Read constructor from IOobject and a polyMesh.
| |
attachPolyTopoChanger (polyMesh &) | |
Read constructor for given polyMesh.
| |
virtual | ~attachPolyTopoChanger () |
void | attach (const bool removeEmptyPatches=true) |
Attach mesh. By default filter out empty patches.
|
attachPolyTopoChanger | ( | const IOobject & | io, |
polyMesh & | mesh | ||
) |
Read constructor from IOobject and a polyMesh.
Definition at line 33 of file attachPolyTopoChanger.C.
attachPolyTopoChanger | ( | polyMesh & | mesh ) | [explicit]
|
Read constructor for given polyMesh.
Definition at line 43 of file attachPolyTopoChanger.C.
virtual ~attachPolyTopoChanger | ( | ) | [inline, virtual]
|
Definition at line 88 of file attachPolyTopoChanger.H.
void attach | ( | const bool | removeEmptyPatches = true
) |
Attach mesh. By default filter out empty patches.
Attach mesh.
Definition at line 54 of file attachPolyTopoChanger.C.
References polyMesh::addPatches(), polyMesh::boundaryMesh(), polyTopoChanger::changeMesh(), primitiveMesh::checkMesh(), IOobject::clone(), Foam::endl(), polyMesh::facesInstance(), forAll, polyTopoChanger::mesh_, polyMesh::movePoints(), IOobject::name(), polyMesh::oldPoints(), p, Foam::Pout, polyMesh::removeBoundary(), polyMesh::setInstance(), PtrList< polyMeshModifier >::size(), and PtrList< T >::size().