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

turbulentInletFvPatchField< Type > Class Template Reference

Generate a fluctuating inlet condition by adding a random component to a reference (mean) field. Input: referenceField Mean field. fluctuationScale RMS fluctuation, provided as the fraction of the mean field. alpha temporal correlation factor; the fraction of the new random component added to the previous time-step (defaults to 0.1). More...

Inheritance diagram for turbulentInletFvPatchField< Type >:
Collaboration diagram for turbulentInletFvPatchField< Type >:

List of all members.


Public Member Functions

 TypeName ("turbulentInlet")
 Runtime type information.
 turbulentInletFvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &)
 Construct from patch and internal field.
 turbulentInletFvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 turbulentInletFvPatchField (const turbulentInletFvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given turbulentInletFvPatchField.
 turbulentInletFvPatchField (const turbulentInletFvPatchField< Type > &)
 Construct as copy.
virtual tmp< fvPatchField< Type > > clone () const
 Construct and return a clone.
 turbulentInletFvPatchField (const turbulentInletFvPatchField< 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.
const Type & fluctuationScale () const
 Return the fluctuation scale.
Type & fluctuationScale ()
 Return reference to the fluctuation scale to allow adjustment.
const Field< Type > & referenceField () const
 Return the reference field.
Field< Type > & referenceField ()
 Return reference to the reference field to allow adjustment.
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 void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.

Detailed Description

template<class Type>
class Foam::turbulentInletFvPatchField< Type >

Generate a fluctuating inlet condition by adding a random component to a reference (mean) field. Input: referenceField Mean field. fluctuationScale RMS fluctuation, provided as the fraction of the mean field. alpha temporal correlation factor; the fraction of the new random component added to the previous time-step (defaults to 0.1).

Source files

Definition at line 56 of file turbulentInletFvPatchField.H.


Constructor & Destructor Documentation

turbulentInletFvPatchField ( const fvPatch &  p,
const DimensionedField< Type, volMesh > &  iF 
) [inline]

Construct from patch and internal field.

Definition at line 29 of file turbulentInletFvPatchField.C.

References p.

turbulentInletFvPatchField ( const fvPatch &  p,
const DimensionedField< Type, volMesh > &  iF,
const dictionary &  dict 
) [inline]

Construct from patch, internal field and dictionary.

Definition at line 63 of file turbulentInletFvPatchField.C.

turbulentInletFvPatchField ( const turbulentInletFvPatchField< Type > &  ptf,
const fvPatch &  p,
const DimensionedField< Type, volMesh > &  iF,
const fvPatchFieldMapper &  mapper 
) [inline]

Construct by mapping given turbulentInletFvPatchField.

onto a new patch

Definition at line 45 of file turbulentInletFvPatchField.C.

turbulentInletFvPatchField ( const turbulentInletFvPatchField< Type > &  ptf  )  [inline]

Construct as copy.

Definition at line 92 of file turbulentInletFvPatchField.C.

References fvPatchField< Type >::operator==().

Here is the call graph for this function:

turbulentInletFvPatchField ( const turbulentInletFvPatchField< Type > &  ptf,
const DimensionedField< Type, volMesh > &  iF 
) [inline]

Construct as copy setting internal field reference.

Definition at line 107 of file turbulentInletFvPatchField.C.


Member Function Documentation

TypeName ( "turbulentInlet"   ) 

Runtime type information.

virtual tmp<fvPatchField<Type> > clone (  )  const [inline, virtual]

Construct and return a clone.

Reimplemented from fixedValueFvPatchField< Type >.

Definition at line 111 of file turbulentInletFvPatchField.H.

virtual tmp<fvPatchField<Type> > clone ( const DimensionedField< Type, volMesh > &  iF  )  const [inline, virtual]

Construct and return a clone setting internal field reference.

Reimplemented from fixedValueFvPatchField< Type >.

Definition at line 128 of file turbulentInletFvPatchField.H.

const Type& fluctuationScale (  )  const [inline]

Return the fluctuation scale.

Definition at line 144 of file turbulentInletFvPatchField.H.

Type& fluctuationScale (  )  [inline]

Return reference to the fluctuation scale to allow adjustment.

Definition at line 150 of file turbulentInletFvPatchField.H.

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

Return the reference field.

Definition at line 156 of file turbulentInletFvPatchField.H.

Field<Type>& referenceField (  )  [inline]

Return reference to the reference field to allow adjustment.

Definition at line 162 of file turbulentInletFvPatchField.H.

void autoMap ( const fvPatchFieldMapper &  m  )  [inline, virtual]

Map (and resize as needed) from self given a mapping object.

Reimplemented from fvPatchField< Type >.

Definition at line 125 of file turbulentInletFvPatchField.C.

Referenced by turbulentInletFvPatchField< Type >::rmap().

Here is the caller graph for this function:

void rmap ( const fvPatchField< Type > &  ptf,
const labelList &  addr 
) [inline, virtual]

Reverse map the given fvPatchField onto this fvPatchField.

Reimplemented from fvPatchField< Type >.

Definition at line 136 of file turbulentInletFvPatchField.C.

References turbulentInletFvPatchField< Type >::autoMap(), and Field< Type >::autoMap().

Here is the call graph for this function:

void updateCoeffs (  )  [inline, virtual]

Update the coefficients associated with the patch field.

Reimplemented from fvPatchField< Type >.

Definition at line 151 of file turbulentInletFvPatchField.C.

void write ( Ostream &  os  )  const [inline, virtual]

Write.

Reimplemented from fixedValueFvPatchField< Type >.

Definition at line 193 of file turbulentInletFvPatchField.C.


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