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

fvPatchField Class Template Reference

Inheritance diagram for fvPatchField:

Inheritance graph
[legend]
Collaboration diagram for fvPatchField:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Type>
class Foam::fvPatchField< Type >

Definition at line 82 of file fvPatchField.H.


Public Types

typedef fvPatch Patch

Public Member Functions

 TypeName ("fvPatchField")
 Runtime type information.
 declareRunTimeSelectionTable (tmp, fvPatchField, patch,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF),(p, iF))
 declareRunTimeSelectionTable (tmp, fvPatchField, patchMapper,(const fvPatchField< Type > &ptf, const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const fvPatchFieldMapper &m),(dynamic_cast< const fvPatchFieldType & >(ptf), p, iF, m))
 declareRunTimeSelectionTable (tmp, fvPatchField, dictionary,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const dictionary &dict),(p, iF, dict))
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &)
 Construct from patch and internal field.
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const Field< Type > &)
 Construct from patch and internal field and patch field.
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 fvPatchField (const fvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping the given fvPatchField onto a new patch.
 fvPatchField (const fvPatchField< Type > &)
 Construct as copy.
virtual tmp< fvPatchField<
Type > > 
clone () const
 Construct and return a clone.
 fvPatchField (const fvPatchField< Type > &, const DimensionedField< Type, volMesh > &)
 Construct as copy setting internal field reference.
virtual tmp< fvPatchField<
Type > > 
clone (const DimensionedField< Type, volMesh > &iF) const
 Construct and return a clone setting internal field reference.
virtual ~fvPatchField ()
const objectRegistry & db () const
 Return local objectRegistry.
const fvPatch & patch () const
 Return patch.
const DimensionedField< Type,
volMesh > & 
dimensionedInternalField () const
 Return dimensioned internal field reference.
const Field< Type > & internalField () const
 Return internal field reference.
virtual bool fixesValue () const
 Return true if this patch field fixes a value.
virtual bool coupled () const
 Return true if this patch field is coupled.
bool updated () const
 Return true if the boundary condition has already been updated.
virtual void autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object.
virtual void rmap (const fvPatchField< Type > &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField.
virtual tmp< Field< Type > > snGrad () const
 Return patch-normal gradient.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual tmp< Field< Type > > patchInternalField () const
 Return internal field next to patch as patch field.
virtual tmp< Field< Type > > patchNeighbourField () const
 Return patchField on the opposite patch of a coupled patch.
virtual void initEvaluate (const bool=false)
 Initialise the evaluation of the patch field.
virtual void evaluate ()
 Evaluate the patch field, sets Updated to false.
virtual tmp< Field< Type > > valueInternalCoeffs (const tmp< Field< scalar > > &) const
 Return the matrix diagonal coefficients corresponding to the.
virtual tmp< Field< Type > > valueBoundaryCoeffs (const tmp< Field< scalar > > &) const
 Return the matrix source coefficients corresponding to the.
virtual tmp< Field< Type > > gradientInternalCoeffs () const
 Return the matrix diagonal coefficients corresponding to the.
virtual tmp< Field< Type > > gradientBoundaryCoeffs () const
 Return the matrix source coefficients corresponding to the.
virtual void write (Ostream &) const
 Write.
void check (const fvPatchField< Type > &) const
 Check fvPatchField<Type> against given fvPatchField<Type>.
virtual void operator= (const UList< Type > &)
 Assignment from UList operator. Takes linear time.
virtual void operator= (const fvPatchField< Type > &)
virtual void operator+= (const fvPatchField< Type > &)
virtual void operator-= (const fvPatchField< Type > &)
virtual void operator *= (const fvPatchField< scalar > &)
virtual void operator/= (const fvPatchField< scalar > &)
virtual void operator+= (const Field< Type > &)
virtual void operator-= (const Field< Type > &)
virtual void operator *= (const Field< scalar > &)
virtual void operator/= (const Field< scalar > &)
virtual void operator= (const Type &)
 Assignment of all entries to the given value.
virtual void operator+= (const Type &)
virtual void operator-= (const Type &)
virtual void operator *= (const scalar)
virtual void operator/= (const scalar)
virtual void operator== (const fvPatchField< Type > &)
virtual void operator== (const Field< Type > &)
virtual void operator== (const Type &)

Static Public Member Functions

static tmp< fvPatchField<
Type > > 
New (const word &, const fvPatch &, const DimensionedField< Type, volMesh > &)
 Return a pointer to a new patchField created on freestore given.
static tmp< fvPatchField<
Type > > 
New (const fvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &)
 Return a pointer to a new patchField created on freestore from.
static tmp< fvPatchField<
Type > > 
New (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &)
 Return a pointer to a new patchField created on freestore.
template<class Type2>
static tmp< fvPatchField<
Type > > 
NewCalculatedType (const fvPatchField< Type2 > &)
 Return a pointer to a new calculatedFvPatchField created on.
static const word & calculatedType ()
 Return the type of the calculated for of fvPatchField.

Static Public Attributes

static int disallowDefaultFvPatchField
 Debug switch to disallow the use of.

Friends

Ostream & operator (Ostream &, const fvPatchField< Type > &)

Member Typedef Documentation

typedef fvPatch Patch

Definition at line 103 of file fvPatchField.H.


Constructor & Destructor Documentation

fvPatchField ( const fvPatch &  ,
const DimensionedField< Type, volMesh > &   
)

Construct from patch and internal field.

fvPatchField ( const fvPatch &  ,
const DimensionedField< Type, volMesh > &  ,
const Field< Type > &   
)

Construct from patch and internal field and patch field.

fvPatchField ( const fvPatch &  ,
const DimensionedField< Type, volMesh > &  ,
const dictionary &   
)

Construct from patch, internal field and dictionary.

fvPatchField ( const fvPatchField< Type > &  ,
const fvPatch &  ,
const DimensionedField< Type, volMesh > &  ,
const fvPatchFieldMapper &   
)

Construct by mapping the given fvPatchField onto a new patch.

fvPatchField ( const fvPatchField< Type > &   ) 

Construct as copy.

fvPatchField ( const fvPatchField< Type > &  ,
const DimensionedField< Type, volMesh > &   
)

Construct as copy setting internal field reference.

virtual ~fvPatchField (  )  [inline, virtual]


Member Function Documentation

TypeName ( "fvPatchField< Type >"   ) 

Runtime type information.

declareRunTimeSelectionTable ( tmp  ,
fvPatchField< Type >  ,
patch  ,
(const fvPatch &p, const DimensionedField< Type, volMesh > &iF)  ,
(p, iF)   
)

declareRunTimeSelectionTable ( tmp  ,
fvPatchField< Type >  ,
patchMapper  ,
(const fvPatchField< Type > &ptf, const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const fvPatchFieldMapper &m)  ,
(dynamic_cast< const fvPatchFieldType & >(ptf), p, iF, m)   
)

declareRunTimeSelectionTable ( tmp  ,
fvPatchField< Type >  ,
dictionary  ,
(const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const dictionary &dict)  ,
(p, iF, dict)   
)

static tmp<fvPatchField<Type> > New ( const word &  ,
const fvPatch &  ,
const DimensionedField< Type, volMesh > &   
) [static]

Return a pointer to a new patchField created on freestore given.

patch and internal field (does not set the patch field values)

static tmp<fvPatchField<Type> > New ( const fvPatchField< Type > &  ,
const fvPatch &  ,
const DimensionedField< Type, volMesh > &  ,
const fvPatchFieldMapper &   
) [static]

Return a pointer to a new patchField created on freestore from.

a given fvPatchField mapped onto a new patch

static tmp<fvPatchField<Type> > New ( const fvPatch &  ,
const DimensionedField< Type, volMesh > &  ,
const dictionary &   
) [static]

Return a pointer to a new patchField created on freestore.

from dictionary

static tmp<fvPatchField<Type> > NewCalculatedType ( const fvPatchField< Type2 > &   )  [static]

Return a pointer to a new calculatedFvPatchField created on.

freestore without setting patchField values

const objectRegistry& db (  )  const

Return local objectRegistry.

const fvPatch& patch (  )  const [inline]

Return patch.

Definition at line 277 of file fvPatchField.H.

const DimensionedField<Type, volMesh>& dimensionedInternalField (  )  const [inline]

Return dimensioned internal field reference.

Definition at line 284 of file fvPatchField.H.

const Field<Type>& internalField (  )  const [inline]

Return internal field reference.

Definition at line 290 of file fvPatchField.H.

static const word& calculatedType (  )  [static]

Return the type of the calculated for of fvPatchField.

virtual bool fixesValue (  )  const [inline, virtual]

Return true if this patch field fixes a value.

Needed to check if a level has to be specified while solving Poissons equations.

Reimplemented in calculatedFvPatchField, directionMixedFvPatchField, fixedValueFvPatchField, mixedFvPatchField, and slicedFvPatchField.

Definition at line 303 of file fvPatchField.H.

virtual bool coupled (  )  const [inline, virtual]

Return true if this patch field is coupled.

Reimplemented in coupledFvPatchField, and processorFvPatchField.

Definition at line 309 of file fvPatchField.H.

bool updated (  )  const [inline]

Return true if the boundary condition has already been updated.

Definition at line 315 of file fvPatchField.H.

virtual tmp<Field<Type> > patchInternalField (  )  const [virtual]

Return internal field next to patch as patch field.

Reimplemented in slicedFvPatchField.

virtual tmp<Field<Type> > patchNeighbourField (  )  const [inline, virtual]

Return patchField on the opposite patch of a coupled patch.

Reimplemented in coupledFvPatchField, slicedFvPatchField, cyclicFvPatchField, and processorFvPatchField.

Definition at line 355 of file fvPatchField.H.

virtual void initEvaluate ( const   bool = false  )  [inline, virtual]

Initialise the evaluation of the patch field.

Reimplemented in coupledFvPatchField, slicedFvPatchField, and processorFvPatchField.

Definition at line 362 of file fvPatchField.H.

References notImplemented, and Foam::type().

Here is the call graph for this function:

virtual tmp<Field<Type> > valueInternalCoeffs ( const tmp< Field< scalar > > &   )  const [inline, virtual]

Return the matrix diagonal coefficients corresponding to the.

evaluation of the value of this patchField with given weights

Reimplemented in calculatedFvPatchField, coupledFvPatchField, defaultFvPatchField, fixedGradientFvPatchField, fixedValueFvPatchField, mixedFvPatchField, slicedFvPatchField, transformFvPatchField, zeroGradientFvPatchField, emptyFvPatchField, and expDirectionMixedFvPatchField.

Definition at line 374 of file fvPatchField.H.

virtual tmp<Field<Type> > valueBoundaryCoeffs ( const tmp< Field< scalar > > &   )  const [inline, virtual]

Return the matrix source coefficients corresponding to the.

evaluation of the value of this patchField with given weights

Reimplemented in calculatedFvPatchField, coupledFvPatchField, defaultFvPatchField, fixedGradientFvPatchField, fixedValueFvPatchField, mixedFvPatchField, slicedFvPatchField, transformFvPatchField, zeroGradientFvPatchField, emptyFvPatchField, and expDirectionMixedFvPatchField.

Definition at line 391 of file fvPatchField.H.

virtual tmp<Field<Type> > gradientInternalCoeffs (  )  const [inline, virtual]

Return the matrix diagonal coefficients corresponding to the.

evaluation of the gradient of this patchField

Reimplemented in calculatedFvPatchField, coupledFvPatchField, defaultFvPatchField, fixedGradientFvPatchField, fixedValueFvPatchField, mixedFvPatchField, slicedFvPatchField, transformFvPatchField, zeroGradientFvPatchField, emptyFvPatchField, expDirectionMixedFvPatchField, and transformFvPatchField.

Definition at line 407 of file fvPatchField.H.

virtual tmp<Field<Type> > gradientBoundaryCoeffs (  )  const [inline, virtual]

Return the matrix source coefficients corresponding to the.

evaluation of the gradient of this patchField

Reimplemented in calculatedFvPatchField, coupledFvPatchField, defaultFvPatchField, fixedGradientFvPatchField, fixedValueFvPatchField, mixedFvPatchField, slicedFvPatchField, transformFvPatchField, zeroGradientFvPatchField, emptyFvPatchField, and expDirectionMixedFvPatchField.

Definition at line 417 of file fvPatchField.H.

void check ( const fvPatchField< Type > &   )  const

Check fvPatchField<Type> against given fvPatchField<Type>.

virtual void operator= ( const UList< Type > &   )  [virtual]

Assignment from UList operator. Takes linear time.

Reimplemented from Field.

Reimplemented in fixedValueFvPatchField, mixedFvPatchField, slicedFvPatchField, fixedNormalSlipFvPatchField, and partialSlipFvPatchField.

virtual void operator= ( const Type &   )  [virtual]

virtual void operator+= ( const Type &   )  [virtual]

virtual void operator-= ( const Type &   )  [virtual]

virtual void operator== ( const fvPatchField< Type > &   )  [virtual]

virtual void operator== ( const Field< Type > &   )  [virtual]

virtual void operator== ( const Type &   )  [virtual]


Friends And Related Function Documentation

Ostream& operator ( Ostream &  ,
const fvPatchField< Type > &   
) [friend]


Member Data Documentation

Debug switch to disallow the use of.

Definition at line 110 of file fvPatchField.H.


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