Loading...
Searching...
No Matches
processorCyclicPointPatch Class Reference

Processor patch boundary needs to be such that the ordering of points in the patch is the same on both sides. More...

#include <processorCyclicPointPatch.H>

Inheritance diagram for processorCyclicPointPatch:
Collaboration diagram for processorCyclicPointPatch:

Public Member Functions

 TypeName (processorCyclicPolyPatch::typeName_())
 Runtime type information.
 processorCyclicPointPatch (const polyPatch &patch, const pointBoundaryMesh &bm)
 Construct from components.
 processorCyclicPointPatch (const processorCyclicPointPatch &patch, const pointBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const labelUList &reversePointMap)
 Construct given the original patch and a map.
virtual autoPtr< pointPatchclone (const pointBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const labelUList &reversePointMap) const
 Construct and return a subset clone, resetting the point list and boundary mesh.
virtual ~processorCyclicPointPatch ()
 Destructor.
virtual int tag () const
 Return message tag to use for communication.
const processorCyclicPolyPatchprocCyclicPolyPatch () const
 Return the underlying processorCyclicPolyPatch.
Public Member Functions inherited from processorPointPatch
 TypeName (processorPolyPatch::typeName_())
 Runtime type information.
 processorPointPatch (const polyPatch &patch, const pointBoundaryMesh &bm)
 Construct from components.
 processorPointPatch (const processorPointPatch &patch, const pointBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const labelUList &reversePointMap)
 Construct given the original patch and a map.
virtual ~processorPointPatch ()=default
 Destructor.
virtual label comm () const
 Return communicator used for communication.
virtual const wordconstraintType () const
 Return the constraint type this pointPatch implements.
int myProcNo () const noexcept
 Return processor number.
int neighbProcNo () const noexcept
 Return neighbour processor number.
bool owner () const
 Does the processor own the patch ?
bool neighbour () const
 Is the processor the patch neighbour ?
const processorPolyPatchprocPolyPatch () const noexcept
 Return the underlying processorPolyPatch.
const labelListreverseMeshPoints () const noexcept
 Return mesh points in the correct order for the receiving side.
Public Member Functions inherited from coupledFacePointPatch
 TypeName (coupledPolyPatch::typeName_())
 Runtime type information.
 coupledFacePointPatch (const polyPatch &patch, const pointBoundaryMesh &bm)
 Construct from components.
 coupledFacePointPatch (const coupledFacePointPatch &pp, const pointBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const labelUList &reversePointMap)
 Construct given the original patch and a map.
virtual ~coupledFacePointPatch ()=default
 Destructor.
Public Member Functions inherited from facePointPatch
 TypeName (polyPatch::typeName_())
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, facePointPatch, polyPatch,(const polyPatch &patch, const pointBoundaryMesh &bm),(patch, bm))
 facePointPatch (const polyPatch &p, const pointBoundaryMesh &pm)
 Construct from polyPatch and boundary mesh.
 facePointPatch (const facePointPatch &pp, const pointBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const labelUList &reversePointMap)
 Construct given the original patch and a map.
virtual ~facePointPatch ()=default
 Destructor.
virtual const polyPatchpatch () const
 Return the polyPatch.
virtual const wordname () const
 Return name.
virtual label size () const
 Return size.
virtual label index () const
 Return the index of this patch in the pointBoundaryMesh.
virtual bool coupled () const
 Return true if this patch field is coupled.
virtual const labelListmeshPoints () const
 Return mesh points.
virtual const pointFieldlocalPoints () const
 Return pointField of points in patch.
virtual const vectorFieldpointNormals () const
 Return point unit normals.
Public Member Functions inherited from pointPatch
 TypeName ("basePatch")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, pointPatch, dictionary,(const word &name, const dictionary &dict, const label index, const pointBoundaryMesh &bm, const word &patchType),(name, dict, index, bm, patchType))
 pointPatch (const word &name, const label index, const pointBoundaryMesh &bm, const word &physicalType, const wordList &inGroups)
 Construct from components.
 pointPatch (const word &name, const dictionary &dict, const label index, const pointBoundaryMesh &bm)
 Construct from dictionary.
 pointPatch (const pointPatch &pp, const pointBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const labelUList &reversePointMap)
 Construct given the original patch and a map.
virtual ~pointPatch ()=default
 Destructor.
const pointBoundaryMeshboundaryMesh () const
 Return boundaryMesh reference.
virtual void applyConstraint (const label pointi, pointConstraint &) const
 Accumulate the effect of constraint direction of this patch.
virtual void write (Ostream &) const
 Write the pointPatch data as a dictionary.
Public Member Functions inherited from patchIdentifier
 patchIdentifier (const patchIdentifier &)=default
 Copy construct.
 patchIdentifier (patchIdentifier &&)=default
 Move construct.
patchIdentifieroperator= (const patchIdentifier &)=default
 Copy assignment.
patchIdentifieroperator= (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 wordname () const noexcept
 The patch name.
wordname () 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 wordphysicalType () const noexcept
 The (optional) physical type of the patch.
wordphysicalType () noexcept
 Modifiable (optional) physical type of the patch.
const wordListinGroups () const noexcept
 The (optional) groups that the patch belongs to.
wordListinGroups () 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 coupledPointPatch
 TypeName (coupledPolyPatch::typeName_())
 Runtime type information.
 coupledPointPatch (const pointBoundaryMesh &bm)
 Construct from components.
virtual ~coupledPointPatch ()=default
 Destructor.

Additional Inherited Members

Static Public Member Functions inherited from facePointPatch
static autoPtr< facePointPatchNew (const polyPatch &, const pointBoundaryMesh &)
 Return a pointer to a new patch created on freestore from polyPatch.
Static Public Member Functions inherited from pointPatch
static autoPtr< pointPatchNew (const word &name, const dictionary &dict, const label index, const pointBoundaryMesh &)
 Return a pointer to a new patch created on freestore. Returns null if not found.
Static Public Member Functions inherited from patchIdentifier
static word defaultName (const label n=-1)
 Default patch name: "patch" or "patchN".
Protected Member Functions inherited from coupledFacePointPatch
 coupledFacePointPatch (const coupledFacePointPatch &)=delete
 No copy construct.
void operator= (const coupledFacePointPatch &)=delete
 No copy assignment.
Protected Member Functions inherited from facePointPatch
 facePointPatch (const facePointPatch &)=delete
 No copy construct.
void operator= (const facePointPatch &)=delete
 No copy assignment.
Protected Member Functions inherited from pointPatch
 pointPatch (const pointPatch &)=delete
 No copy construct.
void operator= (const pointPatch &)=delete
 No copy assignment.
Protected Member Functions inherited from coupledPointPatch
 coupledPointPatch (const coupledPointPatch &)=delete
 No copy construct.
void operator= (const coupledPointPatch &)=delete
 No copy assignment.
Protected Attributes inherited from facePointPatch
const polyPatchpolyPatch_
 Reference to the underlying polyPatch.

Detailed Description

Processor patch boundary needs to be such that the ordering of points in the patch is the same on both sides.

Looking at the creation of the faces on both sides of the processor patch they need to be identical on both sides with the normals pointing in opposite directions. This is achieved by calling the reverseFace function in the decomposition. It is therefore possible to re-create the ordering of patch points on the neighbour side by reversing all the patch faces of the owner.

Source files

Definition at line 55 of file processorCyclicPointPatch.H.

Constructor & Destructor Documentation

◆ processorCyclicPointPatch() [1/2]

processorCyclicPointPatch ( const polyPatch & patch,
const pointBoundaryMesh & bm )

Construct from components.

Definition at line 44 of file processorCyclicPointPatch.C.

References facePointPatch::patch(), and Foam::refCast().

Here is the call graph for this function:

◆ processorCyclicPointPatch() [2/2]

processorCyclicPointPatch ( const processorCyclicPointPatch & patch,
const pointBoundaryMesh & bm,
const label index,
const labelUList & mapAddressing,
const labelUList & reversePointMap )

Construct given the original patch and a map.

Definition at line 55 of file processorCyclicPointPatch.C.

References facePointPatch::index(), facePointPatch::patch(), and Foam::refCast().

Here is the call graph for this function:

◆ ~processorCyclicPointPatch()

~processorCyclicPointPatch ( )
virtual

Destructor.

Definition at line 71 of file processorCyclicPointPatch.C.

Member Function Documentation

◆ TypeName()

TypeName ( processorCyclicPolyPatch::typeName_() )

Runtime type information.

References facePointPatch::index(), and facePointPatch::patch().

Here is the call graph for this function:

◆ clone()

virtual autoPtr< pointPatch > clone ( const pointBoundaryMesh & bm,
const label index,
const labelUList & mapAddressing,
const labelUList & reversePointMap ) const
inlinevirtual

Construct and return a subset clone, resetting the point list and boundary mesh.

Reimplemented from processorPointPatch.

Definition at line 111 of file processorCyclicPointPatch.H.

References facePointPatch::index(), and autoPtr< T >::NewFrom().

Here is the call graph for this function:

◆ tag()

virtual int tag ( ) const
inlinevirtual

Return message tag to use for communication.

Reimplemented from processorPointPatch.

Definition at line 141 of file processorCyclicPointPatch.H.

◆ procCyclicPolyPatch()

const processorCyclicPolyPatch & procCyclicPolyPatch ( ) const
inline

Return the underlying processorCyclicPolyPatch.

Definition at line 149 of file processorCyclicPointPatch.H.


The documentation for this class was generated from the following files: