FreeFOAM The Cross-Platform CFD Toolkit
facePointPatch Class Reference

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 polyPatchpatch () const
 Return the polyPatch.
virtual const wordname () const
 Return name.
virtual label size () const
 Return size.
virtual label index () const
 Return the index of this patch in the pointBoundaryMesh.
virtual const labelListmeshPoints () const
 Return mesh points.
virtual const pointFieldlocalPoints () const
 Return pointField of points in patch.
virtual const vectorFieldpointNormals () const
 Return point unit normals.
- Public Member Functions inherited from pointPatch
 TypeName ("basePatch")
 Runtime type information.
 pointPatch (const pointBoundaryMesh &bm)
virtual ~pointPatch ()
const pointBoundaryMeshboundaryMesh () const
 Return boundaryMesh reference.
virtual bool coupled () const
 Return true if this patch field is coupled.
virtual void applyConstraint (const label pointi, pointConstraint &) const
 Accumulate the effect of constraint direction of this patch.

Static Public Member Functions

static autoPtr< facePointPatchNew (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 polyPatchpolyPatch_
 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 ( )
inlinevirtual

Definition at line 153 of file facePointPatch.H.


Member Function Documentation

void initGeometry ( )
protectedvirtual

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 ( )
protectedvirtual

Calculate the patch geometry.

Reimplemented from pointPatch.

Reimplemented in coupledFacePointPatch.

Definition at line 61 of file facePointPatch.C.

void initMovePoints ( const pointField )
protectedvirtual

Initialise the patches for moving points.

Reimplemented from pointPatch.

Definition at line 65 of file facePointPatch.C.

void movePoints ( const pointField )
protectedvirtual

Correct patches after moving points.

Reimplemented from pointPatch.

Definition at line 69 of file facePointPatch.C.

void initUpdateMesh ( )
protectedvirtual

Initialise the update of the patch topology.

Reimplemented from pointPatch.

Definition at line 73 of file facePointPatch.C.

References facePointPatch::initGeometry().

void updateMesh ( )
protectedvirtual

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
inlinevirtual

Return name.

Implements pointPatch.

Definition at line 166 of file facePointPatch.H.

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

virtual label size ( ) const
inlinevirtual

Return size.

Implements pointPatch.

Definition at line 172 of file facePointPatch.H.

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

virtual label index ( ) const
inlinevirtual

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

labelList meshPoints_
mutableprotected
pointField localPoints_
mutableprotected

Definition at line 71 of file facePointPatch.H.

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

vectorField pointNormals_
mutableprotected

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: