OpenFOAM logo
Open Source CFD Toolkit

coupledPolyPatch Class Reference

Inheritance diagram for coupledPolyPatch:

Inheritance graph
[legend]
Collaboration diagram for coupledPolyPatch:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TypeName ("coupled")
 Runtime type information.
 coupledPolyPatch (const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm)
 Construct from components.
 coupledPolyPatch (Istream &, const label index, const polyBoundaryMesh &)
 Construct from Istream.
 coupledPolyPatch (const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm)
 Construct from dictionary.
 coupledPolyPatch (const coupledPolyPatch &, const polyBoundaryMesh &)
 Construct as copy, resetting the boundary mesh.
 coupledPolyPatch (const coupledPolyPatch &pp, const polyBoundaryMesh &bm, const label index, const label newSize, const label newStart)
 Construct given the original patch and resetting the.
virtual ~coupledPolyPatch ()
virtual bool coupled () const
 Return true because this patch is coupled.
bool separated () const
 Are the coupled planes separated.
const vectorFieldseparation () const
 Return the offset (distance) vector from one side of the couple.
bool parallel () const
 Are the cyclic planes parallel.
const tensorFieldforwardT () const
 Return face transformation tensor.
const tensorFieldreverseT () const
 Return neighbour-cell transformation tensor.
virtual void initOrder (const primitivePatch &) const =0
 Initialize ordering for primitivePatch. Does not.
virtual bool order (const primitivePatch &, labelList &faceMap, labelList &rotation) const =0
 Return new ordering for primitivePatch.

Protected Member Functions

void calcTransformTensors (const vector &Cf, const vector &Cr, const vector &nf, const vector &nr) const
 Calculate the uniform transformation tensors.
void calcTransformTensors (const vectorField &Cf, const vectorField &Cr, const vectorField &nf, const vectorField &nr) const
 Calculate the transformation tensors.
virtual void initGeometry ()=0
 Initialise the calculation of the patch geometry.
virtual void calcGeometry ()=0
 Calculate the patch geometry.
virtual void initMovePoints (const pointField &)=0
 Initialise the patches for moving points.
virtual void movePoints (const pointField &)=0
 Correct patches after moving points.
bool inPatch (const labelList &oldToNew, const label oldFaceI) const
 Is face (in old face labels) in current patch?

Static Protected Member Functions

void writeOBJ (Ostream &os, const point &pt)
 Write point in OBJ format.
void writeOBJ (Ostream &, const pointField &, const labelList &)
 Write selected points in OBJ format.
void writeOBJ (Ostream &os, const point &p0, const point &p1, label &vertI)
 Write edge in OBJ format.
pointField calcFaceCentres (const faceList &, const pointField &)
 Calculate face centres.
pointField getAnchorPoints (const faceList &, const pointField &)
 Get f[0] for all faces.
label whichPatch (const labelList &patchStarts, const label faceI)
 Given list of starts of patches and a face label determine.
scalarField calcFaceTol (const faceList &faces, const pointField &points, const pointField &faceCentres)
 Calculate typical tolerance per face. Is currently max distance.
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.

Constructor & Destructor Documentation

coupledPolyPatch const word name,
const label  size,
const label  start,
const label  index,
const polyBoundaryMesh bm
 

Construct from components.

coupledPolyPatch Istream ,
const label  index,
const polyBoundaryMesh
 

Construct from Istream.

coupledPolyPatch const word name,
const dictionary dict,
const label  index,
const polyBoundaryMesh bm
 

Construct from dictionary.

coupledPolyPatch const coupledPolyPatch ,
const polyBoundaryMesh
 

Construct as copy, resetting the boundary mesh.

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

virtual ~coupledPolyPatch  )  [virtual]
 


Member Function Documentation

pointField calcFaceCentres const faceList ,
const pointField
[static, protected]
 

Calculate face centres.

scalarField calcFaceTol const faceList faces,
const pointField points,
const pointField faceCentres
[static, protected]
 

Calculate typical tolerance per face. Is currently max distance.

from face centre to any of the face vertices.

virtual void calcGeometry  )  [protected, pure virtual]
 

Calculate the patch geometry.

Reimplemented from polyPatch.

Implemented in cyclicPolyPatch, and processorPolyPatch.

void calcTransformTensors const vectorField Cf,
const vectorField Cr,
const vectorField nf,
const vectorField nr
const [protected]
 

Calculate the transformation tensors.

Reimplemented in processorPolyPatch.

void calcTransformTensors const vector Cf,
const vector Cr,
const vector nf,
const vector nr
const [protected]
 

Calculate the uniform transformation tensors.

virtual bool coupled  )  const [inline, virtual]
 

Return true because this patch is coupled.

Reimplemented from polyPatch.

Definition at line 238 of file coupledPolyPatch.H.

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

Here is the call graph for this function:

const tensorField& forwardT  )  const [inline]
 

Return face transformation tensor.

Definition at line 274 of file coupledPolyPatch.H.

pointField getAnchorPoints const faceList ,
const pointField
[static, protected]
 

Get f[0] for all faces.

label getRotation const pointField points,
const face f,
const point anchor,
const scalar  tol
[static, protected]
 

Get the number of vertices face f needs to be rotated such that.

its f[0] point aligns with given anchor (within tol).

virtual void initGeometry  )  [protected, pure virtual]
 

Initialise the calculation of the patch geometry.

Reimplemented from polyPatch.

Implemented in cyclicPolyPatch, and processorPolyPatch.

virtual void initMovePoints const pointField  )  [protected, pure virtual]
 

Initialise the patches for moving points.

Reimplemented from polyPatch.

Implemented in cyclicPolyPatch, and processorPolyPatch.

virtual void initOrder const primitivePatch  )  const [pure virtual]
 

Initialize ordering for primitivePatch. Does not.

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

Reimplemented from polyPatch.

Implemented in cyclicPolyPatch, and processorPolyPatch.

bool inPatch const labelList oldToNew,
const label  oldFaceI
const [protected]
 

Is face (in old face labels) in current patch?

virtual void movePoints const pointField  )  [protected, pure virtual]
 

Correct patches after moving points.

Reimplemented from polyPatch.

Implemented in cyclicPolyPatch, and processorPolyPatch.

virtual bool order const primitivePatch ,
labelList faceMap,
labelList rotation
const [pure 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.

Reimplemented from polyPatch.

Implemented in cyclicPolyPatch, and processorPolyPatch.

bool parallel  )  const [inline]
 

Are the cyclic planes parallel.

Definition at line 268 of file coupledPolyPatch.H.

References FatalErrorIn, and Foam::tensorField.

const tensorField& reverseT  )  const [inline]
 

Return neighbour-cell transformation tensor.

Definition at line 287 of file coupledPolyPatch.H.

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

bool separated  )  const [inline]
 

Are the coupled planes separated.

Definition at line 245 of file coupledPolyPatch.H.

const vectorField& separation  )  const [inline]
 

Return the offset (distance) vector from one side of the couple.

to the other

Definition at line 254 of file coupledPolyPatch.H.

References Foam::abort(), Foam::FatalError, FatalErrorIn, and Foam::tensorField.

Here is the call graph for this function:

TypeName "coupled"   ) 
 

Runtime type information.

label whichPatch const labelList patchStarts,
const label  faceI
[static, protected]
 

Given list of starts of patches and a face label determine.

the patch.

void writeOBJ Ostream os,
const point p0,
const point p1,
label vertI
[static, protected]
 

Write edge in OBJ format.

void writeOBJ Ostream ,
const pointField ,
const labelList
[static, protected]
 

Write selected points in OBJ format.

void writeOBJ Ostream os,
const point pt
[static, protected]
 

Write point in OBJ format.


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