Public Member Functions | List of all members
fixedNormalInletOutletVelocityFvPatchVectorField Class Reference

This velocity inlet/outlet boundary condition combines a fixed normal component obtained from the "normalVelocity" patchField supplied with a fixed or zero-gradiented tangential component depending on the direction of the flow and the setting of "fixTangentialInflow": More...

Inheritance diagram for fixedNormalInletOutletVelocityFvPatchVectorField:
Inheritance graph
[legend]
Collaboration diagram for fixedNormalInletOutletVelocityFvPatchVectorField:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("fixedNormalInletOutletVelocity")
 Runtime type information. More...
 
 fixedNormalInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field. More...
 
 fixedNormalInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 fixedNormalInletOutletVelocityFvPatchVectorField (const fixedNormalInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 fixedNormalInletOutletVelocityFvPatchVectorField (const fixedNormalInletOutletVelocityFvPatchVectorField &)
 Construct as copy. More...
 
virtual tmp< fvPatchVectorFieldclone () const
 Construct and return a clone. More...
 
 fixedNormalInletOutletVelocityFvPatchVectorField (const fixedNormalInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
const wordphiName () const
 Return the name of phi. More...
 
wordphiName ()
 Return reference to the name of phi to allow adjustment. More...
 
Switch fixTangentialInflow () const
 
const fvPatchVectorFieldnormalVelocity () const
 Return the BC which provides the normal component of velocity. More...
 
virtual void autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object. More...
 
virtual void rmap (const fvPatchVectorField &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 
virtual void operator= (const fvPatchField< vector > &pvf)
 

Detailed Description

This velocity inlet/outlet boundary condition combines a fixed normal component obtained from the "normalVelocity" patchField supplied with a fixed or zero-gradiented tangential component depending on the direction of the flow and the setting of "fixTangentialInflow":

- Outflow: apply zero-gradient condition to tangential components


Patch usage

Property Description Required Default value
phi flux field name no phi
fixTangentialInflow If true fix the tangential component for inflow yes
normalVelocity patchField providing the normal velocity field yes

Example of the boundary condition specification:

    myPatch
    {
        type            fixedNormalInletOutletVelocity;

        fixTangentialInflow false;
        normalVelocity
        {
            type            oscillatingFixedValue;
            refValue        uniform (0 1 0);
            offset          (0 -1 0);
            amplitude       table
            (
                (   0     0)
                (   2 0.088)
                (   8 0.088)
            );
            frequency       constant 1;
        }

        value           uniform (0 0 0);
    }
Source files

Definition at line 118 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

Construct from patch, internal field and dictionary.

Definition at line 76 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.

References fixedNormalInletOutletVelocityFvPatchVectorField::fixedNormalInletOutletVelocityFvPatchVectorField(), fvPatch::size(), and vectorField().

Here is the call graph for this function:

Construct as copy.

Definition at line 99 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.

References fixedNormalInletOutletVelocityFvPatchVectorField::fixedNormalInletOutletVelocityFvPatchVectorField().

Here is the call graph for this function:

Construct as copy setting internal field reference.

Definition at line 112 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.

References fixedNormalInletOutletVelocityFvPatchVectorField::autoMap().

Here is the call graph for this function:

Member Function Documentation

TypeName ( "fixedNormalInletOutletVelocity"  )

Runtime type information.

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 174 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.

References fixedNormalInletOutletVelocityFvPatchVectorField::fixedNormalInletOutletVelocityFvPatchVectorField().

Here is the call graph for this function:

virtual tmp<fvPatchVectorField> clone ( const DimensionedField< vector, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 191 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.

References fixedNormalInletOutletVelocityFvPatchVectorField::fixedNormalInletOutletVelocityFvPatchVectorField().

Here is the call graph for this function:

const word& phiName ( ) const
inline

Return the name of phi.

Definition at line 207 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.

word& phiName ( )
inline

Return reference to the name of phi to allow adjustment.

Definition at line 213 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.

Switch fixTangentialInflow ( ) const
inline
const fvPatchVectorField& normalVelocity ( ) const
inline
void autoMap ( const fvPatchFieldMapper m)
virtual

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

Definition at line 127 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.

References fixedNormalInletOutletVelocityFvPatchVectorField::rmap().

Referenced by fixedNormalInletOutletVelocityFvPatchVectorField::fixedNormalInletOutletVelocityFvPatchVectorField(), and fixedNormalInletOutletVelocityFvPatchVectorField::normalVelocity().

Here is the call graph for this function:

Here is the caller graph for this function:

void rmap ( const fvPatchVectorField ptf,
const labelList addr 
)
virtual
void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 151 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.

References Foam::I, Foam::neg(), fixedNormalInletOutletVelocityFvPatchVectorField::normalVelocity(), Foam::sqr(), and fixedNormalInletOutletVelocityFvPatchVectorField::write().

Referenced by fixedNormalInletOutletVelocityFvPatchVectorField::normalVelocity().

Here is the call graph for this function:

Here is the caller graph for this function:

void write ( Ostream os) const
virtual
void operator= ( const fvPatchField< vector > &  pvf)
virtual

Definition at line 197 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.

References Foam::I, Foam::makePatchTypeField(), fvPatchField< Type >::operator=(), and Foam::transform().

Referenced by fixedNormalInletOutletVelocityFvPatchVectorField::normalVelocity().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: