OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

fvPatch Class Reference

Inheritance diagram for fvPatch:

Inheritance graph
[legend]
Collaboration diagram for fvPatch:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 69 of file fvPatch.H.


Public Types

typedef fvBoundaryMesh BoundaryMesh

Public Member Functions

 TypeName (polyPatch::typeName_())
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, fvPatch, polyPatch,(const polyPatch &patch, const fvBoundaryMesh &bm),(patch, bm))
 fvPatch (const polyPatch &, const fvBoundaryMesh &)
 Construct from polyPatch.
virtual ~fvPatch ()
const polyPatch & patch () const
 Return the polyPatch.
const word & name () const
 Return name.
virtual label size () const
 Return size.
bool coupled () const
 Return true if this patch is coupled.
label index () const
 Return the index of this patch in the fvBoundaryMesh.
const fvBoundaryMesh & boundaryMesh () const
 Return boundaryMesh reference.
template<class T>
const List< T >::subList patchSlice (const List< T > &l) const
 Slice list to patch.
virtual const unallocLabelList & faceCells () const
 Return faceCells.
const vectorField & Cf () const
 Return face centres.
tmp< vectorField > Cn () const
 Return neighbour cell centres.
const vectorField & Sf () const
 Return face area vectors.
const scalarField & magSf () const
 Return face area magnitudes.
tmp< vectorField > nf () const
 Return face normals.
virtual tmp< vectorField > delta () const
 Return cell-centre to face-centre vector.
const scalarField & weights () const
 Return patch weighting factors.
const scalarField & deltaCoeffs () const
 Return the face - cell distance coeffient.
template<class Type>
tmp< Field< Type > > patchInternalField (const UList< Type > &) const
 Return given internal field next to patch as patch field.
template<class GeometricField, class Type>
const GeometricField::PatchFieldType & patchField (const GeometricField &) const
 Return the corresponding patchField of the named field.
template<class GeometricField, class Type>
const GeometricField::PatchFieldType & lookupPatchField (const word &name, const GeometricField *=NULL, const Type *=NULL) const
 Lookup and return the patchField of the named field from the.

Static Public Member Functions

static autoPtr< fvPatch > New (const polyPatch &, const fvBoundaryMesh &)
 Return a pointer to a new patch created on freestore from polyPatch.
static bool constraintType (const word &pt)
 Return true if the given type is a constraint type.
static wordList constraintTypes ()
 Return a list of all the constraint patch types.

Protected Member Functions

virtual void makeWeights (scalarField &) const
 Make patch weighting factors.
virtual void makeDeltaCoeffs (scalarField &) const
 Make patch face - neighbour cell distances.
virtual void initMovePoints ()
 Initialise the patches for moving points.
virtual void movePoints ()
 Correct patches after moving points.

Friends

class fvBoundaryMesh
class surfaceInterpolation

Member Typedef Documentation

Definition at line 108 of file fvPatch.H.


Constructor & Destructor Documentation

fvPatch ( const polyPatch &  ,
const fvBoundaryMesh &   
)

Construct from polyPatch.

virtual ~fvPatch (  )  [virtual]


Member Function Documentation

virtual void makeWeights ( scalarField &   )  const [protected, virtual]

Make patch weighting factors.

Reimplemented in coupledFvPatch, cyclicFvPatch, and processorFvPatch.

virtual void makeDeltaCoeffs ( scalarField &   )  const [protected, virtual]

Make patch face - neighbour cell distances.

Reimplemented in coupledFvPatch, cyclicFvPatch, and processorFvPatch.

virtual void initMovePoints (  )  [protected, virtual]

Initialise the patches for moving points.

virtual void movePoints (  )  [protected, virtual]

Correct patches after moving points.

TypeName ( polyPatch::  typeName_()  ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
fvPatch  ,
polyPatch  ,
(const polyPatch &patch, const fvBoundaryMesh &bm)  ,
(patch, bm)   
)

static autoPtr<fvPatch> New ( const polyPatch &  ,
const fvBoundaryMesh &   
) [static]

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

const polyPatch& patch (  )  const [inline]

Return the polyPatch.

Definition at line 151 of file fvPatch.H.

References patchIdentifier::name().

Here is the call graph for this function:

const word& name (  )  const [inline]

Return name.

Definition at line 157 of file fvPatch.H.

virtual label size (  )  const [inline, virtual]

Return size.

Reimplemented in emptyFvPatch.

Definition at line 163 of file fvPatch.H.

References polyPatch::coupled().

Referenced by fvPatch::boundaryMesh().

Here is the call graph for this function:

Here is the caller graph for this function:

bool coupled (  )  const [inline]

Return true if this patch is coupled.

Reimplemented in coupledFvPatch, and processorFvPatch.

Definition at line 169 of file fvPatch.H.

static bool constraintType ( const word &  pt  )  [static]

Return true if the given type is a constraint type.

static wordList constraintTypes (  )  [static]

Return a list of all the constraint patch types.

label index (  )  const [inline]

Return the index of this patch in the fvBoundaryMesh.

Definition at line 181 of file fvPatch.H.

const fvBoundaryMesh& boundaryMesh (  )  const [inline]

Return boundaryMesh reference.

Definition at line 187 of file fvPatch.H.

References fvPatch::size(), and polyPatch::start().

Here is the call graph for this function:

const List<T>::subList patchSlice ( const List< T > &  l  )  const [inline]

Slice list to patch.

Definition at line 194 of file fvPatch.H.

virtual const unallocLabelList& faceCells (  )  const [virtual]

Return faceCells.

Reimplemented in coupledFvPatch, and emptyFvPatch.

Referenced by coupledFvPatch::parallel().

Here is the caller graph for this function:

const vectorField& Cf (  )  const

Return face centres.

tmp<vectorField> Cn (  )  const

Return neighbour cell centres.

const vectorField& Sf (  )  const

Return face area vectors.

const scalarField& magSf (  )  const

Return face area magnitudes.

tmp<vectorField> nf (  )  const

Return face normals.

virtual tmp<vectorField> delta (  )  const [virtual]

Return cell-centre to face-centre vector.

except for coupled patches for which the cell-centre to coupled-cell-centre vector is returned

Reimplemented in coupledFvPatch, cyclicFvPatch, and processorFvPatch.

const scalarField& weights (  )  const

Return patch weighting factors.

const scalarField& deltaCoeffs (  )  const

Return the face - cell distance coeffient.

except for coupled patches for which the cell-centre to coupled-cell-centre distance coeffient is returned

tmp<Field<Type> > patchInternalField ( const UList< Type > &   )  const

Return given internal field next to patch as patch field.

const GeometricField::PatchFieldType& patchField ( const GeometricField &   )  const

Return the corresponding patchField of the named field.

const GeometricField::PatchFieldType& lookupPatchField ( const word &  name,
const GeometricField *  = NULL,
const Type *  = NULL 
) const

Lookup and return the patchField of the named field from the.

local objectRegistry. N.B. The dummy pointer arguments are used if this function is instantiated within a templated function to avoid a bug in gcc. See inletOutletFvPatchField.C and outletInletFvPatchField.C


Friends And Related Function Documentation

friend class fvBoundaryMesh [friend]

Definition at line 110 of file fvPatch.H.

friend class surfaceInterpolation [friend]

Reimplemented in coupledFvPatch.

Definition at line 111 of file fvPatch.H.


The documentation for this class was generated from the following file:
  • src/finiteVolume/fvMesh/fvPatches/fvPatch/fvPatch.H
Copyright © 2000-2007 OpenCFD Ltd