Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface. Used for repatching existing meshes. More...
Public Types | |
typedef PrimitivePatch< faceList, const pointField > | rMesh |
Type of the mesh. More... | |
Public Member Functions | |
ClassName ("repatchMesh") | |
Runtime type information. More... | |
repatchMesh () | |
Construct null. More... | |
repatchMesh (const repatchMesh &)=delete | |
Disallow default bitwise copy construction. More... | |
~repatchMesh () | |
Destructor. More... | |
const rMesh & | mesh () const |
Access the boundary mesh. More... | |
const PtrList< repatchPatch > & | patches () const |
Access the patches. More... | |
const labelList & | meshFace () const |
Label of original face in polyMesh (before patchify(...)) More... | |
const pointField & | featurePoints () const |
Feature points. More... | |
const edgeList & | featureEdges () const |
Feature edges. Indices into featurePoints. More... | |
const labelList & | featureToEdge () const |
From index into featureEdge to index into meshedges,. More... | |
const labelList & | edgeToFeature () const |
From edge into featureEdges. More... | |
const labelListList & | featureSegments () const |
Lists of connected featureEdges. Indices into featureEdges. More... | |
void | read (const polyMesh &) |
Read from repatchMesh of polyMesh. More... | |
void | readTriSurface (const fileName &) |
Read from triSurface. More... | |
labelList | getNearest (const primitiveMesh &pMesh, const vector &searchSpan) const |
Get rMesh index of nearest face for every boundary face in. More... | |
label | whichPatch (const label facei) const |
Get index of patch face is in. More... | |
label | findIndex (const word &patchName) const |
Get index of patch by name. More... | |
void | addPatch (const word &patchName) |
Add to back of patch list. More... | |
void | deletePatch (const word &patchName) |
Delete from patch list. More... | |
void | changePatchType (const word &patchName, const word &type) |
Change patch. More... | |
void | setFeatureEdges (const scalar minCos) |
Set featureEdges, edgeToFeature, featureSegments according. More... | |
void | markFaces (const labelList &protectedEdges, const label facei, boolList &visited) const |
void | operator= (const repatchMesh &)=delete |
Disallow default bitwise assignment. More... | |
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface. Used for repatching existing meshes.
Definition at line 57 of file repatchMesh.H.
typedef PrimitivePatch<faceList, const pointField> rMesh |
Type of the mesh.
Definition at line 64 of file repatchMesh.H.
repatchMesh | ( | ) |
Construct null.
Definition at line 327 of file repatchMesh.C.
|
delete |
Disallow default bitwise copy construction.
~repatchMesh | ( | ) |
Destructor.
Definition at line 342 of file repatchMesh.C.
ClassName | ( | "repatchMesh" | ) |
Runtime type information.
|
inline |
Access the boundary mesh.
Definition at line 180 of file repatchMesh.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and autoPtr< T >::valid().
|
inline |
Access the patches.
Definition at line 192 of file repatchMesh.H.
|
inline |
Label of original face in polyMesh (before patchify(...))
Definition at line 198 of file repatchMesh.H.
|
inline |
Feature points.
Definition at line 204 of file repatchMesh.H.
|
inline |
Feature edges. Indices into featurePoints.
Definition at line 210 of file repatchMesh.H.
|
inline |
From index into featureEdge to index into meshedges,.
Definition at line 216 of file repatchMesh.H.
|
inline |
From edge into featureEdges.
Definition at line 222 of file repatchMesh.H.
|
inline |
Lists of connected featureEdges. Indices into featureEdges.
Definition at line 228 of file repatchMesh.H.
void read | ( | const polyMesh & | mesh | ) |
Read from repatchMesh of polyMesh.
Definition at line 348 of file repatchMesh.C.
References polyMesh::boundaryMesh(), Foam::endl(), f(), forAll, PrimitivePatch< FaceList, PointField >::localFaces(), PrimitivePatch< FaceList, PointField >::localPoints(), patchIdentifier::name(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), patchi, patchIdentifier::physicalType(), polyMesh::points(), PrimitivePatch< FaceList, PointField >::points(), Foam::Pout, PtrList< T >::set(), UList< T >::size(), UPtrList< T >::size(), repatchPatch::size(), List< T >::size(), polyPatch::start(), repatchPatch::start(), and Foam::Zero.
void readTriSurface | ( | const fileName & | fName | ) |
Read from triSurface.
Definition at line 474 of file repatchMesh.C.
References List< T >::clear(), UList< T >::empty(), Foam::endl(), forAll, geometricSurfacePatch::geometricType(), SortableList< T >::indices(), HashTable< T, Key, Hash >::insert(), PrimitivePatch< FaceList, PointField >::localFaces(), PrimitivePatch< FaceList, PointField >::localPoints(), OSstream::name(), geometricSurfacePatch::name(), Foam::name(), triSurface::patches(), patchi, Foam::Pout, labelledTri::region(), List< T >::setSize(), HashTable< T, Key, Hash >::size(), repatchPatch::size(), List< T >::size(), SortableList< T >::sort(), and repatchPatch::start().
Foam::labelList getNearest | ( | const primitiveMesh & | pMesh, |
const vector & | searchSpan | ||
) | const |
Get rMesh index of nearest face for every boundary face in.
pMesh. Gets passed initial search box. If not found returns -1 for the face.
Definition at line 650 of file repatchMesh.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), boundBox::avgDim(), Foam::e, Foam::endl(), f(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), primitiveMesh::faces(), forAll, PointIndexHit< Point >::hit(), PointIndexHit< Point >::hitPoint(), PointIndexHit< Point >::index(), Foam::mag(), Foam::magSqr(), boundBox::max(), Foam::max(), boundBox::min(), n, primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), points, primitiveMesh::points(), Foam::Pout, DynamicList< T, SizeInc, SizeMult, SizeDiv >::shrink(), Foam::sign(), List< T >::size(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Foam::label whichPatch | ( | const label | facei | ) | const |
Get index of patch face is in.
Definition at line 1106 of file repatchMesh.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, patchi, repatchPatch::size(), and repatchPatch::start().
Foam::label findIndex | ( | const word & | patchName | ) | const |
Get index of patch by name.
Definition at line 1127 of file repatchMesh.C.
References forAll, Foam::name(), and patchi.
void addPatch | ( | const word & | patchName | ) |
Add to back of patch list.
Definition at line 1141 of file repatchMesh.C.
References Foam::endl(), forAll, patchIdentifier::name(), patchi, patchIdentifier::physicalType(), Foam::Pout, repatchPatch::size(), and repatchPatch::start().
void deletePatch | ( | const word & | patchName | ) |
Delete from patch list.
Definition at line 1178 of file repatchMesh.C.
References Foam::abort(), Foam::clone(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::findIndex(), forAll, patchIdentifier::name(), patchi, patchIdentifier::physicalType(), Foam::Pout, PtrList< T >::set(), repatchPatch::size(), and repatchPatch::start().
Change patch.
Definition at line 1233 of file repatchMesh.C.
References Foam::abort(), Foam::clone(), Foam::FatalError, FatalErrorInFunction, Foam::findIndex(), forAll, patchIdentifier::index(), patchIdentifier::name(), patchi, PtrList< T >::set(), repatchPatch::size(), and repatchPatch::start().
void setFeatureEdges | ( | const scalar | minCos | ) |
Set featureEdges, edgeToFeature, featureSegments according.
to angle of faces across edge
Definition at line 905 of file repatchMesh.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::e, forAll, nPoints, and List< T >::size().
Definition at line 1284 of file repatchMesh.C.
References forAll, and List< T >::setSize().
|
delete |
Disallow default bitwise assignment.