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

fvPatch Class Reference

Foam::fvPatch. More...

Inheritance diagram for fvPatch:
Collaboration diagram for fvPatch:

List of all members.


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

Detailed Description

Foam::fvPatch.

Source files

Definition at line 57 of file fvPatch.H.


Member Typedef Documentation

Definition at line 96 of file fvPatch.H.


Constructor & Destructor Documentation

fvPatch ( const polyPatch &  p,
const fvBoundaryMesh &  bm 
)

Construct from polyPatch.

Definition at line 40 of file fvPatch.C.

~fvPatch (  )  [virtual]

Definition at line 49 of file fvPatch.C.


Member Function Documentation

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

Make patch weighting factors.

Reimplemented in coupledFvPatch, cyclicFvPatch, and processorFvPatch.

Definition at line 142 of file fvPatch.C.

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

Make patch face - neighbour cell distances.

Reimplemented in coupledFvPatch, cyclicFvPatch, and processorFvPatch.

Definition at line 148 of file fvPatch.C.

void initMovePoints (  )  [protected, virtual]

Initialise the patches for moving points.

Definition at line 154 of file fvPatch.C.

void movePoints (  )  [protected, virtual]

Correct patches after moving points.

Definition at line 158 of file fvPatch.C.

References fvPatch::delta(), and fvPatch::nf().

Here is the call graph for this function:

TypeName ( polyPatch::  typeName_()  ) 

Runtime type information.

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

Foam::autoPtr< Foam::fvPatch > New ( const polyPatch &  patch,
const fvBoundaryMesh &  bm 
) [static]

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

Definition at line 24 of file newFvPatch.C.

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

Referenced by fvBoundaryMesh::fvBoundaryMesh().

Here is the call graph for this function:

Here is the caller graph for this function:

const polyPatch& patch (  )  const [inline]

Return the polyPatch.

Definition at line 139 of file fvPatch.H.

Referenced by fvMeshSubset::interpolate(), and extendedUpwindCellToFaceStencil::weightedSum().

Here is the caller graph for this function:

const word& name (  )  const [inline]

Return name.

Definition at line 145 of file fvPatch.H.

bool coupled (  )  const [inline]

Return true if this patch is coupled.

Reimplemented in coupledFvPatch, and processorFvPatch.

Definition at line 157 of file fvPatch.H.

bool constraintType ( const word &  pt  )  [static]

Return true if the given type is a constraint type.

Definition at line 55 of file fvPatch.C.

wordList constraintTypes (  )  [static]

Return a list of all the constraint patch types.

Definition at line 61 of file fvPatch.C.

label index (  )  const [inline]

Return the index of this patch in the fvBoundaryMesh.

Definition at line 169 of file fvPatch.H.

const fvBoundaryMesh& boundaryMesh (  )  const [inline]

Return boundaryMesh reference.

Definition at line 175 of file fvPatch.H.

References patchIdentifier::index().

Referenced by fvPatchField< Type >::check(), and fvPatch::lookupPatchField().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Slice list to patch.

Definition at line 182 of file fvPatch.H.

Referenced by slicedFvPatchField< Type >::slicedFvPatchField(), and slicedFvsPatchField< Type >::slicedFvsPatchField().

Here is the caller graph for this function:

const unallocLabelList & faceCells (  )  const [virtual]

Return faceCells.

Reimplemented in coupledFvPatch, and emptyFvPatch.

Definition at line 87 of file fvPatch.C.

Referenced by fvPatch::patchInternalField().

Here is the caller graph for this function:

const vectorField & Cf (  )  const

Return face centres.

Definition at line 93 of file fvPatch.C.

tmp< vectorField > Cn (  )  const

Return neighbour cell centres.

Definition at line 99 of file fvPatch.C.

const vectorField & Sf (  )  const

Return face area vectors.

Definition at line 124 of file fvPatch.C.

const scalarField & magSf (  )  const

Return face area magnitudes.

Definition at line 130 of file fvPatch.C.

tmp< vectorField > nf (  )  const

Return face normals.

Definition at line 118 of file fvPatch.C.

Referenced by fvPatch::movePoints().

Here is the caller graph for this function:

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.

Definition at line 136 of file fvPatch.C.

Referenced by fvPatch::movePoints().

Here is the caller graph for this function:

const scalarField & weights (  )  const

Return patch weighting factors.

Definition at line 168 of file fvPatch.C.

Foam::tmp< Foam::Field< Type > > patchInternalField ( const UList< Type > &  f  )  const [inline]

Return given internal field next to patch as patch field.

Definition at line 24 of file fvPatchTemplates.C.

References fvPatch::faceCells(), forAll, and fvPatch::size().

Referenced by fvPatchField< Type >::autoMap(), and processorFvPatch::internalFieldTransfer().

Here is the call graph for this function:

Here is the caller graph for this function:

const GeometricField::PatchFieldType & patchField ( const GeometricField &  gf  )  const [inline]

Return the corresponding patchField of the named field.

Definition at line 44 of file fvPatchTemplates.C.

Referenced by fanFvPatchField< Type >::updateCoeffs().

Here is the caller graph for this function:

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

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

Definition at line 24 of file fvPatchFvMeshTemplates.C.

References fvPatch::boundaryMesh(), and fvBoundaryMesh::mesh().

Referenced by fanFvPatchField< Type >::updateCoeffs().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class fvBoundaryMesh [friend]

Definition at line 98 of file fvPatch.H.

friend class surfaceInterpolation [friend]

Reimplemented in coupledFvPatch.

Definition at line 99 of file fvPatch.H.


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