OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

processorPolyPatch Class Reference

Neighbour processor patch. More...

Inheritance diagram for processorPolyPatch:
Collaboration diagram for processorPolyPatch:

List of all members.


Public Member Functions

 TypeName ("processor")
 Runtime type information.
 processorPolyPatch (const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const int myProcNo, const int neighbProcNo)
 Construct from components.
 processorPolyPatch (const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &)
 Construct from dictionary.
 processorPolyPatch (const processorPolyPatch &, const polyBoundaryMesh &)
 Construct as copy, resetting the boundary mesh.
 processorPolyPatch (const processorPolyPatch &pp, const polyBoundaryMesh &bm, const label index, const label newSize, const label newStart)
 Construct as given the original patch and resetting the.
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.
virtual ~processorPolyPatch ()
int myProcNo () const
 Return processor number.
int neighbProcNo () const
 Return neigbour processor number.
bool owner () const
 Does the processor own the patch ?
bool neighbour () const
 Is the processor the patch neighbour ?
const vectorField & neighbFaceCentres () const
 Return processor-neighbbour patch face centres.
const vectorField & neighbFaceAreas () const
 Return processor-neighbbour patch face areas.
const vectorField & neighbFaceCellCentres () const
 Return processor-neighbbour patch neighbour cell centres.
const labelList & neighbPoints () const
 Return neighbour point labels. This is for my local point (-1 or).
const labelList & neighbEdges () const
 Return neighbour edge labels. This is for my local edge (-1 or) the.
virtual void initOrder (const primitivePatch &) const
 Initialize ordering for primitivePatch. Does not.
virtual bool order (const primitivePatch &, labelList &faceMap, labelList &rotation) const
 Return new ordering for primitivePatch.
virtual void write (Ostream &) const
 Write the polyPatch data as a dictionary.

Protected Member Functions

void initGeometry ()
 Initialise the calculation of the patch geometry.
void calcGeometry ()
 Calculate the patch geometry.
void initMovePoints (const pointField &)
 Initialise the patches for moving points.
void movePoints (const pointField &)
 Correct patches after moving points.
virtual void initUpdateMesh ()
 Initialise the update of the patch topology.
virtual void updateMesh ()
 Update of the patch topology.

Detailed Description

Neighbour processor patch.

Note: morph patch face ordering comes geometric or topological. Geometric: no cyclics allowed (assumes faces coincident) Topological: needs unmodified faces on both sides to correspond. Also needs at least one per connected patch area (so all patch faces can be visited from an unmodified face)

Source files

Definition at line 51 of file processorPolyPatch.H.


Constructor & Destructor Documentation

processorPolyPatch ( const word &  name,
const label  size,
const label  start,
const label  index,
const polyBoundaryMesh &  bm,
const int  myProcNo,
const int  neighbProcNo 
)

Construct from components.

Definition at line 41 of file processorPolyPatch.C.

References Foam::addToRunTimeSelectionTable(), and Foam::defineTypeNameAndDebug().

Referenced by processorPolyPatch::clone().

Here is the call graph for this function:

Here is the caller graph for this function:

processorPolyPatch ( const word &  name,
const dictionary &  dict,
const label  index,
const polyBoundaryMesh &  bm 
)

Construct from dictionary.

Definition at line 63 of file processorPolyPatch.C.

processorPolyPatch ( const processorPolyPatch &  pp,
const polyBoundaryMesh &  bm 
)

Construct as copy, resetting the boundary mesh.

Definition at line 82 of file processorPolyPatch.C.

processorPolyPatch ( const processorPolyPatch &  pp,
const polyBoundaryMesh &  bm,
const label  index,
const label  newSize,
const label  newStart 
)

Construct as given the original patch and resetting the.

face list and boundary mesh information

Definition at line 99 of file processorPolyPatch.C.

~processorPolyPatch (  )  [virtual]

Definition at line 120 of file processorPolyPatch.C.


Member Function Documentation

void initGeometry (  )  [protected, virtual]

Initialise the calculation of the patch geometry.

Implements coupledPolyPatch.

Definition at line 129 of file processorPolyPatch.C.

References Foam::deleteDemandDrivenData().

Referenced by processorPolyPatch::movePoints().

Here is the call graph for this function:

Here is the caller graph for this function:

void calcGeometry (  )  [protected, virtual]

Calculate the patch geometry.

Implements coupledPolyPatch.

Definition at line 148 of file processorPolyPatch.C.

void initMovePoints ( const pointField &  p  )  [protected, virtual]

Initialise the patches for moving points.

Implements coupledPolyPatch.

Definition at line 225 of file processorPolyPatch.C.

void movePoints ( const pointField &   )  [protected, virtual]

Correct patches after moving points.

Implements coupledPolyPatch.

Definition at line 232 of file processorPolyPatch.C.

References processorPolyPatch::initGeometry().

Here is the call graph for this function:

void initUpdateMesh (  )  [protected, virtual]

Initialise the update of the patch topology.

Implements coupledPolyPatch.

Definition at line 238 of file processorPolyPatch.C.

void updateMesh (  )  [protected, virtual]

Update of the patch topology.

Implements coupledPolyPatch.

Definition at line 295 of file processorPolyPatch.C.

TypeName ( "processor"   ) 

Runtime type information.

virtual autoPtr<polyPatch> clone ( const polyBoundaryMesh &  bm  )  const [inline, virtual]

Construct and return a clone, resetting the boundary mesh.

Reimplemented from polyPatch.

Definition at line 164 of file processorPolyPatch.H.

virtual autoPtr<polyPatch> clone ( const polyBoundaryMesh &  bm,
const label  index,
const label  newSize,
const label  newStart 
) const [inline, virtual]

Construct and return a clone, resetting the face list.

and boundary mesh

Reimplemented from polyPatch.

Definition at line 174 of file processorPolyPatch.H.

References processorPolyPatch::processorPolyPatch().

Here is the call graph for this function:

int myProcNo (  )  const [inline]

Return processor number.

Definition at line 203 of file processorPolyPatch.H.

Referenced by processorPointPatch::myProcNo(), and processorFvPatch::neighbProcNo().

Here is the caller graph for this function:

int neighbProcNo (  )  const [inline]

Return neigbour processor number.

Definition at line 209 of file processorPolyPatch.H.

Referenced by processorFvPatch::coupled(), processorPointPatch::neighbProcNo(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeList(), syncTools::syncFaceList(), and syncTools::syncPointList().

Here is the caller graph for this function:

bool owner (  )  const [inline]

Does the processor own the patch ?

Definition at line 215 of file processorPolyPatch.H.

bool neighbour (  )  const [inline]

Is the processor the patch neighbour ?

Definition at line 221 of file processorPolyPatch.H.

const vectorField& neighbFaceCentres (  )  const [inline]

Return processor-neighbbour patch face centres.

Definition at line 227 of file processorPolyPatch.H.

const vectorField& neighbFaceAreas (  )  const [inline]

Return processor-neighbbour patch face areas.

Definition at line 233 of file processorPolyPatch.H.

const vectorField& neighbFaceCellCentres (  )  const [inline]

Return processor-neighbbour patch neighbour cell centres.

Definition at line 239 of file processorPolyPatch.H.

const Foam::labelList & neighbPoints (  )  const

Return neighbour point labels. This is for my local point (-1 or).

the corresponding local point on the other side. It is -1 if there are multiple corresponding points on this or the other side (can happen for cyclics being converted into proc patches)

Definition at line 396 of file processorPolyPatch.C.

Referenced by syncTools::syncPointList().

Here is the caller graph for this function:

const Foam::labelList & neighbEdges (  )  const

Return neighbour edge labels. This is for my local edge (-1 or) the.

corresponding local edge on the other side. See above for -1 cause.

Definition at line 408 of file processorPolyPatch.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, and patchIdentifier::name().

Referenced by syncTools::syncEdgeList().

Here is the call graph for this function:

Here is the caller graph for this function:

void initOrder ( const primitivePatch &  pp  )  const [virtual]

Initialize ordering for primitivePatch. Does not.

refer to *this (except for name() and type() etc.)

Implements coupledPolyPatch.

Definition at line 420 of file processorPolyPatch.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, and patchIdentifier::name().

Here is the call graph for this function:

bool order ( const primitivePatch &  pp,
labelList &  faceMap,
labelList &  rotation 
) const [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.

Definition at line 476 of file processorPolyPatch.C.

void write ( Ostream &  os  )  const [virtual]

Write the polyPatch data as a dictionary.

Reimplemented from polyPatch.

Definition at line 748 of file processorPolyPatch.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd