Velocity inlet/outlet boundary condition for patches where the pressure is specified. zero-gradient is applied for outflow (as defined by the flux) and for inflow the velocity is obtained from the flux with a direction normal to the patch faces. More...
#include <finiteVolume/pressureNormalInletOutletVelocityFvPatchVectorField.H>
Velocity inlet/outlet boundary condition for patches where the pressure is specified. zero-gradient is applied for outflow (as defined by the flux) and for inflow the velocity is obtained from the flux with a direction normal to the patch faces.
Definition at line 53 of file pressureNormalInletOutletVelocityFvPatchVectorField.H.
Public Member Functions | |
TypeName ("pressureNormalInletOutletVelocity") | |
Runtime type information. | |
pressureNormalInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. | |
pressureNormalInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. | |
pressureNormalInletOutletVelocityFvPatchVectorField (const pressureNormalInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. | |
pressureNormalInletOutletVelocityFvPatchVectorField (const pressureNormalInletOutletVelocityFvPatchVectorField &) | |
Construct as copy. | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. | |
pressureNormalInletOutletVelocityFvPatchVectorField (const pressureNormalInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference. | |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
Construct and return a clone setting internal field reference. | |
const word & | rhoName () const |
Return the name of rho. | |
word & | rhoName () |
Return reference to the name of rho to allow adjustment. | |
const word & | phiName () const |
Return the name of phi. | |
word & | phiName () |
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) |
pressureNormalInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 41 of file pressureNormalInletOutletVelocityFvPatchVectorField.C.
References Vector< scalar >::zero.
Referenced by pressureNormalInletOutletVelocityFvPatchVectorField::clone().
pressureNormalInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 73 of file pressureNormalInletOutletVelocityFvPatchVectorField.C.
References fvPatchField< Type >::operator=(), fvPatch::size(), and Vector< scalar >::zero.
pressureNormalInletOutletVelocityFvPatchVectorField | ( | const pressureNormalInletOutletVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
pressureNormalInletOutletVelocityFvPatchVectorField onto a new patch
Definition at line 58 of file pressureNormalInletOutletVelocityFvPatchVectorField.C.
pressureNormalInletOutletVelocityFvPatchVectorField | ( | const pressureNormalInletOutletVelocityFvPatchVectorField & | pivpvf | ) |
Construct as copy.
Definition at line 92 of file pressureNormalInletOutletVelocityFvPatchVectorField.C.
pressureNormalInletOutletVelocityFvPatchVectorField | ( | const pressureNormalInletOutletVelocityFvPatchVectorField & | pivpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 104 of file pressureNormalInletOutletVelocityFvPatchVectorField.C.
TypeName | ( | "pressureNormalInletOutletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 104 of file pressureNormalInletOutletVelocityFvPatchVectorField.H.
References pressureNormalInletOutletVelocityFvPatchVectorField::pressureNormalInletOutletVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 124 of file pressureNormalInletOutletVelocityFvPatchVectorField.H.
References pressureNormalInletOutletVelocityFvPatchVectorField::pressureNormalInletOutletVelocityFvPatchVectorField().
|
inline |
Return the name of rho.
Definition at line 144 of file pressureNormalInletOutletVelocityFvPatchVectorField.H.
|
inline |
Return reference to the name of rho to allow adjustment.
Definition at line 150 of file pressureNormalInletOutletVelocityFvPatchVectorField.H.
|
inline |
Return the name of phi.
Definition at line 156 of file pressureNormalInletOutletVelocityFvPatchVectorField.H.
|
inline |
Return reference to the name of phi to allow adjustment.
Definition at line 163 of file pressureNormalInletOutletVelocityFvPatchVectorField.H.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 117 of file pressureNormalInletOutletVelocityFvPatchVectorField.C.
References Foam::dimArea, Foam::dimDensity, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorIn, phi, and Foam::pos().
|
virtual |
Write.
Definition at line 164 of file pressureNormalInletOutletVelocityFvPatchVectorField.C.
References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().
|
virtual |
Definition at line 176 of file pressureNormalInletOutletVelocityFvPatchVectorField.C.