Cyclic patch for Arbitrary Mesh Interface (AMI). More...
#include <cyclicAMIPolyPatch.H>


Public Member Functions | |
| TypeName ("cyclicAMI") | |
| Runtime type information. | |
| cyclicAMIPolyPatch (const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType, const transformType transform=UNKNOWN, const word &defaultAMIMethod=faceAreaWeightAMI::typeName) | |
| Construct from (base coupled patch) components. | |
| cyclicAMIPolyPatch (const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm, const word &patchType, const word &defaultAMIMethod=faceAreaWeightAMI::typeName) | |
| Construct from dictionary. | |
| cyclicAMIPolyPatch (const cyclicAMIPolyPatch &, const polyBoundaryMesh &) | |
| Construct as copy, resetting the boundary mesh. | |
| cyclicAMIPolyPatch (const cyclicAMIPolyPatch &pp, const polyBoundaryMesh &bm, const label index, const label newSize, const label newStart, const word &nbrPatchName) | |
| Construct given the original patch and resetting the. | |
| cyclicAMIPolyPatch (const cyclicAMIPolyPatch &pp, const polyBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const label newStart) | |
| Construct given the original patch and a map. | |
| virtual autoPtr< polyPatch > | clone (const polyBoundaryMesh &bm) const |
| Construct and return a clone, resetting the boundary mesh. | |
| virtual autoPtr< polyPatch > | clone (const polyBoundaryMesh &bm, const label index, const label newSize, const label newStart) const |
| Construct and return a clone, resetting the face list and boundary mesh. | |
| virtual autoPtr< polyPatch > | clone (const polyBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const label newStart) const |
| Construct and return a clone, resetting the face list. | |
| virtual | ~cyclicAMIPolyPatch ()=default |
| Destructor. | |
| virtual void | newInternalProcFaces (label &, label &) const |
| Return number of new internal of this polyPatch faces. | |
| virtual const labelUList & | nbrCells () const |
| Return nbrCells. | |
| virtual label | neighbPolyPatchID () const |
| Return nbr patch ID. | |
| virtual refPtr< labelListList > | mapCollocatedFaces () const |
| Return collocated faces map. | |
| virtual bool | masterImplicit () const |
| Return implicit master. | |
| bool | canResetAMI () const |
| Flag to indicate whether the AMI can be reset. | |
| bool | createAMIFaces () const |
| Return access to the createAMIFaces flag. | |
| bool | updatingAMI () const |
| Return access to the updated flag. | |
| virtual bool | changeTopology () const |
| Return true if this patch changes the mesh topology. | |
| virtual bool | setTopology (polyTopoChange &topoChange) |
| Set topology changes in the polyTopoChange object. | |
| virtual bool | coupled () const |
| Is patch 'coupled'. Note that on AMI the geometry is not coupled but the fields are! | |
| const word & | neighbPatchName () const |
| Neighbour patch name. | |
| virtual label | neighbPatchID () const |
| Neighbour patch ID. | |
| scalar | fraction () const |
| Particle fraction increase between AMI pathces. | |
| virtual bool | owner () const |
| Does this side own the patch? | |
| virtual const cyclicAMIPolyPatch & | neighbPatch () const |
| Return a reference to the neighbour patch. | |
| label | periodicPatchID () const |
| Periodic patch ID (or -1). | |
| const AMIPatchToPatchInterpolation & | AMI () const |
| Return a reference to the AMI interpolator. | |
| const scalarListList & | weights () const |
| Helper function to return the weights. | |
| const scalarField & | weightsSum () const |
| Helper function to return the weights sum. | |
| bool | applyLowWeightCorrection () const |
| Return true if applying the low weight correction. | |
| vectorField & | faceAreas0 () const |
| Return access to the initial face areas. | |
| vectorField & | faceCentres0 () const |
| Return access to the initial face centres. | |
| const vector & | rotationAxis () const |
| Axis of rotation for rotational cyclic AMI. | |
| const point & | rotationCentre () const |
| Point on axis of rotation for rotational cyclic AMI. | |
| const vector & | separationVector () const |
| Translation vector for translational cyclic AMI. | |
| virtual void | transformPosition (pointField &) const |
| Transform patch-based positions from nbr side to this side. | |
| virtual void | transformPosition (point &l, const label facei) const |
| Transform a patch-based position from nbr side to this side. | |
| virtual void | reverseTransformPosition (point &l, const label facei) const |
| Transform a patch-based position from this side to nbr side. | |
| virtual void | reverseTransformDirection (vector &d, const label facei) const |
| Transform a patch-based direction from this side to nbr side. | |
| template<class Type> | |
| tmp< Field< Type > > | interpolate (const Field< Type > &fld, const UList< Type > &defaultValues=UList< Type >()) const |
| Interpolate field. | |
| template<class Type> | |
| tmp< Field< Type > > | interpolate (const tmp< Field< Type > > &tFld, const UList< Type > &defaultValues=UList< Type >()) const |
| Interpolate tmp field. | |
| template<class Type> | |
| tmp< Field< Type > > | interpolateUntransformed (const Field< Type > &fld, const UList< Type > &defaultValues) const |
| Interpolate without periodic. | |
| template<class Type, class CombineOp> | |
| void | interpolate (const UList< Type > &fld, const CombineOp &cop, List< Type > &result, const UList< Type > &defaultValues=UList< Type >()) const |
| Low-level interpolate List. | |
| template<class Type> | |
| void | initInterpolateUntransformed (const Field< Type > &fld, labelRange &sendRequests, labelRange &recvRequests, PtrList< List< Type > > &sendBuffers, PtrList< List< Type > > &recvBuffers, labelRange &sendRequests1, labelRange &recvRequests1, PtrList< List< Type > > &sendBuffers1, PtrList< List< Type > > &recvBuffers1) const |
| template<class Type> | |
| void | initInterpolate (const Field< Type > &fld, labelRange &sendRequests, labelRange &recvRequests, PtrList< List< Type > > &sendBuffers, PtrList< List< Type > > &recvBuffers, labelRange &sendRequests1, labelRange &recvRequests1, PtrList< List< Type > > &sendBuffers1, PtrList< List< Type > > &recvBuffers1) const |
| template<class Type> | |
| tmp< Field< Type > > | interpolate (const Field< Type > &localFld, const labelRange &requests, const PtrList< List< Type > > &recvBuffers, const labelRange &requests1, const PtrList< List< Type > > &recvBuffers1, const UList< Type > &defaultValues) const |
| virtual void | calcGeometry (const primitivePatch &referPatch, const pointField &thisCtrs, const vectorField &thisAreas, const pointField &thisCc, const pointField &nbrCtrs, const vectorField &nbrAreas, const pointField &nbrCc) |
| Calculate the patch geometry. | |
| virtual void | initOrder (PstreamBuffers &, const primitivePatch &) const |
| Initialize ordering for primitivePatch. Does not refer to *this (except for name() and type() etc.). | |
| virtual bool | order (PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const |
| Return new ordering for primitivePatch. | |
| label | pointFace (const label facei, const vector &n, point &p) const |
| Return face index on neighbour patch which shares point p following trajectory vector n. | |
| virtual void | write (Ostream &) const |
| Write the polyPatch data as a dictionary. | |
| template<class Type> | |
| Foam::tmp< Foam::Field< Type > > | interpolateUntransformed (const Field< Type > &fld, const UList< Type > &defaultValues) const |
| template<class Type> | |
| Foam::tmp< Foam::Field< Type > > | interpolate (const Field< Type > &fld, const UList< Type > &defaultValues) const |
| template<class Type> | |
| Foam::tmp< Foam::Field< Type > > | interpolate (const tmp< Field< Type > > &tFld, const UList< Type > &defaultValues) const |
| template<class Type> | |
| Foam::tmp< Foam::Field< Type > > | interpolate (const Field< Type > &localFld, const labelRange &requests, const PtrList< List< Type > > &recvBuffers, const labelRange &requests1, const PtrList< List< Type > > &recvBuffers1, const UList< Type > &defaultValues) const |
| Public Member Functions inherited from coupledPolyPatch | |
| TypeName ("coupled") | |
| Runtime type information. | |
| coupledPolyPatch (const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType, const transformType transform) | |
| Construct from components. | |
| coupledPolyPatch (const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm, const word &patchType) | |
| Construct from dictionary. | |
| coupledPolyPatch (const coupledPolyPatch &, const polyBoundaryMesh &bm) | |
| Copy construct, resetting the boundary mesh. | |
| coupledPolyPatch (const coupledPolyPatch &, const labelList &faceCells) | |
| Copy construct, resetting the faceCells. | |
| coupledPolyPatch (const coupledPolyPatch &pp, const polyBoundaryMesh &bm, const label index, const label newSize, const label newStart) | |
| Construct given the original patch and resetting the face list and boundary mesh information. | |
| coupledPolyPatch (const coupledPolyPatch &pp, const polyBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const label newStart) | |
| Construct given the original patch and a map. | |
| virtual | ~coupledPolyPatch () |
| Destructor. | |
| virtual bool | neighbour () const |
| Does the coupled side own the patch ? | |
| virtual label | referPatchID () const |
| The referring patchID (eg, for cyclics). | |
| virtual transformType | transform () const |
| Type of transform. | |
| virtual transformType & | transform () |
| Type of transform. | |
| virtual bool | separated () const |
| Are the planes separated. | |
| virtual const vectorField & | separation () const |
| If the planes are separated the separation vector. | |
| virtual bool | parallel () const |
| Are the cyclic planes parallel. | |
| virtual const tensorField & | forwardT () const |
| Return face transformation tensor. | |
| virtual const tensorField & | reverseT () const |
| Return neighbour-cell transformation tensor. | |
| virtual const boolList & | collocated () const |
| Are faces collocated. Either size 0,1 or length of patch. | |
| scalar | matchTolerance () const |
| Public Member Functions inherited from polyPatch | |
| TypeName ("patch") | |
| Runtime type information. | |
| 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) | |
| Construct from components. | |
| polyPatch (const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &physicalType, const wordList &inGroups) | |
| Construct from components. | |
| polyPatch (const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm, const word &patchType) | |
| Construct from dictionary. | |
| polyPatch (const polyPatch &, const polyBoundaryMesh &) | |
| Copy construct, resetting the boundary mesh. | |
| polyPatch (const polyPatch &pp, const polyBoundaryMesh &bm, const label index, const label newSize, const label newStart) | |
| Construct given the original patch and resetting the face list and boundary mesh information. | |
| polyPatch (const polyPatch &pp, const polyBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const label newStart) | |
| Construct given the original patch and a map. | |
| polyPatch (const polyPatch &p) | |
| Copy construct. | |
| polyPatch (const polyPatch &p, const labelList &faceCells) | |
| Copy construct, setting faceCells. | |
| virtual autoPtr< polyPatch > | clone (const labelList &faceCells) const |
| Construct and return a clone, setting faceCells. | |
| virtual | ~polyPatch () |
| Destructor. | |
| virtual word | neighbRegionID () const |
| Return neighbour region name. | |
| label | offset () const noexcept |
| The offset where this patch starts in the boundary face list. | |
| label | start () const noexcept |
| Return start label of this patch in the polyMesh face list. | |
| labelRange | range () const |
| Return start/size range of this patch. | |
| const polyBoundaryMesh & | boundaryMesh () const noexcept |
| Return boundaryMesh reference. | |
| template<class T> | |
| const UIndirectList< T > | patchInternalList (const UList< T > &internalValues) const |
| Extract face cell data. | |
| template<class T> | |
| const List< T >::subList | patchSlice (const UList< T > &values) const |
| This patch slice from the complete list, which has size mesh::nFaces(), using the number of patch faces. | |
| template<class T> | |
| const Field< T >::subField | patchSlice (const Field< T > &values) const |
| Slice Field to patch, using the number of patch faces. | |
| template<class T> | |
| const List< T >::subList | boundarySlice (const UList< T > &values) const |
| This patch slice from the list of boundary values, which has size mesh::nBoundaryFaces(), using the number of patch faces. | |
| const faceList::subList | faces () const |
| Return mesh faces for the patch. | |
| const labelList::subList | faceOwner () const |
| Return face owner for the patch. | |
| const vectorField::subField | faceCentres () const |
| Return face centres. | |
| const vectorField::subField | faceAreas () const |
| Return face normals. | |
| tmp< vectorField > | faceCellCentres () const |
| Return face cell centres. | |
| tmp< scalarField > | areaFraction (const pointField &points) const |
| Calculate the area fraction as the ratio of the stored face area and the area given by the face points. | |
| tmp< scalarField > | areaFraction () const |
| Return the cached area fraction. Usually only set for the non-overlap patches on ACMI. | |
| void | areaFraction (const scalar fraction) |
| Set uniform cached area fraction. | |
| void | areaFraction (const tmp< scalarField > &fraction) |
| Set cached area fraction (non-uniform). | |
| const labelUList & | faceCells () const |
| Return face-cell addressing. | |
| const labelList & | meshEdges () const |
| Return global edge index for local edges. | |
| virtual void | clearAddressing () |
| Clear addressing. | |
| label | whichFace (const label facei) const noexcept |
| Return label of face in patch from global face label. | |
| void | operator= (const polyPatch &p) |
| Copy assignment. | |
| Public Member Functions inherited from patchIdentifier | |
| patchIdentifier (const patchIdentifier &)=default | |
| Copy construct. | |
| patchIdentifier (patchIdentifier &&)=default | |
| Move construct. | |
| patchIdentifier & | operator= (const patchIdentifier &)=default |
| Copy assignment. | |
| patchIdentifier & | operator= (patchIdentifier &&)=default |
| Move assignment. | |
| virtual | ~patchIdentifier ()=default |
| Destructor. | |
| patchIdentifier () | |
| Default construct: name="", index=0. | |
| patchIdentifier (const word &name, const label index) | |
| Construct from mandatory components. | |
| patchIdentifier (const word &name, const label index, const word &physicalType, const wordList &inGroups=wordList()) | |
| Construct from components. | |
| patchIdentifier (const word &name, const dictionary &dict, const label index) | |
| Construct from dictionary. | |
| patchIdentifier (const patchIdentifier &ident, const label newIndex) | |
| Copy construct, resetting the index (if non-negative). | |
| patchIdentifier (patchIdentifier &&ident, const label newIndex) | |
| Move construct, resetting the index (if non-negative). | |
| const word & | name () const noexcept |
| The patch name. | |
| word & | name () noexcept |
| Modifiable patch name. | |
| label | index () const noexcept |
| The index of this patch in the boundaryMesh. | |
| label & | index () noexcept |
| Modifiable index of this patch in the boundaryMesh. | |
| const word & | physicalType () const noexcept |
| The (optional) physical type of the patch. | |
| word & | physicalType () noexcept |
| Modifiable (optional) physical type of the patch. | |
| const wordList & | inGroups () const noexcept |
| The (optional) groups that the patch belongs to. | |
| wordList & | inGroups () noexcept |
| Modifiable (optional) groups that the patch belongs to. | |
| bool | inGroup (const word &name) const |
| True if given name is in a group. | |
| void | addGroup (const word &name) |
| Add (unique) group for the patch. | |
| void | removeGroup (const word &name) |
| Remove group for the patch. | |
| void | write (Ostream &os) const |
| Write (physicalType, inGroups) dictionary entries (without surrounding braces). | |
| Public Member Functions inherited from PrimitivePatch< SubList< face >, const pointField & > | |
| PrimitivePatch (const SubList< face > &faces, const const pointField &&points) | |
| Construct from components. | |
| PrimitivePatch (SubList< face > &&faces, const const pointField &&points) | |
| Construct from components, transferring faces. | |
| PrimitivePatch (SubList< face > &faces, const pointField &&points, const bool reuse) | |
| Construct from components, reuse storage. | |
| PrimitivePatch (const PrimitivePatch< SubList< face >, const pointField & > &pp) | |
| Copy construct. | |
| virtual | ~PrimitivePatch () |
| Destructor. | |
| void | clearOut () |
| void | clearGeom () |
| void | clearTopology () |
| void | clearPatchMeshAddr () |
| void | swap (PrimitivePatch &)=delete |
| Suppress direct swapping, since storage containers may be const. | |
| const Field< point_type > & | points () const noexcept |
| Return reference to global points. | |
| label | nFaces () const noexcept |
| Number of faces in the patch. | |
| label | nPoints () const |
| Number of points supporting patch faces. | |
| label | nEdges () const |
| Number of edges in patch. | |
| const edgeList & | edges () const |
| Return list of edges, address into LOCAL point list. | |
| const edgeList::subList | internalEdges () const |
| Return sub-list of internal edges, address into LOCAL point list. | |
| const edgeList::subList | boundaryEdges () const |
| Return sub-list of boundary edges, address into LOCAL point list. | |
| label | nInternalEdges () const |
| Number of internal edges. | |
| label | nBoundaryEdges () const |
| Number of boundary edges == (nEdges() - nInternalEdges()). | |
| bool | isInternalEdge (const label edgei) const |
| Is internal edge? | |
| const labelList & | boundaryPoints () const |
| Return list of boundary points, address into LOCAL point list. | |
| const labelListList & | faceFaces () const |
| Return face-face addressing. | |
| const labelListList & | edgeFaces () const |
| Return edge-face addressing. | |
| const labelListList & | faceEdges () const |
| Return face-edge addressing. | |
| const labelListList & | pointEdges () const |
| Return point-edge addressing. | |
| const labelListList & | pointFaces () const |
| Return point-face addressing. | |
| const List< face_type > & | localFaces () const |
| Return patch faces addressing into local point list. | |
| labelList | boundaryFaces () const |
| Extract list of local faces corresponding to the boundary edges. | |
| labelList | uniqBoundaryFaces () const |
| Extract sorted list of unique local faces associated with the boundary edges. | |
| const labelList & | meshPoints () const |
| Return labelList of mesh points in patch. | |
| const Map< label > & | meshPointMap () const |
| Mesh point map. | |
| const Field< point_type > & | localPoints () const |
| Return pointField of points in patch. | |
| const labelList & | localPointOrder () const |
| Return orders the local points for most efficient search. | |
| label | whichPoint (const label gp) const |
| Given a global point index, return the local point index. | |
| edge | meshEdge (const label edgei) const |
| From patch edge to global edge using meshPoints. | |
| edge | meshEdge (const edge &e) const |
| From patch edge to global edge using meshPoints. | |
| label | findEdge (const edge &e) const |
| Search for edge (local point labels) and return its index in the edge list or -1 if not found. | |
| labelList | meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const |
| Return labels of patch edges in the global edge list using cell addressing. | |
| labelList | meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const |
| Return labels of patch edges into the global edge list using basic edge addressing. | |
| label | meshEdge (const label edgei, const edgeList &allEdges, const labelListList &pointEdges) const |
| Return label of the local patch edge into the global edge list using basic edge addressing. | |
| labelList | meshEdges (const labelUList &edgeLabels, const edgeList &allEdges, const labelListList &pointEdges) const |
| Return labels of specified patch edges into the global edge list using basic edge addressing. | |
| const Field< point_type > & | faceCentres () const |
| Return face centres for patch. | |
| const Field< point_type > & | faceAreas () const |
| Return face area vectors for patch. | |
| const Field< scalar > & | magFaceAreas () const |
| Return face area magnitudes for patch. | |
| const Field< point_type > & | faceNormals () const |
| Return face unit normals for patch. | |
| const Field< point_type > & | pointNormals () const |
| Return point normals for patch. | |
| Pair< point_type > | box () const |
| The enclosing (bounding) box for the patch points. | |
| scalar | sphere (const label facei) const |
| The enclosing (bounding) sphere radius^2 for specified face. | |
| bool | hasFaceAreas () const |
| bool | hasFaceCentres () const |
| bool | hasFaceNormals () const |
| bool | hasPointNormals () const |
| bool | hasBoundaryPoints () const |
| bool | hasEdges () const |
| bool | hasFaceFaces () const |
| bool | hasEdgeFaces () const |
| bool | hasFaceEdges () const |
| bool | hasPointEdges () const |
| bool | hasPointFaces () const |
| bool | hasMeshPoints () const |
| bool | hasMeshPointMap () const |
| List< objectHit > | projectPoints (const ToPatch &targetPatch, const Field< point_type > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
| Project vertices of patch onto another patch. | |
| List< objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< point_type > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
| Project vertices of patch onto another patch. | |
| const labelListList & | edgeLoops () const |
| Return list of closed loops of boundary vertices. | |
| surfaceTopo | surfaceType (labelHashSet *badEdgesPtr=nullptr) const |
| Calculate surface type formed by patch, optionally recording the indices of illegal edges. | |
| bool | checkTopology (const bool report=false, labelHashSet *pointSetPtr=nullptr) const |
| Check surface formed by patch for manifoldness (see above). | |
| bool | checkPointManifold (const bool report=false, labelHashSet *pointSetPtr=nullptr) const |
| Checks primitivePatch for faces sharing point but not edge. | |
| void | operator= (const PrimitivePatch< SubList< face >, const pointField & > &rhs) |
| Copy assign faces. Leave points alone (could be a reference). | |
| void | operator= (PrimitivePatch< SubList< face >, const pointField & > &&rhs) |
| Move assign faces. Leave points alone (could be a reference). | |
| label | whichEdge (const edge &e) const |
| Identical to findEdge. | |
| Foam::List< Foam::objectHit > | projectPoints (const ToPatch &targetPatch, const Field< typename Foam::PrimitivePatch< SubList< face >, const pointField & >::point_type > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
| Foam::List< Foam::objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< typename Foam::PrimitivePatch< SubList< face >, const pointField & >::point_type > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
| Public Member Functions inherited from PrimitivePatchBase | |
| ClassName ("PrimitivePatch") | |
| Runtime type information. | |
| PrimitivePatchBase ()=default | |
| Default construct. | |
| Public Member Functions inherited from SubList< face > | |
| SubList () noexcept=default | |
| Default construct, zero-sized and nullptr. | |
| SubList (const SubList< face > &) noexcept=default | |
| Copy construct, shallow copy. | |
| SubList (const UList< face > &list) noexcept | |
| Construct from UList, the entire size. | |
| SubList (const FixedList< face, N > &list) noexcept | |
| Construct from FixedList, the entire size. | |
| SubList (const UList< face > &list, const label len) | |
| Construct from UList and sub-list size, start at 0. | |
| SubList (const UList< face > &list, const label len, const label start) | |
| Construct from UList, sub-list size and start index. | |
| SubList (const UList< face > &list, const labelRange &range) | |
| Construct from UList and a (start,size) range. | |
| SubList (const labelRange &range, const UList< face > &list) | |
| Construct from UList and a (start,size) range, but bypassing run-time range checking. | |
| UList< face > & | reset (std::nullptr_t) noexcept |
| Reset to zero-sized and nullptr. | |
| UList< face > & | reset (const UList< face > &list) noexcept |
| Reset to use entire UList. | |
| UList< face > & | reset (const UList< face > &list, const label len) |
| Reset to use UList with sub-list size, start at 0. | |
| UList< face > & | reset (const UList< face > &list, const label len, const label start) |
| Reset to use UList with sub-list size and start index. | |
| UList< face > & | reset (const UList< face > &list, const labelRange &range) |
| Reset to use UList with a (start,size) range. | |
| UList< face > & | reset (const labelRange &range, const UList< face > &list) |
| Reset to use UList with a (start,size) range, but bypassing run-time range checking. | |
| operator const Foam::List< face > & () const | |
| Allow cast to a const List<T>&. | |
| void | operator= (const SubList< face > &list) |
| Copy assign entries (deep copy) from given sub-list. Sizes must match! | |
| void | operator= (const UList< face > &list) |
| Copy assign entries (deep copy) from given list. Sizes must match! | |
| void | operator= (const IndirectListBase< face, Addr > &list) |
| Copy assign entries from given indirect list. Sizes must match! | |
| void | operator= (const face &val) |
| Assign all entries to the given value. | |
| void | operator= (Foam::zero) |
| Assign all entries to zero. | |
| operator const Foam::List< face > & () const | |
| Allow cast to a const List<T>&. | |
| Public Member Functions inherited from UList< face > | |
| UList (const UList< face > &) noexcept=default | |
| Copy construct, shallow copy. | |
| UList (UList< face > &&) noexcept=default | |
| Move construct, shallow copy. | |
| UList< face > & | operator= (const UList< face > &)=delete |
| No copy assignment (default: shallow copy). | |
| UList< face > & | operator= (UList< face > &&) noexcept=default |
| Move assignment, shallow copy. | |
| constexpr | UList () noexcept |
| Default construct, zero-sized and nullptr. | |
| UList (face *__restrict__ ptr, const label len) noexcept | |
| Construct from components. | |
| UList (SubList< face > &&) noexcept | |
| Move construct from a SubList, shallow copy. | |
| label | fcIndex (const label i) const noexcept |
| The forward circular index. The next index in the list which returns to the first at the end of the list. | |
| label | rcIndex (const label i) const noexcept |
| The reverse circular index. The previous index in the list which returns to the last at the beginning of the list. | |
| const face & | fcValue (const label i) const |
| Return forward circular value (ie, next value in the list). | |
| face & | fcValue (const label i) |
| Return forward circular value (ie, next value in the list). | |
| const face & | rcValue (const label i) const |
| Return reverse circular value (ie, previous value in the list). | |
| face & | rcValue (const label i) |
| Return reverse circular value (ie, previous value in the list). | |
| const face * | cdata () const noexcept |
| Return pointer to the underlying array serving as data storage. | |
| face * | data () noexcept |
| Return pointer to the underlying array serving as data storage. | |
| const char * | cdata_bytes () const noexcept |
| Return pointer to the underlying array serving as data storage,. | |
| char * | data_bytes () noexcept |
| Return pointer to the underlying array serving as data storage,. | |
| face & | front () |
| Access first element of the list, position [0]. | |
| const face & | front () const |
| Access first element of the list. | |
| face & | back () |
| Access last element of the list, position [size()-1]. | |
| const face & | back () const |
| Access last element of the list, position [size()-1]. | |
| std::streamsize | size_bytes () const noexcept |
| Number of contiguous bytes for the List data. | |
| std::streamsize | byteSize () const |
| Number of contiguous bytes for the List data, runtime FatalError if type is not contiguous. | |
| void | checkStart (const label start) const |
| Check start is within valid range [0,size). | |
| void | checkSize (const label size) const |
| Check size is within valid range [0,size]. | |
| void | checkRange (const label start, const label len) const |
| Check that start and length define a valid range. | |
| void | checkIndex (const label i) const |
| Check index is within valid range [0,size). | |
| bool | uniform () const |
| True if all entries have identical values, and list is non-empty. | |
| bool | contains (const face &val) const |
| True if the value is contained in the list. | |
| bool | contains (const face &val, label pos, label len=-1) const |
| Is the value contained in the list? | |
| label | find (const face &val) const |
| Find index of the first occurrence of the value. | |
| label | find (const face &val, label pos, label len=-1) const |
| Find index of the first occurrence of the value. | |
| label | rfind (const face &val, label pos=-1) const |
| Find index of the last occurrence of the value. | |
| void | moveFirst (const label i) |
| Move element to the first position. | |
| void | moveLast (const label i) |
| Move element to the last position. | |
| void | swapFirst (const label i) |
| Swap element with the first element. Fatal on an empty list. | |
| void | swapLast (const label i) |
| Swap element with the last element. Fatal on an empty list. | |
| void | shallowCopy (face *__restrict__ ptr, const label len) noexcept |
| Copy the pointer and size. | |
| void | shallowCopy (std::nullptr_t) noexcept |
| Copy nullptr and zero size. | |
| void | shallowCopy (const UList< face > &list) noexcept |
| Copy the pointer and size held by the given UList. | |
| void | deepCopy (const UList< face > &list) |
| Copy elements of the given UList. Sizes must match! | |
| void | deepCopy (const IndirectListBase< face, Addr > &list) |
| Copy elements of the given indirect list. Sizes must match! | |
| SubList< face > | slice (const label pos, label len=-1) |
| Return SubList slice (non-const access) - no range checking. | |
| const SubList< face > | slice (const label pos, label len=-1) const |
| Return SubList slice (const access) - no range checking. | |
| SubList< face > | slice (const labelRange &range) |
| Return SubList slice (non-const access) - with range checking. | |
| const SubList< face > | slice (const labelRange &range) const |
| Return SubList slice (const access) - with range checking. | |
| face & | operator[] (const label i) |
| Return element of UList. | |
| const face & | operator[] (const label i) const |
| Return element of constant UList. | |
| operator const Foam::List< face > & () const | |
| Allow cast to a const List<T>&. | |
| void | operator= (const face &val) |
| Assignment of all entries to the given value. | |
| void | operator= (Foam::zero) |
| Assignment of all entries to zero. | |
| iterator | begin () noexcept |
| Return an iterator to begin traversing the UList. | |
| iterator | end () noexcept |
| Return an iterator to end traversing the UList. | |
| iterator | begin (const label i) noexcept |
| Return iterator at offset i from begin, clamped to [0,size] range. | |
| const_iterator | cbegin () const noexcept |
| Return const_iterator to begin traversing the constant UList. | |
| const_iterator | cend () const noexcept |
| Return const_iterator to end traversing the constant UList. | |
| const_iterator | begin () const noexcept |
| Return const_iterator to begin traversing the constant UList. | |
| const_iterator | end () const noexcept |
| Return const_iterator to end traversing the constant UList. | |
| const_iterator | cbegin (const label i) const noexcept |
| Return const_iterator at offset i from begin, clamped to [0,size] range. | |
| const_iterator | begin (const label i) const noexcept |
| Return const_iterator at offset i from begin, clamped to [0,size] range. | |
| reverse_iterator | rbegin () |
| Return reverse_iterator to begin reverse traversing the UList. | |
| reverse_iterator | rend () |
| Return reverse_iterator to end reverse traversing the UList. | |
| const_reverse_iterator | crbegin () const |
| Return const_reverse_iterator to begin reverse traversing the UList. | |
| const_reverse_iterator | crend () const |
| Return const_reverse_iterator to end reverse traversing the UList. | |
| const_reverse_iterator | rbegin () const |
| Return const_reverse_iterator to begin reverse traversing the UList. | |
| const_reverse_iterator | rend () const |
| Return const_reverse_iterator to end reverse traversing the UList. | |
| bool | empty () const noexcept |
| True if List is empty (ie, size() is zero). | |
| label | size () const noexcept |
| The number of elements in the container. | |
| label | capacity () const noexcept |
| Size of the underlying storage. | |
| void | swap (UList< face > &list) noexcept |
| Swap content with another UList of the same type in constant time. | |
| bool | operator== (const UList< face > &list) const |
| Equality operation on ULists of the same type. | |
| bool | operator!= (const UList< face > &list) const |
| The opposite of the equality operation. Takes linear time. | |
| bool | operator< (const UList< face > &list) const |
| Compare two ULists lexicographically. Takes linear time. | |
| bool | operator> (const UList< face > &list) const |
| Compare two ULists lexicographically. Takes linear time. | |
| bool | operator<= (const UList< face > &list) const |
| Return true if !(a > b). Takes linear time. | |
| bool | operator>= (const UList< face > &list) const |
| Return true if !(a < b). Takes linear time. | |
| Istream & | readList (Istream &is) |
| Read List contents from Istream. | |
| void | writeEntry (const word &keyword, Ostream &os) const |
| Write the List as a dictionary entry with keyword. | |
| Ostream & | writeList (Ostream &os, const label shortLen=0) const |
| Write List, with line-breaks in ASCII when length exceeds shortLen. | |
| bool | all () const |
| True if all entries are 'true' or if the list is empty. | |
| bool | any () const |
| True if any entries are 'true'. | |
| bool | none () const |
| True if no entries are 'true'. | |
| bool | test (const label i) const |
Test bool value at specified position, always false for out-of-range access. | |
| bool | get (const label i) const |
Return bool value at specified position, always false for out-of-range access. | |
| bool | unset (const label i) |
Unset the bool entry at specified position, always false for out-of-range access. | |
| std::string_view | view () const |
| Return a string_view of the charList. Content is non-modifiable. | |
| face & | first () |
| Access first element of the list, position [0]. | |
| const face & | first () const |
| Access first element of the list. | |
| face & | last () |
| Access last element of the list, position [size()-1]. | |
| const face & | last () const |
| Access last element of the list, position [size()-1]. | |
| bool | found (const face &val, label pos=0) const |
| Same as contains(). | |
| auto | expr () const |
| Wrap value as expression. | |
| void | operator= (const Expression::ListExpression< E > &expr) |
| Assign values from expression. | |
| operator const Foam::List< face > & () const | |
| Allow cast to a const List<T>&. | |
Static Public Attributes | |
| static const scalar | tolerance_ = 1e-10 |
| Tolerance used e.g. for area calculations/limits. | |
| Static Public Attributes inherited from coupledPolyPatch | |
| static const Enum< transformType > | transformTypeNames |
| Static Public Attributes inherited from polyPatch | |
| static int | disallowGenericPolyPatch |
| Debug switch to disallow the use of genericPolyPatch. | |
Protected Member Functions | |
| virtual bool | removeAMIFaces (polyTopoChange &topoChange) |
| Collect faces to remove in the topoChange container. | |
| virtual bool | addAMIFaces (polyTopoChange &topoChange) |
| Collect faces to add in the topoChange container. | |
| virtual void | setAMIFaces () |
| Set properties of newly inserted faces after topological changes. | |
| virtual void | restoreScaledGeometry () |
| Helper to re-apply the geometric scaling lost during mesh updates. | |
| const autoPtr< searchableSurface > & | surfPtr () const |
| Create and return pointer to the projection surface. | |
| autoPtr< coordSystem::cylindrical > | cylindricalCS () const |
| Create a coordinate system from the periodic patch (or nullptr). | |
| virtual void | resetAMI (const UList< point > &points) const |
| Reset the AMI interpolator, supply patch points. | |
| virtual void | resetAMI () const |
| Reset the AMI interpolator, use current patch points. | |
| virtual void | calcTransforms () |
| Recalculate the transformation tensors. | |
| virtual void | initGeometry (PstreamBuffers &) |
| Initialise the calculation of the patch geometry. | |
| virtual void | calcGeometry (PstreamBuffers &) |
| Calculate the patch geometry. | |
| virtual void | initMovePoints (PstreamBuffers &pBufs, const pointField &) |
| Initialise the patches for moving points. | |
| virtual void | movePoints (PstreamBuffers &pBufs, const pointField &) |
| Correct patches after moving points. | |
| virtual void | initUpdateMesh (PstreamBuffers &) |
| Initialise the update of the patch topology. | |
| virtual void | updateMesh (PstreamBuffers &) |
| Update of the patch topology. | |
| virtual void | clearGeom () |
| Clear geometry. | |
| Protected Member Functions inherited from coupledPolyPatch | |
| void | calcTransformTensors (const vectorField &Cf, const vectorField &Cr, const vectorField &nf, const vectorField &nr, const scalarField &smallDist, const scalar absTol, const transformType=UNKNOWN) const |
| Calculate the transformation tensors. | |
| Protected Member Functions inherited from polyPatch | |
| virtual void | movePoints (const Field< point_type > &) |
| Inherit movePoints from primitivePatch. | |
| Protected Member Functions inherited from UList< face > | |
| void | setAddressableSize (const label n) noexcept |
| Set addressed size to be inconsistent with allocated storage. | |
| void | size (const label n) |
| Older name for setAddressableSize. | |
| void | writeEntry (Ostream &os) const |
| Write the UList with its compound type. | |
| labelRange | validateRange (const labelRange &requestedRange) const |
| Return a validated (start,size) subset range, which means that it always addresses a valid section of the list. | |
| void | fill_uniform (const face &val) |
| Assign all entries to the given value. | |
| void | fill_uniform (Foam::zero) |
| Assign all entries to zero. | |
Protected Attributes | |
| word | nbrPatchName_ |
| Name of other half. | |
| const coupleGroupIdentifier | coupleGroup_ |
| Optional patchGroup to find neighbPatch. | |
| label | nbrPatchID_ |
| Index of other half. | |
| const scalar | fraction_ |
| Particle displacement fraction across AMI. | |
| vector | rotationAxis_ |
| Axis of rotation for rotational cyclics. | |
| point | rotationCentre_ |
| Point on axis of rotation for rotational cyclics. | |
| bool | rotationAngleDefined_ |
| Flag to show whether the rotation angle is defined. | |
| scalar | rotationAngle_ |
| Rotation angle. | |
| vector | separationVector_ |
| Translation vector. | |
| word | periodicPatchName_ |
| Periodic patch name. | |
| label | periodicPatchID_ |
| Periodic patch. | |
| autoPtr< AMIPatchToPatchInterpolation > | AMIPtr_ |
| AMI interpolation class. | |
| const dictionary | surfDict_ |
| Dictionary used during projection surface construction. | |
| autoPtr< searchableSurface > | surfPtr_ |
| Projection surface. | |
| bool | createAMIFaces_ |
| Flag to indicate that new AMI faces will created. | |
| bool | moveFaceCentres_ |
| Move face centres (default = no). | |
| bool | updatingAMI_ |
| labelListList | srcFaceIDs_ |
| labelListList | tgtFaceIDs_ |
| vectorField | faceAreas0_ |
| Temporary storage for AMI face areas. | |
| vectorField | faceCentres0_ |
| Temporary storage for AMI face centres. | |
| bool | cacheAMI_ |
Additional Inherited Members | |
| Public Types inherited from coupledPolyPatch | |
| enum | transformType { UNKNOWN , ROTATIONAL , TRANSLATIONAL , COINCIDENTFULLMATCH , NOORDERING } |
| Public Types inherited from PrimitivePatch< SubList< face >, const pointField & > | |
| enum | surfaceTopo |
| Enumeration defining the surface type. Used in check routines. More... | |
| typedef std::remove_reference< SubList< face > >::type::value_type | face_type |
| The face type. | |
| typedef std::remove_reference< const pointField & >::type::value_type | point_type |
| The point type. | |
| typedef SubList< face > | FaceListType |
| The face list type. | |
| typedef const pointField & | PointFieldType |
| The point field type. | |
| typedef face_type | FaceType |
| Deprecated(2020-03) prefer face_type typedef. | |
| Public Types inherited from UList< face > | |
| typedef face | value_type |
| The value type the list contains. | |
| typedef face * | pointer |
| The pointer type for non-const access to value_type items. | |
| typedef const face * | const_pointer |
| The pointer type for const access to value_type items. | |
| typedef face & | reference |
| The type used for storing into value_type objects. | |
| typedef const face & | const_reference |
| The type used for reading from constant value_type objects. | |
| typedef face * | iterator |
| Random access iterator for traversing a UList. | |
| typedef const face * | const_iterator |
| Random access iterator for traversing a UList. | |
| typedef label | size_type |
| The type to represent the size of a UList. | |
| typedef label | difference_type |
| The difference between iterator objects. | |
| typedef std::reverse_iterator< iterator > | reverse_iterator |
| Reverse iterator (non-const access). | |
| typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
| Reverse iterator (const access). | |
| using | is_List |
| Have unique tag. | |
| Static Public Member Functions inherited from coupledPolyPatch | |
| static scalarField | calcFaceTol (const UList< face > &faces, const pointField &points, const pointField &faceCentres) |
| Calculate typical tolerance per face. Is currently max distance. | |
| Static Public Member Functions inherited from polyPatch | |
| static autoPtr< polyPatch > | New (const word &patchType, const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm) |
| Return pointer to a new patch created on freestore from components. | |
| static autoPtr< polyPatch > | New (const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm) |
| Return pointer to a new patch created on freestore from dictionary. | |
| static autoPtr< polyPatch > | New (const word &patchType, const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm) |
| Return pointer to a new patch created on freestore from dictionary. | |
| static bool | constraintType (const word &patchType) |
| Return true if the given type is a constraint type. | |
| static wordList | constraintTypes () |
| Return a list of all the constraint patch types. | |
| Static Public Member Functions inherited from patchIdentifier | |
| static word | defaultName (const label n=-1) |
| Default patch name: "patch" or "patchN". | |
| Static Public Member Functions inherited from SubList< face > | |
| static const SubList< face > & | null () noexcept |
| Return a null SubList (reference to a nullObject). Behaves like an empty SubList. | |
| Static Public Member Functions inherited from UList< face > | |
| static const UList< face > & | null () noexcept |
| Return a null UList (reference to a nullObject). Behaves like an empty UList. | |
| static constexpr label | max_size () noexcept |
| The size of the largest possible UList. | |
| Static Protected Member Functions inherited from coupledPolyPatch | |
| static void | writeOBJ (Ostream &os, const point &pt) |
| Write point in OBJ format. | |
| static void | writeOBJ (Ostream &, const pointField &, const labelList &) |
| Write selected points in OBJ format. | |
| static void | writeOBJ (const fileName &, const UList< face > &, const pointField &) |
| Write patch. | |
| static void | writeOBJ (Ostream &os, const point &p0, const point &p1, label &vertI) |
| Write edge in OBJ format. | |
| static pointField | getAnchorPoints (const UList< face > &, const pointField &, const transformType) |
| Get a unique anchor point for all faces. | |
| static label | getRotation (const pointField &points, const face &f, const point &anchor, const scalar tol) |
| Get the number of vertices face f needs to be rotated such that. | |
Cyclic patch for Arbitrary Mesh Interface (AMI).
Includes provision for updating the patch topology to enforce a 1-to-1 face match across the interface, based on the createAMIFaces flag.
The manipulations are based on the reference:
H.J. Aguerre, S. Márquez Damián, J.M. Gimenez, N.M.Nigro, Conservative handling of arbitrary non-conformal interfaces using an efficient supermesh, Journal of Computational Physics 335(15) 21-49. 2017. https://doi.org/10.1016/j.jcp.2017.01.018.
Definition at line 65 of file cyclicAMIPolyPatch.H.
| cyclicAMIPolyPatch | ( | const word & | name, |
| const label | size, | ||
| const label | start, | ||
| const label | index, | ||
| const polyBoundaryMesh & | bm, | ||
| const word & | patchType, | ||
| const transformType | transform = UNKNOWN, | ||
| const word & | defaultAMIMethod = faceAreaWeightAMI::typeName ) |
Construct from (base coupled patch) components.
Definition at line 677 of file cyclicAMIPolyPatch.C.
References AMIPtr_, coupledPolyPatch::coupledPolyPatch(), createAMIFaces_, faceAreas0_, faceCentres0_, fraction_, patchIdentifier::index(), moveFaceCentres_, Foam::name(), nbrPatchID_, nbrPatchName_, Foam::New(), periodicPatchID_, periodicPatchName_, rotationAngle_, rotationAngleDefined_, rotationAxis_, rotationCentre_, separationVector_, UList< face >::size(), srcFaceIDs_, polyPatch::start(), surfDict_, surfPtr_, tgtFaceIDs_, coupledPolyPatch::transform(), updatingAMI_, and Foam::Zero.
Referenced by addAMIFaces(), calcTransforms(), clone(), clone(), cyclicACMIPolyPatch::cyclicACMIPolyPatch(), cyclicACMIPolyPatch::cyclicACMIPolyPatch(), cyclicACMIPolyPatch::cyclicACMIPolyPatch(), cyclicACMIPolyPatch::cyclicACMIPolyPatch(), cyclicACMIPolyPatch::cyclicACMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicPeriodicAMIPolyPatch::cyclicPeriodicAMIPolyPatch(), cyclicPeriodicAMIPolyPatch::cyclicPeriodicAMIPolyPatch(), cyclicPeriodicAMIPolyPatch::cyclicPeriodicAMIPolyPatch(), cyclicPeriodicAMIPolyPatch::cyclicPeriodicAMIPolyPatch(), cyclicPeriodicAMIPolyPatch::cyclicPeriodicAMIPolyPatch(), cylindricalCS(), initInterpolate(), interpolate(), neighbPatchID(), removeAMIFaces(), resetAMI(), setAMIFaces(), and TypeName().


| cyclicAMIPolyPatch | ( | const word & | name, |
| const dictionary & | dict, | ||
| const label | index, | ||
| const polyBoundaryMesh & | bm, | ||
| const word & | patchType, | ||
| const word & | defaultAMIMethod = faceAreaWeightAMI::typeName ) |
Construct from dictionary.
Definition at line 716 of file cyclicAMIPolyPatch.C.
References AMIPtr_, coupledPolyPatch::coupledPolyPatch(), coupleGroup_, createAMIFaces_, Foam::degToRad(), dict, Foam::endl(), Foam::exit(), faceAreas0_, faceCentres0_, Foam::FatalIOError, FatalIOErrorInFunction, fraction_, if(), patchIdentifier::index(), Foam::Info, Foam::mag(), moveFaceCentres_, Foam::name(), nbrPatchID_, nbrPatchName_, Foam::New(), SubList< face >::null(), periodicPatchID_, periodicPatchName_, coupledPolyPatch::ROTATIONAL, rotationAngle_, rotationAngleDefined_, rotationAxis_, rotationCentre_, separationVector_, srcFaceIDs_, surfDict_, surfPtr_, tgtFaceIDs_, coupledPolyPatch::transform(), coupledPolyPatch::TRANSLATIONAL, updatingAMI_, and Foam::Zero.

| cyclicAMIPolyPatch | ( | const cyclicAMIPolyPatch & | pp, |
| const polyBoundaryMesh & | bm ) |
Construct as copy, resetting the boundary mesh.
Definition at line 834 of file cyclicAMIPolyPatch.C.
References AMIPtr_, clone(), coupledPolyPatch::coupledPolyPatch(), coupleGroup_, createAMIFaces_, cyclicAMIPolyPatch(), faceAreas0_, faceCentres0_, fraction_, moveFaceCentres_, nbrPatchID_, nbrPatchName_, periodicPatchID_, periodicPatchName_, pp(), rotationAngle_, rotationAngleDefined_, rotationAxis_, rotationCentre_, separationVector_, srcFaceIDs_, surfDict_, surfPtr_, tgtFaceIDs_, and updatingAMI_.

| cyclicAMIPolyPatch | ( | const cyclicAMIPolyPatch & | pp, |
| const polyBoundaryMesh & | bm, | ||
| const label | index, | ||
| const label | newSize, | ||
| const label | newStart, | ||
| const word & | nbrPatchName ) |
Construct given the original patch and resetting the.
face list and boundary mesh information
Definition at line 868 of file cyclicAMIPolyPatch.C.
References AMIPtr_, clone(), coupledPolyPatch::coupledPolyPatch(), coupleGroup_, createAMIFaces_, cyclicAMIPolyPatch(), Foam::exit(), faceAreas0_, faceCentres0_, Foam::FatalError, FatalErrorInFunction, fraction_, patchIdentifier::index(), moveFaceCentres_, patchIdentifier::name(), nbrPatchID_, nbrPatchName_, periodicPatchID_, periodicPatchName_, pp(), rotationAngle_, rotationAngleDefined_, rotationAxis_, rotationCentre_, separationVector_, srcFaceIDs_, surfDict_, surfPtr_, tgtFaceIDs_, and updatingAMI_.

| cyclicAMIPolyPatch | ( | const cyclicAMIPolyPatch & | pp, |
| const polyBoundaryMesh & | bm, | ||
| const label | index, | ||
| const labelUList & | mapAddressing, | ||
| const label | newStart ) |
Construct given the original patch and a map.
Definition at line 914 of file cyclicAMIPolyPatch.C.
References AMIPtr_, clone(), coupledPolyPatch::coupledPolyPatch(), coupleGroup_, createAMIFaces_, cyclicAMIPolyPatch(), faceAreas0_, faceCentres0_, fraction_, patchIdentifier::index(), moveFaceCentres_, nbrPatchID_, nbrPatchName_, periodicPatchID_, periodicPatchName_, pp(), rotationAngle_, rotationAngleDefined_, rotationAxis_, rotationCentre_, separationVector_, srcFaceIDs_, surfDict_, surfPtr_, tgtFaceIDs_, and updatingAMI_.

|
virtualdefault |
Destructor.
|
protectedvirtual |
Collect faces to remove in the topoChange container.
Definition at line 75 of file cyclicAMIPolyPatchTopologyChange.C.
References Foam::abort(), createAMIFaces_, cyclicAMIPolyPatch(), DebugInFunction, Foam::endl(), Foam::FatalError, FatalErrorInFunction, neighbPatch(), owner(), polyTopoChange::removeFace(), UList< T >::size(), UList< face >::size(), srcFaceIDs_, polyPatch::start(), and tgtFaceIDs_.
Referenced by setTopology().


|
protectedvirtual |
Collect faces to add in the topoChange container.
Definition at line 130 of file cyclicAMIPolyPatchTopologyChange.C.
References Foam::abort(), polyTopoChange::addFace(), AMI(), createAMIFaces_, cyclicAMIPolyPatch(), DebugInFunction, UList< T >::empty(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, patchIdentifier::index(), Foam::Info, boundaryMesh::mesh(), mesh, patchIdentifier::name(), name, neighbPatch(), Foam::nl, Foam::Pout, Foam::returnReduce(), Foam::returnReduceOr(), UList< T >::size(), srcFaceIDs_, polyPatch::start(), tgtFaceIDs_, and ZoneMesh< ZoneType, MeshType >::whichZone().
Referenced by setTopology().


|
protectedvirtual |
Set properties of newly inserted faces after topological changes.
Definition at line 254 of file cyclicAMIPolyPatchTopologyChange.C.
References Foam::abort(), AMIPtr_, createAMIFaces_, cyclicAMIPolyPatch(), DebugInFunction, UList< face >::empty(), Foam::endl(), polyPatch::faceAreas(), faceAreas0(), faceAreas0_, polyPatch::faceCentres(), faceCentres0(), faceCentres0_, Foam::FatalError, FatalErrorInFunction, UList< T >::find(), forAll, Foam::identity(), globalIndex::inplaceToGlobal(), Foam::mag(), name, neighbPatch(), Foam::nl, owner(), Foam::Pout, autoPtr< T >::reset(), reverseTransformPosition(), UList< T >::size(), UList< face >::size(), srcFaceIDs_, tgtFaceIDs_, and tolerance_.
Referenced by initUpdateMesh().


|
protectedvirtual |
Helper to re-apply the geometric scaling lost during mesh updates.
Definition at line 28 of file cyclicAMIPolyPatchTopologyChange.C.
References Foam::abort(), polyPatch::boundaryMesh(), createAMIFaces_, DebugInfo, DebugInFunction, Foam::endl(), polyPatch::faceAreas(), faceAreas0_, polyPatch::faceCentres(), faceCentres0_, Foam::FatalError, FatalErrorInFunction, Foam::gSum(), Foam::mag(), mesh, moveFaceCentres_, patchIdentifier::name(), Foam::nl, and WarningInFunction.
Referenced by initMovePoints().


|
protected |
Create and return pointer to the projection surface.
Definition at line 331 of file cyclicAMIPolyPatch.C.
References boundaryMesh::mesh(), mesh, IOobjectOption::MUST_READ, Foam::name(), searchableSurface::New(), IOobjectOption::NO_WRITE, owner(), surfDict_, and surfPtr_.
Referenced by resetAMI().


|
protected |
Create a coordinate system from the periodic patch (or nullptr).
Definition at line 284 of file cyclicAMIPolyPatch.C.
References coupledPolyPatch::coupledPolyPatch(), cyclicAMIPolyPatch(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::isA(), patchIdentifier::name(), name, autoPtr< T >::New(), coupledPolyPatch::parallel(), periodicPatchID(), Foam::refCast(), and Foam::Zero.

Reset the AMI interpolator, supply patch points.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 368 of file cyclicAMIPolyPatch.C.
References AMIPtr_, createAMIFaces_, cyclicAMIPolyPatch(), DebugInFunction, Foam::endl(), Foam::Info, PrimitivePatch< FaceList, PointField >::localFaces(), PrimitivePatch< SubList< face >, const pointField & >::localFaces(), Foam::magSqr(), VectorSpace< Form, Cmpt, Ncmpts >::max, boundaryMesh::mesh(), mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), PrimitivePatch< SubList< face >, const pointField & >::meshPoints(), UPstream::msgType(), UPstream::myProcNo(), Foam::name(), patchIdentifier::name(), name, neighbPatch(), os(), owner(), UPstream::parRun(), Time::path(), PrimitivePatch< SubList< face >, const pointField & >::points(), Foam::reduce(), Foam::returnReduceOr(), UList< T >::size(), UList< face >::size(), srcFaceIDs_, surfPtr(), tgtFaceIDs_, tolerance_, transformPosition(), WarningInFunction, and Foam::meshTools::writeOBJ().
Referenced by AMI(), resetAMI(), and setTopology().


|
protectedvirtual |
Reset the AMI interpolator, use current patch points.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 362 of file cyclicAMIPolyPatch.C.
References mesh, points, and resetAMI().
Referenced by cyclicACMIPolyPatch::resetAMI().


|
protectedvirtual |
Recalculate the transformation tensors.
Definition at line 521 of file cyclicAMIPolyPatch.C.
References coupledPolyPatch::collocated(), cyclicAMIPolyPatch(), DebugInFunction, DebugPout, Foam::endl(), polyPatch::faceCentres(), forAll, coupledPolyPatch::forwardT(), name, neighbPatch(), Foam::nl, PrimitivePatch< FaceList, PointField >::points(), coupledPolyPatch::reverseT(), coupledPolyPatch::separation(), and UList< T >::size().

|
protectedvirtual |
Initialise the calculation of the patch geometry.
Implements coupledPolyPatch.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 557 of file cyclicAMIPolyPatch.C.
References AMIPtr_, DebugInFunction, Foam::endl(), and polyPatch::initGeometry().
Referenced by cyclicACMIPolyPatch::initGeometry().


|
protectedvirtual |
Calculate the patch geometry.
Implements coupledPolyPatch.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 574 of file cyclicAMIPolyPatch.C.
References DebugInFunction, and Foam::endl().
Referenced by cyclicACMIPolyPatch::calcGeometry().


|
protectedvirtual |
Initialise the patches for moving points.
Implements coupledPolyPatch.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 580 of file cyclicAMIPolyPatch.C.
References AMIPtr_, createAMIFaces_, DebugInFunction, Foam::endl(), PrimitivePatch< SubList< face >, const pointField & >::movePoints(), p, and restoreScaledGeometry().
Referenced by cyclicACMIPolyPatch::initMovePoints().


|
protectedvirtual |
Correct patches after moving points.
Implements coupledPolyPatch.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 616 of file cyclicAMIPolyPatch.C.
References DebugInFunction, Foam::endl(), and p.
Referenced by cyclicACMIPolyPatch::movePoints().


|
protectedvirtual |
Initialise the update of the patch topology.
Implements coupledPolyPatch.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 640 of file cyclicAMIPolyPatch.C.
References createAMIFaces_, DebugInFunction, Foam::endl(), polyPatch::initUpdateMesh(), mesh, owner(), and setAMIFaces().
Referenced by cyclicACMIPolyPatch::initUpdateMesh().


|
protectedvirtual |
Update of the patch topology.
Implements coupledPolyPatch.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 653 of file cyclicAMIPolyPatch.C.
References DebugInFunction, Foam::endl(), and polyPatch::updateMesh().
Referenced by cyclicACMIPolyPatch::updateMesh().


|
protectedvirtual |
Clear geometry.
Reimplemented from polyPatch.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 662 of file cyclicAMIPolyPatch.C.
References AMIPtr_, polyPatch::clearGeom(), DebugInFunction, Foam::endl(), and updatingAMI_.
Referenced by cyclicACMIPolyPatch::clearGeom().


| TypeName | ( | "cyclicAMI" | ) |
Runtime type information.
References cyclicAMIPolyPatch(), dict, patchIdentifier::index(), Foam::name(), pp(), UList< face >::size(), polyPatch::start(), coupledPolyPatch::transform(), and coupledPolyPatch::UNKNOWN.

|
inlinevirtual |
Construct and return a clone, resetting the boundary mesh.
Reimplemented from polyPatch.
Reimplemented in cyclicACMIPolyPatch, and cyclicPeriodicAMIPolyPatch.
Definition at line 368 of file cyclicAMIPolyPatch.H.
References autoPtr< T >::NewFrom().
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), and cyclicAMIPolyPatch().


|
inlinevirtual |
Construct and return a clone, resetting the face list and boundary mesh.
Reimplemented from polyPatch.
Reimplemented in cyclicACMIPolyPatch, and cyclicPeriodicAMIPolyPatch.
Definition at line 377 of file cyclicAMIPolyPatch.H.
References cyclicAMIPolyPatch(), patchIdentifier::index(), and nbrPatchName_.

|
inlinevirtual |
Construct and return a clone, resetting the face list.
and boundary mesh
Reimplemented from polyPatch.
Reimplemented in cyclicACMIPolyPatch, and cyclicPeriodicAMIPolyPatch.
Definition at line 404 of file cyclicAMIPolyPatch.H.
References cyclicAMIPolyPatch(), and patchIdentifier::index().

|
virtual |
Return number of new internal of this polyPatch faces.
Reimplemented from polyPatch.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 949 of file cyclicAMIPolyPatch.C.
References AMI(), forAll, neighbPatch(), and UList< face >::size().

|
inlinevirtual |
Return nbrCells.
Reimplemented from polyPatch.
Definition at line 445 of file cyclicAMIPolyPatch.H.
References polyPatch::faceCells(), and neighbPatch().

|
inlinevirtual |
Return nbr patch ID.
Reimplemented from polyPatch.
Definition at line 453 of file cyclicAMIPolyPatch.H.
References patchIdentifier::index(), and neighbPatch().

|
inlinevirtual |
Return collocated faces map.
Reimplemented from polyPatch.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 461 of file cyclicAMIPolyPatch.H.
References AMI(), and AMIInterpolation::srcAddress().

|
inlinevirtual |
Return implicit master.
Reimplemented from polyPatch.
Definition at line 470 of file cyclicAMIPolyPatch.H.
References owner().

|
inline |
Flag to indicate whether the AMI can be reset.
Definition at line 24 of file cyclicAMIPolyPatchI.H.
References polyPatch::boundaryMesh(), polyBoundaryMesh::mesh(), UPstream::parRun(), TimePaths::processorCase(), and objectRegistry::time().
Referenced by cyclicACMIPolyPatch::initGeometry(), cyclicACMIPolyPatch::initMovePoints(), and cyclicACMIPolyPatch::scalePatchFaceAreas().


|
inline |
Return access to the createAMIFaces flag.
Definition at line 30 of file cyclicAMIPolyPatchI.H.
References createAMIFaces_.
|
inline |
Return access to the updated flag.
Definition at line 36 of file cyclicAMIPolyPatchI.H.
References updatingAMI_.
|
virtual |
Return true if this patch changes the mesh topology.
True when createAMIFaces is true
Reimplemented from polyPatch.
Definition at line 642 of file cyclicAMIPolyPatchTopologyChange.C.
References createAMIFaces_, DebugInFunction, and Foam::endl().

|
virtual |
Set topology changes in the polyTopoChange object.
Reimplemented from polyPatch.
Definition at line 652 of file cyclicAMIPolyPatchTopologyChange.C.
References addAMIFaces(), createAMIFaces_, DebugInFunction, Foam::endl(), owner(), polyTopoChange::points(), removeAMIFaces(), and resetAMI().

|
inlinevirtual |
Is patch 'coupled'. Note that on AMI the geometry is not coupled but the fields are!
Reimplemented from coupledPolyPatch.
Definition at line 514 of file cyclicAMIPolyPatch.H.
|
inline |
Neighbour patch name.
Definition at line 42 of file cyclicAMIPolyPatchI.H.
References coupleGroup_, nbrPatchName_, and patchID.
Referenced by cyclicACMIPolyPatch::clone(), and neighbPatchID().

|
virtual |
Neighbour patch ID.
Definition at line 981 of file cyclicAMIPolyPatch.C.
References cyclicAMIPolyPatch(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::name(), name, nbrPatchID_, neighbPatchName(), Foam::nl, Foam::refCast(), and WarningInFunction.
Referenced by cyclicACMIFvPatch::neighbFvPatch(), cyclicAMIFvPatch::neighbFvPatch(), cyclicACMIFvPatch::neighbPatch(), cyclicACMIPolyPatch::neighbPatch(), cyclicAMIFvPatch::neighbPatch(), neighbPatch(), and owner().


|
inline |
Particle fraction increase between AMI pathces.
Definition at line 55 of file cyclicAMIPolyPatchI.H.
References fraction_.
Referenced by particle< Type >::hitCyclicAMIPatch().

|
virtual |
Does this side own the patch?
Implements coupledPolyPatch.
Definition at line 1043 of file cyclicAMIPolyPatch.C.
References patchIdentifier::index(), and neighbPatchID().
Referenced by AMI(), applyLowWeightCorrection(), initInterpolate(), initInterpolateUntransformed(), initUpdateMesh(), interpolate(), interpolate(), interpolateUntransformed(), cyclicACMIPolyPatch::mask(), masterImplicit(), cyclicACMIPolyPatch::neighbPatch(), pointFace(), removeAMIFaces(), cyclicACMIPolyPatch::resetAMI(), resetAMI(), cyclicACMIPolyPatch::scalePatchFaceAreas(), setAMIFaces(), setTopology(), surfPtr(), cyclicACMIPolyPatch::updateAreas(), weights(), weightsSum(), cyclicACMIPolyPatch::write(), and AMIWeights::writeWeightFields().


|
virtual |
Return a reference to the neighbour patch.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 1049 of file cyclicAMIPolyPatch.C.
References neighbPatchID(), pp(), and Foam::refCast().
Referenced by addAMIFaces(), applyLowWeightCorrection(), calcTransforms(), particle< Type >::hitCyclicAMIPatch(), initInterpolate(), initInterpolateUntransformed(), interpolate(), interpolate(), interpolate(), interpolateUntransformed(), nbrCells(), neighbPolyPatchID(), newInternalProcFaces(), pointFace(), removeAMIFaces(), resetAMI(), setAMIFaces(), cyclicACMIPointPatchField< Type >::swapAddSeparated(), weights(), weightsSum(), and AMIWeights::writeWeightFields().


| Foam::label periodicPatchID | ( | ) | const |
Periodic patch ID (or -1).
Definition at line 1017 of file cyclicAMIPolyPatch.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, periodicPatchID_, and periodicPatchName_.
Referenced by cylindricalCS().


| const Foam::AMIPatchToPatchInterpolation & AMI | ( | ) | const |
Return a reference to the AMI interpolator.
Definition at line 1056 of file cyclicAMIPolyPatch.C.
References Foam::abort(), AMIPtr_, Foam::FatalError, FatalErrorInFunction, owner(), and resetAMI().
Referenced by addAMIFaces(), applyLowWeightCorrection(), assemblyFaceAreaPairGAMGAgglomeration::assemblyFaceAreaPairGAMGAgglomeration(), initInterpolate(), initInterpolateUntransformed(), interpolate(), interpolate(), interpolateUntransformed(), cyclicACMIPolyPatch::mapCollocatedFaces(), mapCollocatedFaces(), cyclicACMIPolyPatch::newInternalProcFaces(), newInternalProcFaces(), pointFace(), cyclicACMIPolyPatch::resetAMI(), weights(), weightsSum(), and AMIWeights::writeWeightFields().


|
inline |
Helper function to return the weights.
Definition at line 61 of file cyclicAMIPolyPatchI.H.
References AMI(), neighbPatch(), and owner().
Referenced by cyclicACMIPolyPatch::scalePatchFaceAreas().


|
inline |
Helper function to return the weights sum.
Definition at line 72 of file cyclicAMIPolyPatchI.H.
References AMI(), neighbPatch(), and owner().
Referenced by cyclicACMIPolyPatch::scalePatchFaceAreas().


| bool applyLowWeightCorrection | ( | ) | const |
Return true if applying the low weight correction.
Definition at line 1074 of file cyclicAMIPolyPatch.C.
References AMI(), neighbPatch(), and owner().

|
inline |
Return access to the initial face areas.
Used for topology change
Definition at line 83 of file cyclicAMIPolyPatchI.H.
References faceAreas0_.
Referenced by setAMIFaces().

|
inline |
Return access to the initial face centres.
Used for topology change
Definition at line 89 of file cyclicAMIPolyPatchI.H.
References faceCentres0_.
Referenced by setAMIFaces().

|
inline |
Axis of rotation for rotational cyclic AMI.
Definition at line 94 of file cyclicAMIPolyPatchI.H.
References rotationAxis_.
|
inline |
Point on axis of rotation for rotational cyclic AMI.
Definition at line 100 of file cyclicAMIPolyPatchI.H.
References rotationCentre_.
|
inline |
Translation vector for translational cyclic AMI.
Definition at line 106 of file cyclicAMIPolyPatchI.H.
References separationVector_.
|
virtual |
Transform patch-based positions from nbr side to this side.
Implements coupledPolyPatch.
Definition at line 1087 of file cyclicAMIPolyPatch.C.
References forAll, coupledPolyPatch::forwardT(), coupledPolyPatch::parallel(), coupledPolyPatch::ROTATIONAL, rotationCentre_, s(), coupledPolyPatch::separated(), coupledPolyPatch::separation(), and Foam::transform().
Referenced by resetAMI().


|
virtual |
Transform a patch-based position from nbr side to this side.
Implements coupledPolyPatch.
Definition at line 1122 of file cyclicAMIPolyPatch.C.
References coupledPolyPatch::forwardT(), coupledPolyPatch::parallel(), coupledPolyPatch::ROTATIONAL, rotationCentre_, s(), coupledPolyPatch::separated(), coupledPolyPatch::separation(), Foam::T(), and Foam::transform().

|
virtual |
Transform a patch-based position from this side to nbr side.
Definition at line 1160 of file cyclicAMIPolyPatch.C.
References coupledPolyPatch::parallel(), coupledPolyPatch::reverseT(), coupledPolyPatch::ROTATIONAL, rotationCentre_, s(), coupledPolyPatch::separated(), coupledPolyPatch::separation(), Foam::T(), and Foam::transform().
Referenced by pointFace(), and setAMIFaces().


|
virtual |
Transform a patch-based direction from this side to nbr side.
Definition at line 1198 of file cyclicAMIPolyPatch.C.
References coupledPolyPatch::parallel(), coupledPolyPatch::reverseT(), Foam::T(), and Foam::transform().
Referenced by particle< Type >::hitCyclicAMIPatch(), and pointFace().


| tmp< Field< Type > > interpolate | ( | const Field< Type > & | fld, |
| const UList< Type > & | defaultValues = UList< Type >() ) const |
Interpolate field.
References fld().
Referenced by cyclicAMIFvPatchField< Type >::evaluate(), cyclicACMIPointPatchField< Type >::swapAddSeparated(), cyclicAMIFvPatchField< Type >::updateInterfaceMatrix(), and cyclicAMIFvPatchField< Type >::updateInterfaceMatrix().


| tmp< Field< Type > > interpolate | ( | const tmp< Field< Type > > & | tFld, |
| const UList< Type > & | defaultValues = UList< Type >() ) const |
Interpolate tmp field.
| tmp< Field< Type > > interpolateUntransformed | ( | const Field< Type > & | fld, |
| const UList< Type > & | defaultValues ) const |
Interpolate without periodic.
References fld().
Referenced by interpolate().


| void interpolate | ( | const UList< Type > & | fld, |
| const CombineOp & | cop, | ||
| List< Type > & | result, | ||
| const UList< Type > & | defaultValues = UList<Type>() ) const |
Low-level interpolate List.
Commented out for now since called with non-primitives (e.g. wallPoint
from FaceCellWave) - missing Foam::transform, Foam::invTransform
Definition at line 503 of file cyclicAMIPolyPatchTemplates.C.
References AMI(), fld(), neighbPatch(), and owner().

| void initInterpolateUntransformed | ( | const Field< Type > & | fld, |
| labelRange & | sendRequests, | ||
| labelRange & | recvRequests, | ||
| PtrList< List< Type > > & | sendBuffers, | ||
| PtrList< List< Type > > & | recvBuffers, | ||
| labelRange & | sendRequests1, | ||
| labelRange & | recvRequests1, | ||
| PtrList< List< Type > > & | sendBuffers1, | ||
| PtrList< List< Type > > & | recvBuffers1 ) const |
Definition at line 169 of file cyclicAMIPolyPatchTemplates.C.
References AMI(), fld(), patchIdentifier::index(), neighbPatch(), and owner().
Referenced by initInterpolate().


| void initInterpolate | ( | const Field< Type > & | fld, |
| labelRange & | sendRequests, | ||
| labelRange & | recvRequests, | ||
| PtrList< List< Type > > & | sendBuffers, | ||
| PtrList< List< Type > > & | recvBuffers, | ||
| labelRange & | sendRequests1, | ||
| labelRange & | recvRequests1, | ||
| PtrList< List< Type > > & | sendBuffers1, | ||
| PtrList< List< Type > > & | recvBuffers1 ) const |
Definition at line 249 of file cyclicAMIPolyPatchTemplates.C.
References AMI(), cyclicAMIPolyPatch(), polyPatch::faceCentres(), fld(), initInterpolateUntransformed(), Foam::invTransform(), Foam::is_rotational_vectorspace_v, neighbPatch(), owner(), and R.
Referenced by cyclicAMIFvPatchField< Type >::initInterfaceMatrixUpdate(), and cyclicAMIFvPatchField< Type >::initInterfaceMatrixUpdate().


| tmp< Field< Type > > interpolate | ( | const Field< Type > & | localFld, |
| const labelRange & | requests, | ||
| const PtrList< List< Type > > & | recvBuffers, | ||
| const labelRange & | requests1, | ||
| const PtrList< List< Type > > & | recvBuffers1, | ||
| const UList< Type > & | defaultValues ) const |
|
virtual |
Calculate the patch geometry.
Implements coupledPolyPatch.
Definition at line 1218 of file cyclicAMIPolyPatch.C.
|
virtual |
Initialize ordering for primitivePatch. Does not refer to *this (except for name() and type() etc.).
Implements coupledPolyPatch.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 1231 of file cyclicAMIPolyPatch.C.
References pp().
Referenced by cyclicACMIPolyPatch::initOrder().


|
virtual |
Return new ordering for primitivePatch.
Ordering is -faceMap: for every face index of the new face -rotation:for every new face the clockwise shift of the original face. Return false if nothing changes (faceMap is identity, rotation is 0), true otherwise.
Implements coupledPolyPatch.
Reimplemented in cyclicACMIPolyPatch.
Definition at line 1239 of file cyclicAMIPolyPatch.C.
References Foam::faceMap(), pp(), and List< T >::setSize().
Referenced by cyclicACMIPolyPatch::order().


Return face index on neighbour patch which shares point p following trajectory vector n.
Definition at line 1257 of file cyclicAMIPolyPatch.C.
References AMI(), n, neighbPatch(), owner(), p, reverseTransformDirection(), and reverseTransformPosition().
Referenced by particle< Type >::hitCyclicACMIPatch(), and particle< Type >::hitCyclicAMIPatch().


|
virtual |
Write the polyPatch data as a dictionary.
Reimplemented from coupledPolyPatch.
Reimplemented in cyclicACMIPolyPatch, and cyclicPeriodicAMIPolyPatch.
Definition at line 1304 of file cyclicAMIPolyPatch.C.
References AMIPtr_, coupleGroup_, createAMIFaces_, fraction_, moveFaceCentres_, nbrPatchName_, coupledPolyPatch::NOORDERING, os(), periodicPatchName_, Foam::radToDeg(), coupledPolyPatch::ROTATIONAL, rotationAngle_, rotationAngleDefined_, rotationAxis_, rotationCentre_, separationVector_, srcFaceIDs_, surfDict_, tgtFaceIDs_, Foam::transform(), coupledPolyPatch::TRANSLATIONAL, coupledPolyPatch::write(), and Foam::Zero.
Referenced by cyclicACMIPolyPatch::write(), and cyclicPeriodicAMIPolyPatch::write().


| Foam::tmp< Foam::Field< Type > > interpolateUntransformed | ( | const Field< Type > & | fld, |
| const UList< Type > & | defaultValues ) const |
Definition at line 25 of file cyclicAMIPolyPatchTemplates.C.
References AMI(), fld(), AMIInterpolation::interpolateToSource(), AMIInterpolation::interpolateToTarget(), neighbPatch(), and owner().

| Foam::tmp< Foam::Field< Type > > interpolate | ( | const Field< Type > & | fld, |
| const UList< Type > & | defaultValues ) const |
Definition at line 43 of file cyclicAMIPolyPatchTemplates.C.
References Foam::abort(), cyclicAMIPolyPatch(), Foam::endl(), Foam::exit(), polyPatch::faceCentres(), Foam::FatalError, FatalErrorInFunction, fld(), forAll, Foam::gAverage(), interpolateUntransformed(), Foam::invTransform(), Foam::is_rotational_vectorspace_v, patchIdentifier::name(), name, neighbPatch(), Foam::nl, Foam::Pout, R, autoPtr< T >::reset(), UList< T >::size(), UList< face >::size(), and Foam::transform().

| Foam::tmp< Foam::Field< Type > > interpolate | ( | const tmp< Field< Type > > & | tFld, |
| const UList< Type > & | defaultValues ) const |
Definition at line 158 of file cyclicAMIPolyPatchTemplates.C.
References Foam::interpolate().

| Foam::tmp< Foam::Field< Type > > interpolate | ( | const Field< Type > & | localFld, |
| const labelRange & | requests, | ||
| const PtrList< List< Type > > & | recvBuffers, | ||
| const labelRange & | requests1, | ||
| const PtrList< List< Type > > & | recvBuffers1, | ||
| const UList< Type > & | defaultValues ) const |
Definition at line 321 of file cyclicAMIPolyPatchTemplates.C.
References AMI(), polyPatch::faceCentres(), fld(), patchIdentifier::index(), Foam::invTransform(), Foam::is_rotational_vectorspace_v, neighbPatch(), Foam::New(), owner(), UList< T >::size(), UList< face >::size(), Foam::transform(), AMIInterpolation::weightedSum(), and Foam::Zero.

|
mutableprotected |
Name of other half.
Definition at line 93 of file cyclicAMIPolyPatch.H.
Referenced by clone(), cyclicPeriodicAMIPolyPatch::clone(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), neighbPatchName(), and write().
|
protected |
Optional patchGroup to find neighbPatch.
Definition at line 98 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), neighbPatchName(), and write().
|
mutableprotected |
Index of other half.
Definition at line 103 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), and neighbPatchID().
|
protected |
Particle displacement fraction across AMI.
Definition at line 108 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), fraction(), and write().
|
protected |
Axis of rotation for rotational cyclics.
Definition at line 118 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), rotationAxis(), and write().
|
protected |
Point on axis of rotation for rotational cyclics.
Definition at line 123 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), reverseTransformPosition(), rotationCentre(), transformPosition(), transformPosition(), and write().
|
protected |
Flag to show whether the rotation angle is defined.
Definition at line 128 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), and write().
|
protected |
Rotation angle.
Definition at line 133 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), and write().
|
protected |
Translation vector.
Definition at line 141 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), separationVector(), and write().
|
protected |
Periodic patch name.
Definition at line 149 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), periodicPatchID(), and write().
|
mutableprotected |
Periodic patch.
Definition at line 154 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), and periodicPatchID().
|
mutableprotected |
AMI interpolation class.
Definition at line 160 of file cyclicAMIPolyPatch.H.
Referenced by AMI(), clearGeom(), cyclicACMIPolyPatch::cyclicACMIPolyPatch(), cyclicACMIPolyPatch::cyclicACMIPolyPatch(), cyclicACMIPolyPatch::cyclicACMIPolyPatch(), cyclicACMIPolyPatch::cyclicACMIPolyPatch(), cyclicACMIPolyPatch::cyclicACMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicPeriodicAMIPolyPatch::cyclicPeriodicAMIPolyPatch(), cyclicPeriodicAMIPolyPatch::cyclicPeriodicAMIPolyPatch(), cyclicPeriodicAMIPolyPatch::cyclicPeriodicAMIPolyPatch(), cyclicPeriodicAMIPolyPatch::cyclicPeriodicAMIPolyPatch(), cyclicPeriodicAMIPolyPatch::cyclicPeriodicAMIPolyPatch(), initGeometry(), initMovePoints(), resetAMI(), setAMIFaces(), and write().
|
protected |
Dictionary used during projection surface construction.
Definition at line 165 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), surfPtr(), and write().
|
mutableprotected |
Projection surface.
Definition at line 170 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), and surfPtr().
|
mutableprotected |
Flag to indicate that new AMI faces will created.
Set by the call to changeTopology
Definition at line 180 of file cyclicAMIPolyPatch.H.
Referenced by addAMIFaces(), changeTopology(), createAMIFaces(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicACMIPolyPatch::initGeometry(), cyclicACMIPolyPatch::initMovePoints(), initMovePoints(), initUpdateMesh(), removeAMIFaces(), resetAMI(), restoreScaledGeometry(), cyclicACMIPolyPatch::scalePatchFaceAreas(), setAMIFaces(), setTopology(), cyclicACMIPolyPatch::updateAreas(), and write().
|
protected |
Move face centres (default = no).
Definition at line 185 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), restoreScaledGeometry(), and write().
|
mutableprotected |
Definition at line 187 of file cyclicAMIPolyPatch.H.
Referenced by clearGeom(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), and updatingAMI().
|
protected |
Definition at line 189 of file cyclicAMIPolyPatch.H.
Referenced by addAMIFaces(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), removeAMIFaces(), resetAMI(), setAMIFaces(), and write().
|
protected |
Definition at line 191 of file cyclicAMIPolyPatch.H.
Referenced by addAMIFaces(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), removeAMIFaces(), resetAMI(), setAMIFaces(), and write().
|
mutableprotected |
Temporary storage for AMI face areas.
Definition at line 196 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), faceAreas0(), restoreScaledGeometry(), and setAMIFaces().
|
mutableprotected |
Temporary storage for AMI face centres.
Definition at line 201 of file cyclicAMIPolyPatch.H.
Referenced by cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), cyclicAMIPolyPatch(), faceCentres0(), restoreScaledGeometry(), and setAMIFaces().
|
protected |
Definition at line 204 of file cyclicAMIPolyPatch.H.
|
static |
Tolerance used e.g. for area calculations/limits.
Definition at line 481 of file cyclicAMIPolyPatch.H.
Referenced by cyclicACMIPolyPatch::mapCollocatedFaces(), cyclicACMIPolyPatch::newInternalProcFaces(), cyclicACMIPolyPatch::nonOverlapPatchID(), cyclicACMIPolyPatch::reportCoverage(), resetAMI(), cyclicACMIPolyPatch::scalePatchFaceAreas(), setAMIFaces(), cyclicACMIPolyPatch::tolerance(), and cyclicACMIPolyPatch::updateAreas().