Loading...
Searching...
No Matches
pressureInletVelocityFvPatchVectorField Class Reference

This velocity inlet boundary condition is applied to patches where the pressure is specified. The inflow velocity is obtained from the flux with a direction normal to the patch faces. More...

#include <pressureInletVelocityFvPatchVectorField.H>

Inheritance diagram for pressureInletVelocityFvPatchVectorField:
Collaboration diagram for pressureInletVelocityFvPatchVectorField:

Public Member Functions

 TypeName ("pressureInletVelocity")
 Runtime type information.
 pressureInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field.
 pressureInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 pressureInletVelocityFvPatchVectorField (const pressureInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given pressureInletVelocityFvPatchVectorField.
 pressureInletVelocityFvPatchVectorField (const pressureInletVelocityFvPatchVectorField &)
 Construct as copy.
 pressureInletVelocityFvPatchVectorField (const pressureInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Construct as copy setting internal field reference.
virtual tmp< fvPatchField< vector > > clone () const
 Return a clone.
virtual tmp< fvPatchField< vector > > clone (const DimensionedField< vector, volMesh > &iF) const
 Clone with an internal field reference.
virtual bool assignable () const
 True: this patch field is altered by assignment.
const wordrhoName () const
 Return the name of rho.
wordrhoName ()
 Return reference to the name of rho to allow adjustment.
const wordphiName () const
 Return the name of phi.
wordphiName ()
 Return reference to the name of phi to allow adjustment.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.
virtual void operator= (const fvPatchField< vector > &pvf)

Detailed Description

This velocity inlet boundary condition is applied to patches where the pressure is specified. The inflow velocity is obtained from the flux with a direction normal to the patch faces.

Usage
Example of the boundary condition specification:
<patchName>
{
    type            pressureInletVelocity;
    phi             phi;
    rho             rho;
    value           uniform 0;
}
Note
If reverse flow is possible or expected use the pressureInletOutletVelocityFvPatchVectorField condition instead.
See also
Foam::fixedValueFvPatchField Foam::pressureInletOutletVelocityFvPatchVectorField
Source files

Definition at line 72 of file pressureInletVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ pressureInletVelocityFvPatchVectorField() [1/5]

◆ pressureInletVelocityFvPatchVectorField() [2/5]

pressureInletVelocityFvPatchVectorField ( const fvPatch & p,
const DimensionedField< vector, volMesh > & iF,
const dictionary & dict )

Construct from patch, internal field and dictionary.

Definition at line 57 of file pressureInletVelocityFvPatchVectorField.C.

References dict, and p.

◆ pressureInletVelocityFvPatchVectorField() [3/5]

pressureInletVelocityFvPatchVectorField ( const pressureInletVelocityFvPatchVectorField & ptf,
const fvPatch & p,
const DimensionedField< vector, volMesh > & iF,
const fvPatchFieldMapper & mapper )

Construct by mapping given pressureInletVelocityFvPatchVectorField.

onto a new patch

Definition at line 42 of file pressureInletVelocityFvPatchVectorField.C.

References p, and pressureInletVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ pressureInletVelocityFvPatchVectorField() [4/5]

pressureInletVelocityFvPatchVectorField ( const pressureInletVelocityFvPatchVectorField & pivpvf)

Construct as copy.

Definition at line 71 of file pressureInletVelocityFvPatchVectorField.C.

References pressureInletVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ pressureInletVelocityFvPatchVectorField() [5/5]

pressureInletVelocityFvPatchVectorField ( const pressureInletVelocityFvPatchVectorField & pivpvf,
const DimensionedField< vector, volMesh > & iF )

Construct as copy setting internal field reference.

Definition at line 83 of file pressureInletVelocityFvPatchVectorField.C.

References pressureInletVelocityFvPatchVectorField().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "pressureInletVelocity" )

Runtime type information.

References pressureInletVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ clone() [1/2]

virtual tmp< fvPatchField< vector > > clone ( ) const
inlinevirtual

Return a clone.

Reimplemented in pressureInletUniformVelocityFvPatchVectorField.

Definition at line 151 of file pressureInletVelocityFvPatchVectorField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ clone() [2/2]

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

Clone with an internal field reference.

Reimplemented in pressureInletUniformVelocityFvPatchVectorField.

Definition at line 159 of file pressureInletVelocityFvPatchVectorField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ assignable()

virtual bool assignable ( ) const
inlinevirtual

True: this patch field is altered by assignment.

Reimplemented in pressureInletUniformVelocityFvPatchVectorField.

Definition at line 173 of file pressureInletVelocityFvPatchVectorField.H.

◆ rhoName() [1/2]

const word & rhoName ( ) const
inline

Return the name of rho.

Definition at line 181 of file pressureInletVelocityFvPatchVectorField.H.

◆ rhoName() [2/2]

word & rhoName ( )
inline

Return reference to the name of rho to allow adjustment.

Definition at line 189 of file pressureInletVelocityFvPatchVectorField.H.

◆ phiName() [1/2]

const word & phiName ( ) const
inline

Return the name of phi.

Definition at line 197 of file pressureInletVelocityFvPatchVectorField.H.

◆ phiName() [2/2]

word & phiName ( )
inline

Return reference to the name of phi to allow adjustment.

Definition at line 205 of file pressureInletVelocityFvPatchVectorField.H.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Reimplemented in pressureInletUniformVelocityFvPatchVectorField.

Definition at line 98 of file pressureInletVelocityFvPatchVectorField.C.

References Foam::dimMass, Foam::dimTime, Foam::dimVolume, Foam::exit(), Foam::FatalError, FatalErrorInFunction, n, and Foam::operator==().

Referenced by pressureInletUniformVelocityFvPatchVectorField::updateCoeffs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream & os) const
virtual

Write.

Definition at line 134 of file pressureInletVelocityFvPatchVectorField.C.

References os(), fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().

Here is the call graph for this function:

◆ operator=()

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

Reimplemented in pressureInletUniformVelocityFvPatchVectorField.

Definition at line 145 of file pressureInletVelocityFvPatchVectorField.C.

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

Here is the call graph for this function:

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