Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface. Used for repatching existing meshes. More...
Public Member Functions | |
ClassName ("boundaryMesh") | |
boundaryMesh () | |
~boundaryMesh ()=default | |
void | clearOut () |
const bMesh & | mesh () const |
const PtrList< boundaryPatch > & | patches () const |
const labelList & | meshFace () const |
const pointField & | featurePoints () const |
const edgeList & | featureEdges () const |
const labelList & | featureToEdge () const |
const labelList & | edgeToFeature () const |
const labelListList & | featureSegments () const |
const labelList & | extraEdges () const |
void | read (const polyMesh &) |
void | readTriSurface (const fileName &) |
void | writeTriSurface (const fileName &) const |
labelList | getNearest (const primitiveMesh &pMesh, const vector &searchSpan) const |
void | patchify (const labelList &nearest, const polyBoundaryMesh &oldPatches, polyMesh &newMesh) const |
label | whichPatch (const label facei) const |
label | findPatchID (const word &patchName) const |
wordList | patchNames () const |
void | addPatch (const word &patchName) |
void | deletePatch (const word &patchName) |
void | changePatchType (const word &patchName, const word &type) |
void | changeFaces (const labelList &patchIDs, labelList &oldToNew) |
void | setFeatureEdges (const scalar minCos) |
void | setExtraEdges (const label edgeI) |
label | getNTris (const label facei) const |
label | getNTris (const label startFacei, const label nFaces, labelList &nTris) const |
void | triangulate (const label startFacei, const label nFaces, const label totalNTris, labelList &triVerts) const |
label | getNPoints (const label startFacei, const label nFaces) const |
void | triangulateLocal (const label startFacei, const label nFaces, const label totalNTris, labelList &triVerts, labelList &localToGlobal) const |
void | markFaces (const labelList &protectedEdges, const label facei, boolList &visited) const |
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 58 of file boundaryMesh.H.
boundaryMesh | ( | ) |
Definition at line 433 of file boundaryMesh.C.
|
default |
ClassName | ( | "boundaryMesh" | ) |
void clearOut | ( | ) |
Definition at line 449 of file boundaryMesh.C.
|
inline |
Definition at line 202 of file boundaryMesh.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by cyclicAMIPolyPatch::addAMIFaces(), faPatch::boundaryConnections(), faPatch::boundaryProcs(), faPatch::boundaryProcSizes(), fvPatch::Cf(), fvPatch::Cn(), processorFaPatch::comm(), cyclicAMIPointPatch::coupled(), fvPatch::deltaCoeffs(), faPatch::deltaCoeffs(), faPatch::edgeCentres(), faPatch::edgeFaceCentres(), faPatch::edgeLengths(), faPatch::magEdgeLengths(), fvPatch::magSf(), processorFaPatch::makeNonGlobalPatchPoints(), cyclicAMIFvPatch::movePoints(), cyclicACMIFvPatch::movePoints(), faPatch::ngbPolyPatchFaceNormals(), cyclicACMIPolyPatch::resetAMI(), cyclicAMIPolyPatch::resetAMI(), cyclicACMIPolyPatch::scalePatchFaceAreas(), fvPatch::Sf(), faPatch::start(), cyclicAMIPolyPatch::surfPtr(), fvPatch::weights(), and faPatch::weights().
|
inline |
Definition at line 213 of file boundaryMesh.H.
|
inline |
Definition at line 220 of file boundaryMesh.H.
|
inline |
Definition at line 226 of file boundaryMesh.H.
|
inline |
Definition at line 232 of file boundaryMesh.H.
|
inline |
Definition at line 238 of file boundaryMesh.H.
|
inline |
Definition at line 244 of file boundaryMesh.H.
|
inline |
Definition at line 250 of file boundaryMesh.H.
|
inline |
Definition at line 256 of file boundaryMesh.H.
void read | ( | const polyMesh & | mesh | ) |
Definition at line 455 of file boundaryMesh.C.
References polyMesh::boundaryMesh(), Foam::expressions::patchExpr::debug, Foam::endl(), f(), forAll, PrimitivePatch< FaceList, PointField >::localFaces(), PrimitivePatch< FaceList, PointField >::localPoints(), mesh, patchIdentifier::name(), primitiveMesh::nBoundaryFaces(), patchIdentifier::physicalType(), PrimitivePatch< FaceList, PointField >::points(), polyMesh::points(), Foam::Pout, PtrList::set(), boundaryPatch::size(), boundaryPatch::start(), polyPatch::start(), and Foam::Zero.
void readTriSurface | ( | const fileName & | fName | ) |
Definition at line 582 of file boundaryMesh.C.
References List::clear(), geometricSurfacePatch::defaultName(), geometricSurfacePatch::emptyType, Foam::endl(), forAll, geometricSurfacePatch::geometricType(), SortableList::indices(), PrimitivePatch< FaceList, PointField >::localFaces(), PrimitivePatch< FaceList, PointField >::localPoints(), OSstream::name(), geometricSurfacePatch::name(), triSurface::patches(), Foam::Pout, labelledTri::region(), List::set(), boundaryPatch::size(), SortableList::sort(), and boundaryPatch::start().
void writeTriSurface | ( | const fileName & | fName | ) | const |
Definition at line 750 of file boundaryMesh.C.
References forAll, mesh, patchIdentifier::name(), patchIdentifier::physicalType(), points, boundaryPatch::start(), and triSurface::write().
Foam::labelList getNearest | ( | const primitiveMesh & | pMesh, |
const vector & | searchSpan | ||
) | const |
Definition at line 840 of file boundaryMesh.C.
References DynamicList::append(), Foam::fieldTypes::area, boundBox::avgDim(), Foam::expressions::patchExpr::debug, Foam::constant::electromagnetic::e, Foam::endl(), f(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), primitiveMesh::faces(), forAll, PointIndexHit::hit(), PointIndexHit::hitPoint(), PointIndexHit::index(), Foam::mag(), Foam::magSqr(), boundBox::max(), Foam::max(), mesh, boundBox::min(), n, primitiveMesh::nBoundaryFaces(), primitiveMesh::nInternalFaces(), points, primitiveMesh::points(), Foam::Pout, DynamicList::shrink(), Foam::sign(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
void patchify | ( | const labelList & | nearest, |
const polyBoundaryMesh & | oldPatches, | ||
polyMesh & | newMesh | ||
) | const |
Definition at line 1095 of file boundaryMesh.C.
References List::append(), polyMesh::boundaryMesh(), repatchPolyTopoChanger::changePatches(), repatchPolyTopoChanger::changePatchID(), polyPatch::clone(), Foam::expressions::patchExpr::debug, Foam::endl(), forAll, HashTable::found(), HashTable::insert(), patchIdentifier::name(), primitiveMesh::nBoundaryFaces(), polyPatch::New(), primitiveMesh::nInternalFaces(), Foam::foamVersion::patch, pFaces, patchIdentifier::physicalType(), Foam::Pout, repatchPolyTopoChanger::repatch(), and polyPatch::start().
Foam::label whichPatch | ( | const label | facei | ) | const |
Definition at line 1512 of file boundaryMesh.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, boundaryPatch::size(), and boundaryPatch::start().
Foam::label findPatchID | ( | const word & | patchName | ) | const |
Definition at line 1533 of file boundaryMesh.C.
References forAll, and Foam::name().
Foam::wordList patchNames | ( | ) | const |
Definition at line 268 of file boundaryMesh.C.
References forAll, and Foam::PtrListOps::names().
void addPatch | ( | const word & | patchName | ) |
Definition at line 1547 of file boundaryMesh.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), forAll, mesh, patchIdentifier::name(), patchIdentifier::physicalType(), Foam::Pout, boundaryPatch::size(), and boundaryPatch::start().
void deletePatch | ( | const word & | patchName | ) |
Definition at line 1584 of file boundaryMesh.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, patchIdentifier::name(), patchIdentifier::physicalType(), Foam::Pout, PtrList::set(), boundaryPatch::size(), and boundaryPatch::start().
Definition at line 1640 of file boundaryMesh.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, patchIdentifier::index(), patchIdentifier::name(), PtrList::set(), boundaryPatch::size(), and boundaryPatch::start().
Definition at line 1691 of file boundaryMesh.C.
References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, mesh, patchIdentifier::name(), patchID, patchIdentifier::physicalType(), points, Foam::Pout, PtrList::set(), List::setSize(), boundaryPatch::size(), HashTable::size(), boundaryPatch::start(), and Foam::Zero.
void setFeatureEdges | ( | const scalar | minCos | ) |
Definition at line 1296 of file boundaryMesh.C.
References DynamicList::append(), Foam::constant::electromagnetic::e, primitiveMesh::edgeFaces(), primitiveMesh::edges(), stdFoam::end(), forAll, mesh, nPoints, and polyMesh::points().
void setExtraEdges | ( | const label | edgeI | ) |
Definition at line 1497 of file boundaryMesh.C.
References mesh.
Foam::label getNTris | ( | const label | facei | ) | const |
Definition at line 1810 of file boundaryMesh.C.
References f(), mesh, and points.
Foam::label getNTris | ( | const label | startFacei, |
const label | nFaces, | ||
labelList & | nTris | ||
) | const |
Definition at line 1819 of file boundaryMesh.C.
References List::setSize().
void triangulate | ( | const label | startFacei, |
const label | nFaces, | ||
const label | totalNTris, | ||
labelList & | triVerts | ||
) | const |
Definition at line 1844 of file boundaryMesh.C.
References f(), forAll, mesh, points, and List::setSize().
Foam::label getNPoints | ( | const label | startFacei, |
const label | nFaces | ||
) | const |
Definition at line 1885 of file boundaryMesh.C.
References mesh, Foam::foamVersion::patch, and points.
void triangulateLocal | ( | const label | startFacei, |
const label | nFaces, | ||
const label | totalNTris, | ||
labelList & | triVerts, | ||
labelList & | localToGlobal | ||
) | const |
Definition at line 1900 of file boundaryMesh.C.
References f(), forAll, mesh, Foam::foamVersion::patch, points, and List::setSize().
Definition at line 1947 of file boundaryMesh.C.
References forAll, mesh, and List::setSize().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.