FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

A pointPatch based on a polyPatch. More...

#include <OpenFOAM/facePointPatch.H>


Detailed Description

A pointPatch based on a polyPatch.

Source files

Definition at line 56 of file facePointPatch.H.

Inheritance diagram for facePointPatch:
Collaboration diagram for facePointPatch:

List of all members.

Public Member Functions

 TypeName (polyPatch::typeName_())
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, facePointPatch, polyPatch,(const polyPatch &patch, const pointBoundaryMesh &bm),(patch, bm))
 facePointPatch (const polyPatch &, const pointBoundaryMesh &)
 Construct from polyPatch.
virtual  ~facePointPatch ()
const polyPatch &  patch () const
 Return the polyPatch.
virtual const word &  name () const
 Return name.
virtual label  size () const
 Return size.
virtual label  index () const
 Return the index of this patch in the pointBoundaryMesh.
virtual const labelList &  meshPoints () const
 Return mesh points.
virtual const pointField &  localPoints () const
 Return pointField of points in patch.
virtual const vectorField &  pointNormals () const
 Return point unit normals.

Static Public Member Functions

static autoPtr< facePointPatch >  New (const polyPatch &, const pointBoundaryMesh &)
 Return a pointer to a new patch created on freestore from polyPatch.

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.

Protected Attributes

const polyPatch &  polyPatch_
 Reference to the underlying polyPatch.
labelList  meshPoints_
pointField  localPoints_
vectorField  pointNormals_

Friends

class  processorPointPatch
class  cyclicPointPatch

Constructor & Destructor Documentation

facePointPatch ( const polyPatch &   p,
const pointBoundaryMesh &   bm  
)

Construct from polyPatch.

Definition at line 86 of file facePointPatch.C.

virtual ~facePointPatch (  ) [inline, virtual]

Definition at line 153 of file facePointPatch.H.


Member Function Documentation

void initGeometry (  ) [protected, virtual]

Initialise the calculation of the patch geometry.

Reimplemented from pointPatch.

Definition at line 53 of file facePointPatch.C.

References facePointPatch::localPoints_, facePointPatch::meshPoints_, facePointPatch::pointNormals_, and List< T >::setSize().

Referenced by facePointPatch::initUpdateMesh().

void calcGeometry (  ) [protected, virtual]

Calculate the patch geometry.

Reimplemented from pointPatch.

Reimplemented in coupledFacePointPatch.

Definition at line 61 of file facePointPatch.C.

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

Initialise the patches for moving points.

Reimplemented from pointPatch.

Definition at line 65 of file facePointPatch.C.

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

Correct patches after moving points.

Reimplemented from pointPatch.

Definition at line 69 of file facePointPatch.C.

void initUpdateMesh (  ) [protected, virtual]

Initialise the update of the patch topology.

Reimplemented from pointPatch.

Definition at line 73 of file facePointPatch.C.

References facePointPatch::initGeometry().

void updateMesh (  ) [protected, virtual]

Update of the patch topology.

Reimplemented from pointPatch.

Definition at line 79 of file facePointPatch.C.

TypeName ( polyPatch::   typeName_()  )

Runtime type information.

declareRunTimeSelectionTable ( autoPtr   ,
facePointPatch   ,
polyPatch   ,
(const polyPatch &patch, const pointBoundaryMesh &bm)   ,
(patch, bm)    
)
autoPtr< facePointPatch > New ( const polyPatch &   patch,
const pointBoundaryMesh &   bm  
) [static]

Return a pointer to a new patch created on freestore from polyPatch.

Definition at line 36 of file newFacePointPatch.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, and Foam::Info.

const polyPatch& patch (  ) const [inline]

Return the polyPatch.

Definition at line 160 of file facePointPatch.H.

References facePointPatch::polyPatch_.

virtual const word& name (  ) const [inline, virtual]

Return name.

Implements pointPatch.

Definition at line 166 of file facePointPatch.H.

References patchIdentifier::name(), and facePointPatch::polyPatch_.

virtual label size (  ) const [inline, virtual]

Return size.

Implements pointPatch.

Definition at line 172 of file facePointPatch.H.

References facePointPatch::meshPoints(), and List< T >::size().

virtual label index (  ) const [inline, virtual]

Return the index of this patch in the pointBoundaryMesh.

Implements pointPatch.

Definition at line 178 of file facePointPatch.H.

References patchIdentifier::index(), and facePointPatch::polyPatch_.

const vectorField & pointNormals (  ) const [virtual]

Friends And Related Function Documentation

friend class processorPointPatch [friend]

Definition at line 111 of file facePointPatch.H.

friend class cyclicPointPatch [friend]

Definition at line 112 of file facePointPatch.H.


Member Data Documentation

pointField localPoints_ [mutable, protected]

Definition at line 71 of file facePointPatch.H.

Referenced by facePointPatch::initGeometry(), and facePointPatch::localPoints().

vectorField pointNormals_ [mutable, protected]

Definition at line 72 of file facePointPatch.H.

Referenced by facePointPatch::initGeometry(), and facePointPatch::pointNormals().


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