Foam::polyBoundaryMesh. More...
#include <OpenFOAM/polyBoundaryMesh.H>
Definition at line 61 of file polyBoundaryMesh.H.
Public Member Functions | |
TypeName ("polyBoundaryMesh") | |
Runtime type information.
| |
polyBoundaryMesh (const IOobject &, const polyMesh &) | |
Read constructor given IOobject and a polyMesh reference.
| |
polyBoundaryMesh (const IOobject &, const polyMesh &, const label size) | |
Construct given size.
| |
~polyBoundaryMesh () | |
void | clearGeom () |
Clear geometry at this level and at patches.
| |
void | clearAddressing () |
Clear addressing at this level and at patches.
| |
const polyMesh & | mesh () const |
Return the mesh reference.
| |
const List< labelPairList > & | neighbourEdges () const |
Per patch the edges on the neighbouring patch. Is for every external.
| |
wordList | names () const |
Return a list of patch names.
| |
wordList | types () const |
Return a list of patch types.
| |
wordList | physicalTypes () const |
Return a list of physical types.
| |
label | findPatchID (const word &patchName) const |
Find patch index given a name.
| |
label | whichPatch (const label faceIndex) const |
Return patch index for a given face label.
| |
labelHashSet | patchSet (const wordList &) const |
Return the set of patch IDs corresponding to the given list of names.
| |
bool | checkParallelSync (const bool report=false) const |
Check whether all procs have all patches and in same order. Return.
| |
bool | checkDefinition (const bool report=false) const |
Check boundary definition. Return true if in error.
| |
void | movePoints (const pointField &) |
Correct polyBoundaryMesh after moving points.
| |
void | updateMesh () |
Correct polyBoundaryMesh after topology update.
| |
void | reorder (const UList< label > &) |
Reorders patches. Ordering does not have to be done in.
| |
bool | writeData (Ostream &) const |
writeData member function required by regIOobject
| |
bool | writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const |
Write using given format, version and form uncompression.
| |
Friends | |
class | polyMesh |
Declare friendship with polyMesh.
| |
Ostream & | operator<< (Ostream &, const polyBoundaryMesh &) |
polyBoundaryMesh | ( | const IOobject & | io, |
const polyMesh & | mesh | ||
) |
Read constructor given IOobject and a polyMesh reference.
Note point pointers are unset, only used in copying meshes
Definition at line 53 of file polyBoundaryMesh.C.
References IOstream::check(), forAll, IOobject::MUST_READ, polyPatch::New(), patches, PtrList< T >::set(), PtrList< T >::setSize(), and PtrList< T >::size().
polyBoundaryMesh | ( | const IOobject & | io, |
const polyMesh & | pm, | ||
const label | size | ||
) |
Construct given size.
Definition at line 101 of file polyBoundaryMesh.C.
~polyBoundaryMesh | ( | ) |
Definition at line 116 of file polyBoundaryMesh.C.
References Foam::deleteDemandDrivenData().
TypeName | ( | "polyBoundaryMesh" | ) |
Runtime type information.
void clearGeom | ( | ) |
Clear geometry at this level and at patches.
Definition at line 122 of file polyBoundaryMesh.C.
References forAll.
void clearAddressing | ( | ) |
Clear addressing at this level and at patches.
Definition at line 131 of file polyBoundaryMesh.C.
References Foam::deleteDemandDrivenData(), and forAll.
const polyMesh& mesh | ( | ) | const [inline]
|
Return the mesh reference.
Definition at line 133 of file polyBoundaryMesh.H.
Referenced by interpolationCellPatchConstrained< Type >::interpolate(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::K(), turbulentTemperatureCoupledBaffleFvPatchScalarField::K(), MeshedSurface< Face >::MeshedSurface(), directMappedPatchBase::sampleMesh(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), and surfaceDisplacementPointPatchVectorField::updateCoeffs().
const Foam::List< Foam::labelPairList > & neighbourEdges | ( | ) | const |
Per patch the edges on the neighbouring patch. Is for every external.
edge the neighbouring patch and neighbouring (external) patch edge label. Note that edge indices are offset by nInternalEdges to keep it as much as possible consistent with coupled patch addressing (where coupling is by local patch face index). Only valid for singly connected polyBoundaryMesh and not parallel
Definition at line 159 of file polyBoundaryMesh.C.
References Foam::abort(), e, PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), HashTable< T, Key, Hash >::end(), Foam::endl(), HashTable< T, Key, Hash >::erase(), Foam::FatalError, FatalErrorIn, HashTable< T, Key, Hash >::find(), forAll, HashTable< T, Key, Hash >::insert(), PrimitivePatch< Face, FaceList, PointField, PointType >::localPoints(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), patchIdentifier::name(), PrimitivePatch< Face, FaceList, PointField, PointType >::nEdges(), PrimitivePatch< Face, FaceList, PointField, PointType >::nInternalEdges(), Foam::nl, Pstream::parRun(), List< T >::setSize(), HashTable< T, Key, Hash >::size(), List< T >::size(), and WarningIn.
Foam::wordList names | ( | ) | const |
Return a list of patch names.
Definition at line 291 of file polyBoundaryMesh.C.
References forAll, patches, and PtrList< T >::size().
Referenced by LocalInteraction< CloudType >::LocalInteraction(), polyMesh::readUpdate(), sampledCuttingPlane::sampledCuttingPlane(), sampledIsoSurface::sampledIsoSurface(), directMappedPatchBase::samplePolyPatch(), and fvMeshSubset::setLargeCellSubset().
Foam::wordList types | ( | ) | const |
Return a list of patch types.
Definition at line 306 of file polyBoundaryMesh.C.
References forAll, patches, and PtrList< T >::size().
Referenced by polyMesh::readUpdate().
Foam::wordList physicalTypes | ( | ) | const |
Return a list of physical types.
Definition at line 321 of file polyBoundaryMesh.C.
References forAll, patches, and PtrList< T >::size().
Foam::label findPatchID | ( | const word & | patchName ) | const |
Find patch index given a name.
Definition at line 336 of file polyBoundaryMesh.C.
References Foam::endl(), forAll, Foam::name(), patches, and Foam::Pout.
Referenced by meshRefinement::addPatch(), inversePointDistanceDiffusivity::correct(), inverseFaceDistanceDiffusivity::correct(), directions::directions(), patchProbes::findElements(), layerParameters::layerParameters(), LocalInteraction< CloudType >::LocalInteraction(), MRFZone::MRFZone(), sampledPatch::patchIndex(), sampledCuttingPlane::sampledCuttingPlane(), sampledIsoSurface::sampledIsoSurface(), directMappedPatchBase::samplePolyPatch(), fvMeshSubset::setCellSubset(), fvMeshSubset::setLargeCellSubset(), sampledPatch::update(), polyPatchID::update(), outletMappedUniformInletFvPatchField< Type >::updateCoeffs(), directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), and directMappedFixedValueFvPatchField< Type >::updateCoeffs().
Foam::label whichPatch | ( | const label | faceIndex ) | const |
Return patch index for a given face label.
Definition at line 362 of file polyBoundaryMesh.C.
References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, mesh, primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, and polyPatch::start().
Referenced by scotchDecomp::calcCSR(), cellPointWeightWallModified::cellPointWeightWallModified(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), Cloud< BasicReactingParcel< ThermoType > >::facePatch(), patchProbes::findElements(), meshRefinement::getDuplicateFaces(), interpolationCellPatchConstrained< Type >::interpolate(), polyMeshAdder::mergePoints(), meshTriangulation::meshTriangulation(), Cloud< ParticleType >::move(), fvMeshSubset::setCellSubset(), removeFaces::setRefinement(), edgeCollapser::setRefinement(), duplicatePoints::setRefinement(), combineFaces::setRefinement(), addPatchCellLayer::setRefinement(), perfectInterface::setRefinement(), meshCutAndRemove::setRefinement(), and fvMatrix< Type >::setValues().
Foam::labelHashSet patchSet | ( | const wordList & | patchNames ) | const |
Return the set of patch IDs corresponding to the given list of names.
Wild cards are expanded.
Definition at line 412 of file polyBoundaryMesh.C.
References UList< T >::empty(), Foam::endl(), Foam::findStrings(), forAll, HashSet< Key, Hash >::insert(), and WarningIn.
Referenced by forces::read().
bool checkParallelSync | ( | const bool | report = false
) |
const |
Check whether all procs have all patches and in same order. Return.
true if in error.
Definition at line 442 of file polyBoundaryMesh.C.
References Foam::endl(), forAll, Pstream::gatherList(), Foam::Info, Pstream::master(), Pstream::myProcNo(), IOobject::name(), Pstream::nProcs(), Pstream::parRun(), Foam::Pout, Pstream::scatterList(), PtrList< T >::setSize(), List< T >::size(), and PtrList< T >::size().
Referenced by fvMeshDistribute::distribute().
bool checkDefinition | ( | const bool | report = false
) |
const |
Check boundary definition. Return true if in error.
Definition at line 529 of file polyBoundaryMesh.C.
References Foam::endl(), forAll, Foam::Info, mesh, IOobject::name(), primitiveMesh::nInternalFaces(), Foam::Pout, Foam::reduce(), and PtrList< T >::size().
void movePoints | ( | const pointField & | p ) |
Correct polyBoundaryMesh after moving points.
Definition at line 578 of file polyBoundaryMesh.C.
void updateMesh | ( | ) |
Correct polyBoundaryMesh after topology update.
Definition at line 594 of file polyBoundaryMesh.C.
References Foam::deleteDemandDrivenData(), forAll, and patches.
Referenced by polyMesh::polyMesh(), and polyMesh::updateMesh().
void reorder | ( | const UList< label > & | oldToNew ) |
Reorders patches. Ordering does not have to be done in.
ascending or descending order. Reordering has to be unique. (is shuffle) Calls updateMesh() after reordering to recalculate data.
Reimplemented from PtrList< T >.
Definition at line 612 of file polyBoundaryMesh.C.
References forAll, patches, and PtrList< T >::reorder().
Referenced by meshRefinement::addPatch().
bool writeData | ( | Ostream & | os ) | const [virtual]
|
writeData member function required by regIOobject
Implements regIOobject.
Definition at line 629 of file polyBoundaryMesh.C.
References token::BEGIN_BLOCK, token::BEGIN_LIST, IOstream::check(), Foam::decrIndent(), token::END_BLOCK, token::END_LIST, Foam::endl(), forAll, IOstream::good(), Foam::incrIndent(), Foam::indent(), Foam::nl, patches, and PtrList< T >::size().
Referenced by Foam::operator<<().
bool writeObject | ( | IOstream::streamFormat | fmt, |
IOstream::versionNumber | ver, | ||
IOstream::compressionType | cmp | ||
) | const [virtual]
|
Write using given format, version and form uncompression.
Reimplemented from regIOobject.
Definition at line 653 of file polyBoundaryMesh.C.
References IOstream::UNCOMPRESSED, and regIOobject::writeObject().
friend class polyMesh [friend]
|
Declare friendship with polyMesh.
Definition at line 93 of file polyBoundaryMesh.H.
Ostream& operator<< | ( | Ostream & | , |
const polyBoundaryMesh & | |||
) | [friend]
|