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

cyclicPolyPatch Class Reference

Cyclic plane patch. More...

Inheritance diagram for cyclicPolyPatch:
Collaboration diagram for cyclicPolyPatch:

List of all members.


Public Types

enum  transformType { UNKNOWN, ROTATIONAL, TRANSLATIONAL }

Public Member Functions

 TypeName ("cyclic")
 Runtime type information.
 cyclicPolyPatch (const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm)
 Construct from components.
 cyclicPolyPatch (const word &name, const dictionary &dict, const label index, const polyBoundaryMesh &bm)
 Construct from dictionary.
 cyclicPolyPatch (const cyclicPolyPatch &, const polyBoundaryMesh &)
 Construct as copy, resetting the boundary mesh.
 cyclicPolyPatch (const cyclicPolyPatch &pp, const polyBoundaryMesh &bm, const label index, const label newSize, const label newStart)
 Construct 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 ~cyclicPolyPatch ()
const edgeList & coupledPoints () const
 Return connected points (in patch local point indexing). Demand.
const edgeList & coupledEdges () const
 Return connected edges (in patch local edge indexing). Demand.
vector separation (const label facei) const
const tensor & transformT (const label facei) const
template<class T >
T transform (const T &t, const label facei) const
label transformLocalFace (const label facei) const
label transformGlobalFace (const label facei) const
transformType transform () const
 Type of transform.
const vector & rotationAxis () const
 Axis of rotation for rotational cyclics.
const point & rotationCentre () const
 point on axis of rotation for rotational cyclics
const vector & separationVector () const
 Translation vector for translational cyclics.
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.

Static Public Attributes

static const NamedEnum
< transformType, 3 > 
transformTypeNames

Protected Member Functions

virtual void initGeometry ()
 Initialise the calculation of the patch geometry.
virtual void calcGeometry ()
 Calculate the patch geometry.
virtual void initMovePoints (const pointField &)
 Initialise the patches for moving points.
virtual 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

Cyclic plane patch.

Note: morph patch face ordering uses geometric matching so with the following restrictions: -halves should be flat planes. -no rotation in patch plane

Uses a featureCos to find the two halves (or should be fully disconnected). Uses coupledPolyPatch::calcFaceTol to calculate tolerance per face which might need tweaking.

Switch on 'cyclicPolyPatch' debug flag to write .obj files to show the matching.

Source files

Definition at line 61 of file cyclicPolyPatch.H.


Member Enumeration Documentation

Enumerator:
UNKNOWN 
ROTATIONAL 
TRANSLATIONAL 

Definition at line 67 of file cyclicPolyPatch.H.


Constructor & Destructor Documentation

cyclicPolyPatch ( const word &  name,
const label  size,
const label  start,
const label  index,
const polyBoundaryMesh &  bm 
)

Construct from components.

Definition at line 722 of file cyclicPolyPatch.C.

Referenced by cyclicPolyPatch::clone().

Here is the caller graph for this function:

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

Construct from dictionary.

Definition at line 742 of file cyclicPolyPatch.C.

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

Construct as copy, resetting the boundary mesh.

Definition at line 786 of file cyclicPolyPatch.C.

cyclicPolyPatch ( const cyclicPolyPatch &  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

Definition at line 803 of file cyclicPolyPatch.C.

~cyclicPolyPatch (  )  [virtual]

Definition at line 824 of file cyclicPolyPatch.C.


Member Function Documentation

void initGeometry (  )  [protected, virtual]

Initialise the calculation of the patch geometry.

Implements coupledPolyPatch.

Definition at line 834 of file cyclicPolyPatch.C.

Referenced by cyclicPolyPatch::calcGeometry().

Here is the caller graph for this function:

void calcGeometry (  )  [protected, virtual]

Calculate the patch geometry.

Implements coupledPolyPatch.

Definition at line 839 of file cyclicPolyPatch.C.

References cyclicPolyPatch::initGeometry().

Referenced by cyclicPolyPatch::initMovePoints().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Initialise the patches for moving points.

Implements coupledPolyPatch.

Definition at line 845 of file cyclicPolyPatch.C.

References cyclicPolyPatch::calcGeometry().

Here is the call graph for this function:

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

Correct patches after moving points.

Implements coupledPolyPatch.

Definition at line 850 of file cyclicPolyPatch.C.

Referenced by cyclicPolyPatch::initUpdateMesh().

Here is the caller graph for this function:

void initUpdateMesh (  )  [protected, virtual]

Initialise the update of the patch topology.

Implements coupledPolyPatch.

Definition at line 856 of file cyclicPolyPatch.C.

References cyclicPolyPatch::movePoints().

Here is the call graph for this function:

void updateMesh (  )  [protected, virtual]

Update of the patch topology.

Implements coupledPolyPatch.

Definition at line 861 of file cyclicPolyPatch.C.

Referenced by cyclicPolyPatch::coupledPoints().

Here is the caller graph for this function:

TypeName ( "cyclic"   ) 

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 246 of file cyclicPolyPatch.H.

References cyclicPolyPatch::cyclicPolyPatch().

Here is the call graph for this function:

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 256 of file cyclicPolyPatch.H.

const Foam::edgeList & coupledPoints (  )  const

Return connected points (in patch local point indexing). Demand.

driven calculation. Does primitivePatch::clearOut after calculation!

Definition at line 869 of file cyclicPolyPatch.C.

References Foam::deleteDemandDrivenData(), and cyclicPolyPatch::updateMesh().

Referenced by syncTools::syncPointList().

Here is the call graph for this function:

Here is the caller graph for this function:

const Foam::edgeList & coupledEdges (  )  const

Return connected edges (in patch local edge indexing). Demand.

driven calculation. Does primitivePatch::clearOut after calculation!

Definition at line 953 of file cyclicPolyPatch.C.

Referenced by syncTools::syncEdgeList().

Here is the caller graph for this function:

vector separation ( const label  facei  )  const [inline]

Definition at line 293 of file cyclicPolyPatch.H.

References coupledPolyPatch::reverseT().

Here is the call graph for this function:

const tensor& transformT ( const label  facei  )  const [inline]

Definition at line 305 of file cyclicPolyPatch.H.

References coupledPolyPatch::parallel(), and cyclicPolyPatch::transform().

Here is the call graph for this function:

T transform ( const T &  t,
const label  facei 
) const [inline]

Definition at line 318 of file cyclicPolyPatch.H.

label transformLocalFace ( const label  facei  )  const [inline]

Definition at line 330 of file cyclicPolyPatch.H.

label transformGlobalFace ( const label  facei  )  const [inline]

Definition at line 342 of file cyclicPolyPatch.H.

transformType transform (  )  const [inline]

Type of transform.

Definition at line 355 of file cyclicPolyPatch.H.

Referenced by cyclicPolyPatch::transformT().

Here is the caller graph for this function:

const vector& rotationAxis (  )  const [inline]

Axis of rotation for rotational cyclics.

Definition at line 361 of file cyclicPolyPatch.H.

const point& rotationCentre (  )  const [inline]

point on axis of rotation for rotational cyclics

Definition at line 367 of file cyclicPolyPatch.H.

const vector& separationVector (  )  const [inline]

Translation vector for translational cyclics.

Definition at line 373 of file cyclicPolyPatch.H.

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 1081 of file cyclicPolyPatch.C.

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 1090 of file cyclicPolyPatch.C.

References Foam::abort(), polyPatch::boundaryMesh(), Foam::FatalError, FatalErrorIn, forAll, Foam::identity(), Foam::matchPoints(), mesh, patchIdentifier::name(), OSstream::name(), pFaces, Foam::Pout, SeriousErrorIn, and coupledPolyPatch::writeOBJ().

Here is the call graph for this function:

void write ( Ostream &  os  )  const [virtual]

Write the polyPatch data as a dictionary.

Reimplemented from polyPatch.

Definition at line 1581 of file cyclicPolyPatch.C.


Member Data Documentation


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