Determines a mapping between patch face centres and mesh cell or face centres and processors they're on. More...
Public Member Functions | |
TypeName ("mappedPatch") | |
mappedPolyPatch (const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType) | |
mappedPolyPatch (const word &name, const label size, const label start, const label index, const word &sampleRegion, const mappedPatchBase::sampleMode mode, const word &samplePatch, const vectorField &offset, const polyBoundaryMesh &bm) | |
mappedPolyPatch (const word &name, const label size, const label start, const label index, const word &sampleRegion, const mappedPatchBase::sampleMode mode, const word &samplePatch, const vector &offset, const polyBoundaryMesh &bm) | |
mappedPolyPatch (const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm, const word &patchType) | |
mappedPolyPatch (const mappedPolyPatch &, const polyBoundaryMesh &) | |
mappedPolyPatch (const mappedPolyPatch &pp, const polyBoundaryMesh &bm, const label index, const label newSize, const label newStart) | |
mappedPolyPatch (const mappedPolyPatch &pp, const polyBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const label newStart) | |
virtual autoPtr< polyPatch > | clone (const polyBoundaryMesh &bm) const |
virtual autoPtr< polyPatch > | clone (const polyBoundaryMesh &bm, const label index, const label newSize, const label newStart) const |
virtual autoPtr< polyPatch > | clone (const polyBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const label newStart) const |
virtual void | newInternalProcFaces (label &iFaces, label &pFaces) const |
virtual const labelUList & | nbrCells () const |
virtual label | neighbPolyPatchID () const |
virtual refPtr< labelListList > | mapCollocatedFaces () const |
virtual bool | masterImplicit () const |
virtual word | neighbRegionID () const |
virtual | ~mappedPolyPatch () |
virtual void | write (Ostream &) const |
![]() | |
TypeName ("patch") | |
declareRunTimeSelectionTable (autoPtr, polyPatch, word,(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType),(name, size, start, index, bm, patchType)) | |
declareRunTimeSelectionTable (autoPtr, polyPatch, dictionary,(const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm, const word &patchType),(name, dict, index, bm, patchType)) | |
polyPatch (const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType) | |
polyPatch (const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &physicalType, const wordList &inGroups) | |
polyPatch (const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm, const word &patchType) | |
polyPatch (const polyPatch &, const polyBoundaryMesh &) | |
polyPatch (const polyPatch &pp, const polyBoundaryMesh &bm, const label index, const label newSize, const label newStart) | |
polyPatch (const polyPatch &pp, const polyBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const label newStart) | |
polyPatch (const polyPatch &p) | |
polyPatch (const polyPatch &p, const labelList &faceCells) | |
virtual autoPtr< polyPatch > | clone (const labelList &faceCells) const |
virtual | ~polyPatch () |
label | offset () const |
label | start () const |
labelRange | range () const |
const polyBoundaryMesh & | boundaryMesh () const |
virtual bool | coupled () const |
template<class T > | |
const UIndirectList< T > | patchInternalList (const UList< T > &internalValues) const |
template<class T > | |
const List< T >::subList | patchSlice (const UList< T > &l) const |
template<class T > | |
const Field< T >::subField | patchSlice (const Field< T > &l) const |
const vectorField::subField | faceCentres () const |
const vectorField::subField | faceAreas () const |
tmp< vectorField > | faceCellCentres () const |
tmp< scalarField > | areaFraction () const |
const labelUList & | faceCells () const |
const labelList & | meshEdges () const |
virtual void | clearAddressing () |
label | whichFace (const label l) const |
virtual void | initOrder (PstreamBuffers &, const primitivePatch &) const |
virtual bool | order (PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const |
virtual bool | changeTopology () const |
virtual bool | setTopology (polyTopoChange &) |
void | operator= (const polyPatch &) |
![]() | |
patchIdentifier (const patchIdentifier &)=default | |
patchIdentifier & | operator= (const patchIdentifier &)=default |
virtual | ~patchIdentifier ()=default |
patchIdentifier () | |
patchIdentifier (const word &name, const label index) | |
patchIdentifier (const word &name, const label index, const word &physicalType, const wordList &inGroups=wordList()) | |
patchIdentifier (const word &name, const dictionary &dict, const label index) | |
patchIdentifier (const patchIdentifier &ident, const label index) | |
const word & | name () const noexcept |
word & | name () noexcept |
label | index () const noexcept |
label & | index () noexcept |
const word & | physicalType () const noexcept |
word & | physicalType () noexcept |
const wordList & | inGroups () const noexcept |
wordList & | inGroups () noexcept |
bool | inGroup (const word &name) const |
void | write (Ostream &os) const |
![]() | |
PrimitivePatch (const FaceList &faces, const PointField &points) | |
PrimitivePatch (FaceList &&faces, const PointField &points) | |
PrimitivePatch (FaceList &faces, PointField &points, const bool reuse) | |
PrimitivePatch (const PrimitivePatch< FaceList, PointField > &pp) | |
virtual | ~PrimitivePatch () |
void | clearOut () |
void | clearGeom () |
void | clearTopology () |
void | clearPatchMeshAddr () |
void | swap (PrimitivePatch &)=delete |
const Field< point_type > & | points () const noexcept |
label | nFaces () const noexcept |
label | nPoints () const |
label | nEdges () const |
const edgeList & | edges () const |
const edgeList::subList | internalEdges () const |
const edgeList::subList | boundaryEdges () const |
label | nInternalEdges () const |
label | nBoundaryEdges () const |
bool | isInternalEdge (const label edgei) const |
const labelList & | boundaryPoints () const |
const labelListList & | faceFaces () const |
const labelListList & | edgeFaces () const |
const labelListList & | faceEdges () const |
const labelListList & | pointEdges () const |
const labelListList & | pointFaces () const |
const List< face_type > & | localFaces () const |
labelList | boundaryFaces () const |
labelList | uniqBoundaryFaces () const |
const labelList & | meshPoints () const |
const Map< label > & | meshPointMap () const |
const Field< point_type > & | localPoints () const |
const labelList & | localPointOrder () const |
label | whichPoint (const label gp) const |
edge | meshEdge (const label edgei) const |
edge | meshEdge (const edge &e) const |
label | findEdge (const edge &e) const |
labelList | meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const |
labelList | meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const |
label | meshEdge (const label edgei, const edgeList &allEdges, const labelListList &pointEdges) const |
labelList | meshEdges (const labelUList &edgeLabels, const edgeList &allEdges, const labelListList &pointEdges) const |
const Field< point_type > & | faceCentres () const |
const Field< point_type > & | faceAreas () const |
const Field< scalar > & | magFaceAreas () const |
const Field< point_type > & | faceNormals () const |
const Field< point_type > & | pointNormals () const |
bool | hasFaceAreas () const |
bool | hasFaceCentres () const |
bool | hasFaceNormals () const |
bool | hasPointNormals () const |
bool | hasBoundaryPoints () const |
bool | hasFaceFaces () const |
bool | hasEdgeFaces () const |
bool | hasFaceEdges () const |
bool | hasPointEdges () const |
bool | hasPointFaces () const |
bool | hasMeshPointMap () const |
template<class ToPatch > | |
List< objectHit > | projectPoints (const ToPatch &targetPatch, const Field< point_type > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
template<class ToPatch > | |
List< objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< point_type > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
const labelListList & | edgeLoops () const |
surfaceTopo | surfaceType () const |
bool | checkTopology (const bool report=false, labelHashSet *setPtr=nullptr) const |
bool | checkPointManifold (const bool report=false, labelHashSet *setPtr=nullptr) const |
virtual void | movePoints (const Field< point_type > &) |
void | operator= (const PrimitivePatch< FaceList, PointField > &rhs) |
void | operator= (PrimitivePatch< FaceList, PointField > &&rhs) |
label | whichEdge (const edge &e) const |
template<class ToPatch > | |
Foam::List< Foam::objectHit > | projectPoints (const ToPatch &targetPatch, const Field< typename Foam::PrimitivePatch< FaceList, PointField >::point_type > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
template<class ToPatch > | |
Foam::List< Foam::objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< typename Foam::PrimitivePatch< FaceList, PointField >::point_type > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
![]() | |
ClassName ("PrimitivePatch") | |
PrimitivePatchBase ()=default | |
![]() | |
TypeName ("mappedPatchBase") | |
mappedPatchBase (const polyPatch &) | |
mappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const vectorField &offsets) | |
mappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const vector &uniformOffset) | |
mappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const scalar normalDistance) | |
mappedPatchBase (const polyPatch &, const dictionary &) | |
mappedPatchBase (const polyPatch &, const sampleMode, const dictionary &) | |
mappedPatchBase (const polyPatch &, const mappedPatchBase &) | |
mappedPatchBase (const polyPatch &, const mappedPatchBase &, const labelUList &mapAddressing) | |
virtual | ~mappedPatchBase () |
void | clearOut () |
void | setOffset (const scalar normalDist) |
void | setOffset (const vector &uniformOffset) |
void | setOffset (const vectorField &offsets) |
sampleMode | mode () const noexcept |
const word & | sampleWorld () const noexcept |
const word & | sampleRegion () const |
const word & | samplePatch () const |
const word & | coupleGroup () const |
label | sampleSize () const |
const vector & | offset () const noexcept |
const vectorField & | offsets () const noexcept |
label | getCommunicator () const |
label | comm () const |
bool | sameWorld () const |
bool | masterWorld () const |
bool | sameRegion () const noexcept |
const mapDistribute & | map () const |
const AMIPatchToPatchInterpolation & | AMI (const bool forceUpdate=false) const |
bool | owner () const |
const autoPtr< Foam::searchableSurface > & | surfPtr () const |
const polyMesh & | sampleMesh () const |
const polyPatch & | samplePolyPatch () const |
tmp< pointField > | samplePoints () const |
const fileName & | sampleDatabasePath () const |
bool | sampleDatabase () const |
virtual fileName | sendPath (const label proci) const |
virtual fileName | receivePath (const label proci) const |
template<class Type > | |
void | distribute (List< Type > &lst) const |
template<class Type , class CombineOp > | |
void | distribute (List< Type > &lst, const CombineOp &cop) const |
template<class Type > | |
void | reverseDistribute (List< Type > &lst) const |
template<class Type , class CombineOp > | |
void | reverseDistribute (List< Type > &lst, const CombineOp &cop) const |
Protected Member Functions | |
virtual void | initGeometry (PstreamBuffers &) |
virtual void | calcGeometry (PstreamBuffers &) |
virtual void | initMovePoints (PstreamBuffers &, const pointField &) |
virtual void | movePoints (PstreamBuffers &, const pointField &) |
virtual void | initUpdateMesh (PstreamBuffers &) |
virtual void | updateMesh (PstreamBuffers &) |
![]() | |
virtual void | clearGeom () |
virtual void | movePoints (const Field< point_type > &) |
![]() | |
bool | addWorldConnection () |
label | getWorldCommunicator () const |
const polyMesh & | lookupMesh (const word ®ion) const |
const polyPatch & | lookupPatch (const word &sampleRegion, const word &samplePatch) const |
tmp< pointField > | facePoints (const polyPatch &) const |
void | collectSamples (const label mySampleWorld, const pointField &facePoints, pointField &samples, labelList &patchFaceWorlds, labelList &patchFaceProcs, labelList &patchFaces, pointField &patchFc) const |
void | findLocalSamples (const sampleMode mode, const label sampleWorld, const word &sampleRegion, const word &samplePatch, const pointField &samplePoints, List< nearInfoWorld > &nearest) const |
void | findSamples (const sampleMode mode, const label myWorldIndex, const pointField &, const labelList &wantedWorlds, const labelList &origProcs, labelList &sampleProcs, labelList &sampleIndices, pointField &sampleLocations) const |
tmp< pointField > | samplePoints (const pointField &) const |
void | calcMapping () const |
void | calcAMI () const |
Additional Inherited Members | |
![]() | |
enum | surfaceTopo { MANIFOLD, OPEN, ILLEGAL } |
typedef std::remove_reference< FaceList >::type::value_type | face_type |
typedef std::remove_reference< PointField >::type::value_type | point_type |
typedef FaceList | FaceListType |
typedef PointField | PointFieldType |
typedef face_type | FaceType |
![]() | |
enum | sampleMode { NEARESTCELL, NEARESTPATCHFACE, NEARESTPATCHFACEAMI, NEARESTPATCHPOINT, NEARESTFACE, NEARESTONLYCELL } |
enum | offsetMode { UNIFORM, NONUNIFORM, NORMAL } |
typedef Tuple2< pointIndexHit, Tuple2< scalar, label > > | nearInfo |
typedef Tuple2< nearInfo, label > | nearInfoWorld |
![]() | |
static autoPtr< polyPatch > | New (const word &patchType, const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm) |
static autoPtr< polyPatch > | New (const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm) |
static autoPtr< polyPatch > | New (const word &patchType, const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm) |
static bool | constraintType (const word &pt) |
static wordList | constraintTypes () |
![]() | |
static word | defaultName (const label n=-1) |
![]() | |
static pointIndexHit | facePoint (const polyMesh &, const label facei, const polyMesh::cellDecomposition) |
static fileName | sendPath (const fileName &root, const label proci) |
static fileName | receivePath (const fileName &root, const label proci) |
static const objectRegistry & | subRegistry (const objectRegistry &obr, const fileName &path) |
template<class Type > | |
static void | storeField (objectRegistry &obr, const word &fieldName, const Field< Type > &values) |
static void | writeDict (const objectRegistry &obr, dictionary &dict) |
static void | readDict (const dictionary &d, objectRegistry &obr) |
![]() | |
static int | disallowGenericPolyPatch |
![]() | |
static const Enum< sampleMode > | sampleModeNames_ |
static const Enum< offsetMode > | offsetModeNames_ |
![]() | |
static autoPtr< fileName > | readDatabase (const dictionary &dict) |
static const objectRegistry & | subRegistry (const objectRegistry &obr, const wordList &names, const label index) |
template<class Type > | |
static bool | writeIOField (const regIOobject &obj, dictionary &dict) |
template<class Type > | |
static bool | constructIOField (const word &name, token &tok, Istream &is, objectRegistry &obr) |
![]() | |
const polyPatch & | patch_ |
word | sampleWorld_ |
word | sampleRegion_ |
const sampleMode | mode_ |
word | samplePatch_ |
const coupleGroupIdentifier | coupleGroup_ |
const autoPtr< fileName > | sampleDatabasePtr_ |
offsetMode | offsetMode_ |
vector | offset_ |
vectorField | offsets_ |
scalar | distance_ |
label | communicator_ |
bool | sameRegion_ |
autoPtr< mapDistribute > | mapPtr_ |
const bool | AMIReverse_ |
autoPtr< AMIPatchToPatchInterpolation > | AMIPtr_ |
autoPtr< searchableSurface > | surfPtr_ |
dictionary | surfDict_ |
Determines a mapping between patch face centres and mesh cell or face centres and processors they're on.
Definition at line 55 of file mappedPolyPatch.H.
mappedPolyPatch | ( | const word & | name, |
const label | size, | ||
const label | start, | ||
const label | index, | ||
const polyBoundaryMesh & | bm, | ||
const word & | patchType | ||
) |
Definition at line 39 of file mappedPolyPatch.C.
Referenced by mappedPolyPatch::clone().
mappedPolyPatch | ( | const word & | name, |
const label | size, | ||
const label | start, | ||
const label | index, | ||
const word & | sampleRegion, | ||
const mappedPatchBase::sampleMode | mode, | ||
const word & | samplePatch, | ||
const vectorField & | offset, | ||
const polyBoundaryMesh & | bm | ||
) |
Definition at line 57 of file mappedPolyPatch.C.
mappedPolyPatch | ( | const word & | name, |
const label | size, | ||
const label | start, | ||
const label | index, | ||
const word & | sampleRegion, | ||
const mappedPatchBase::sampleMode | mode, | ||
const word & | samplePatch, | ||
const vector & | offset, | ||
const polyBoundaryMesh & | bm | ||
) |
Definition at line 82 of file mappedPolyPatch.C.
mappedPolyPatch | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index, | ||
const polyBoundaryMesh & | bm, | ||
const word & | patchType | ||
) |
Definition at line 107 of file mappedPolyPatch.C.
mappedPolyPatch | ( | const mappedPolyPatch & | pp, |
const polyBoundaryMesh & | bm | ||
) |
Definition at line 124 of file mappedPolyPatch.C.
mappedPolyPatch | ( | const mappedPolyPatch & | pp, |
const polyBoundaryMesh & | bm, | ||
const label | index, | ||
const label | newSize, | ||
const label | newStart | ||
) |
Definition at line 135 of file mappedPolyPatch.C.
mappedPolyPatch | ( | const mappedPolyPatch & | pp, |
const polyBoundaryMesh & | bm, | ||
const label | index, | ||
const labelUList & | mapAddressing, | ||
const label | newStart | ||
) |
Definition at line 149 of file mappedPolyPatch.C.
|
virtual |
Definition at line 164 of file mappedPolyPatch.C.
References mappedPatchBase::clearOut().
|
protectedvirtual |
Reimplemented from polyPatch.
Definition at line 172 of file mappedPolyPatch.C.
References polyPatch::initGeometry().
|
protectedvirtual |
Reimplemented from polyPatch.
Definition at line 178 of file mappedPolyPatch.C.
References polyPatch::calcGeometry(), and mappedPatchBase::clearOut().
|
protectedvirtual |
Reimplemented from polyPatch.
Definition at line 186 of file mappedPolyPatch.C.
References polyPatch::initMovePoints(), and p.
|
protectedvirtual |
Reimplemented from polyPatch.
Definition at line 196 of file mappedPolyPatch.C.
References mappedPatchBase::clearOut(), polyPatch::movePoints(), and p.
|
protectedvirtual |
Reimplemented from polyPatch.
Definition at line 206 of file mappedPolyPatch.C.
References polyPatch::initUpdateMesh().
|
protectedvirtual |
Reimplemented from polyPatch.
Definition at line 212 of file mappedPolyPatch.C.
References mappedPatchBase::clearOut(), and polyPatch::updateMesh().
TypeName | ( | "mappedPatch" | ) |
|
inlinevirtual |
Reimplemented from polyPatch.
Definition at line 168 of file mappedPolyPatch.H.
References mappedPolyPatch::mappedPolyPatch().
|
inlinevirtual |
Reimplemented from polyPatch.
Definition at line 176 of file mappedPolyPatch.H.
References patchIdentifier::index(), and mappedPolyPatch::mappedPolyPatch().
|
inlinevirtual |
Reimplemented from polyPatch.
Definition at line 192 of file mappedPolyPatch.H.
References patchIdentifier::index().
|
inlinevirtual |
Reimplemented from polyPatch.
Definition at line 216 of file mappedPolyPatch.H.
References mappedPatchBase::lookupPatch(), Foam::max(), mappedPatchBase::patch_, pFaces, mappedPatchBase::samplePatch_, and mappedPatchBase::sampleRegion_.
|
inlinevirtual |
Reimplemented from polyPatch.
Definition at line 229 of file mappedPolyPatch.H.
References polyPatch::faceCells(), mappedPatchBase::lookupPatch(), mappedPatchBase::samplePatch_, and mappedPatchBase::sampleRegion_.
|
inlinevirtual |
Reimplemented from polyPatch.
Definition at line 235 of file mappedPolyPatch.H.
References patchIdentifier::index(), mappedPatchBase::lookupPatch(), mappedPatchBase::samplePatch_, and mappedPatchBase::sampleRegion_.
|
inlinevirtual |
Reimplemented from polyPatch.
Definition at line 241 of file mappedPolyPatch.H.
References forAll, mappedPatchBase::map(), mappedPatchBase::patch_, refPtr::ref(), and List::setSize().
|
inlinevirtual |
Reimplemented from polyPatch.
Definition at line 255 of file mappedPolyPatch.H.
References mappedPatchBase::owner().
|
inlinevirtual |
Reimplemented from polyPatch.
Definition at line 261 of file mappedPolyPatch.H.
References mappedPatchBase::sampleRegion_.
|
virtual |
Reimplemented from mappedPatchBase.
Definition at line 219 of file mappedPolyPatch.C.
References os(), polyPatch::write(), and mappedPatchBase::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.