OpenFOAM logo
Open Source CFD Toolkit

processorPolyPatch Class Reference

Inheritance diagram for processorPolyPatch:

Inheritance graph
[legend]
Collaboration diagram for processorPolyPatch:

Collaboration graph
[legend]
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 (Istream &is, const label index, const polyBoundaryMesh &)
 Construct from Istream.
 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 ?
void calcTransformTensors (const vectorField &Cf, const vectorField &Cr, const vectorField &nf, const vectorField &nr) const
 Force calculation of transformation tensors.
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 the.
const labelList & neighbEdges () const
 Return neighbour edge labels. This is for my local edge 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.
virtual void writeDict (Ostream &) const
 Write 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 initUpdateTopology ()
 Initialise the update of the patch topology.
virtual void updateMesh ()
 Update of the patch topology.

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.

processorPolyPatch (  Istream &  is,
const label  index,
const polyBoundaryMesh & 
) 
 

Construct from Istream.

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.

face list and boundary mesh information

virtual ~processorPolyPatch (   )  [virtual]
 


Member Function Documentation

void calcGeometry (   )  [protected, virtual]
 

Calculate the patch geometry.

Implements coupledPolyPatch.

void calcTransformTensors (  const vectorField &  Cf,
const vectorField &  Cr,
const vectorField &  nf,
const vectorField &  nr
)  const [inline]
 

Force calculation of transformation tensors.

Reimplemented from coupledPolyPatch.

Definition at line 249 of file processorPolyPatch.H.

References Foam::vectorField.

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 195 of file processorPolyPatch.H.

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 185 of file processorPolyPatch.H.

void initGeometry (   )  [protected, virtual]
 

Initialise the calculation of the patch geometry.

Implements coupledPolyPatch.

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

Initialise the patches for moving points.

Implements coupledPolyPatch.

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

Initialize ordering for primitivePatch. Does not.

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

Implements coupledPolyPatch.

virtual void initUpdateTopology (   )  [protected, virtual]
 

Initialise the update of the patch topology.

Reimplemented from polyPatch.

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

Correct patches after moving points.

Implements coupledPolyPatch.

int myProcNo (   )  const [inline]
 

Return processor number.

Definition at line 224 of file processorPolyPatch.H.

const labelList& neighbEdges (   )  const
 

Return neighbour edge labels. This is for my local edge the.

corresponding local edge on the other side. Call polyBoundaryMesh::setExtendedAddressing(true) on all processors before using this.

const vectorField& neighbFaceAreas (   )  const [inline]
 

Return processor-neighbbour patch face areas.

Definition at line 266 of file processorPolyPatch.H.

References Foam::labelList.

const vectorField& neighbFaceCellCentres (   )  const [inline]
 

Return processor-neighbbour patch neighbour cell centres.

Definition at line 272 of file processorPolyPatch.H.

References Foam::labelList, and Foam::primitivePatch.

const vectorField& neighbFaceCentres (   )  const [inline]
 

Return processor-neighbbour patch face centres.

Definition at line 260 of file processorPolyPatch.H.

References Foam::labelList.

bool neighbour (   )  const [inline]
 

Is the processor the patch neighbour ?

Definition at line 242 of file processorPolyPatch.H.

References Foam::vectorField.

const labelList& neighbPoints (   )  const
 

Return neighbour point labels. This is for my local point the.

corresponding local point on the other side. Call polyBoundaryMesh::setExtendedAddressing(true) on all processors before using this.

int neighbProcNo (   )  const [inline]
 

Return neigbour processor number.

Definition at line 230 of file processorPolyPatch.H.

References Foam::vectorField.

virtual bool order (  const primitivePatch &  ,
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.

bool owner (   )  const [inline]
 

Does the processor own the patch ?

Definition at line 236 of file processorPolyPatch.H.

References Foam::vectorField.

TypeName (  "processor"   ) 
 

Runtime type information.

virtual void updateMesh (   )  [protected, virtual]
 

Update of the patch topology.

Reimplemented from polyPatch.

virtual void write (  Ostream &   )  const [virtual]
 

Write.

Reimplemented from polyPatch.

virtual void writeDict (  Ostream &   )  const [virtual]
 

Write dictionary.

Reimplemented from polyPatch.


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org