Velocity inlet/outlet boundary condition patches for 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 patch-face normal component of the internal-cell value. More...
#include <finiteVolume/pressureInletOutletVelocityFvPatchVectorField.H>
Velocity inlet/outlet boundary condition patches for 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 patch-face normal component of the internal-cell value.
Definition at line 53 of file pressureInletOutletVelocityFvPatchVectorField.H.
Public Member Functions | |
TypeName ("pressureInletOutletVelocity") | |
Runtime type information.
| |
pressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field.
| |
pressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary.
| |
pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given.
| |
pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &) | |
Construct as copy.
| |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone.
| |
pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &, 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 & | phiName () const |
Return the name of phi.
| |
word & | phiName () |
Return reference to the name of phi to allow adjustment.
| |
const vectorField & | tangentialVelocity () const |
Return the tangential velocity.
| |
void | setTangentialVelocity (const vectorField &tangentialVelocity) |
Reset the tangential velocity.
| |
virtual void | autoMap (const fvPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object.
| |
virtual void | rmap (const fvPatchVectorField &, 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.
| |
virtual void | operator= (const fvPatchField< vector > &pvf) |
pressureInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 40 of file pressureInletOutletVelocityFvPatchVectorField.C.
References SymmTensor< Cmpt >::zero, and Vector< Cmpt >::zero.
Referenced by pressureInletOutletVelocityFvPatchVectorField::clone().
pressureInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 75 of file pressureInletOutletVelocityFvPatchVectorField.C.
References dictionary::found(), fvPatchField< Type >::operator=(), fvPatch::size(), SymmTensor< Cmpt >::zero, and Vector< Cmpt >::zero.
pressureInletOutletVelocityFvPatchVectorField | ( | const pressureInletOutletVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
pressureInletOutletVelocityFvPatchVectorField onto a new patch
Definition at line 56 of file pressureInletOutletVelocityFvPatchVectorField.C.
References List< T >::size().
pressureInletOutletVelocityFvPatchVectorField | ( | const pressureInletOutletVelocityFvPatchVectorField & | pivpvf ) |
Construct as copy.
Definition at line 105 of file pressureInletOutletVelocityFvPatchVectorField.C.
pressureInletOutletVelocityFvPatchVectorField | ( | const pressureInletOutletVelocityFvPatchVectorField & | pivpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 117 of file pressureInletOutletVelocityFvPatchVectorField.C.
TypeName | ( | "pressureInletOutletVelocity" | ) |
Runtime type information.
virtual tmp<fvPatchVectorField> clone | ( | ) | const [inline, virtual]
|
Construct and return a clone.
Reimplemented in rotatingPressureInletOutletVelocityFvPatchVectorField.
Definition at line 105 of file pressureInletOutletVelocityFvPatchVectorField.H.
References pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField().
virtual tmp<fvPatchVectorField> clone | ( | const DimensionedField< vector, volMesh > & | iF ) | const [inline, virtual]
|
Construct and return a clone setting internal field reference.
Reimplemented in rotatingPressureInletOutletVelocityFvPatchVectorField.
Definition at line 122 of file pressureInletOutletVelocityFvPatchVectorField.H.
References pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField().
const word& phiName | ( | ) | const [inline]
|
Return the name of phi.
Definition at line 138 of file pressureInletOutletVelocityFvPatchVectorField.H.
Referenced by rotatingPressureInletOutletVelocityFvPatchVectorField::write().
word& phiName | ( | ) | [inline]
|
Return reference to the name of phi to allow adjustment.
Definition at line 144 of file pressureInletOutletVelocityFvPatchVectorField.H.
const vectorField& tangentialVelocity | ( | ) | const [inline]
|
Return the tangential velocity.
Definition at line 150 of file pressureInletOutletVelocityFvPatchVectorField.H.
Referenced by pressureInletOutletVelocityFvPatchVectorField::setTangentialVelocity().
void setTangentialVelocity | ( | const vectorField & | tangentialVelocity ) |
Reset the tangential velocity.
Definition at line 131 of file pressureInletOutletVelocityFvPatchVectorField.C.
References pressureInletOutletVelocityFvPatchVectorField::tangentialVelocity().
void autoMap | ( | const fvPatchFieldMapper & | m ) | [virtual]
|
Map (and resize as needed) from self given a mapping object.
Definition at line 140 of file pressureInletOutletVelocityFvPatchVectorField.C.
void rmap | ( | const fvPatchVectorField & | ptf, |
const labelList & | addr | ||
) | [virtual]
|
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 153 of file pressureInletOutletVelocityFvPatchVectorField.C.
References pressureInletOutletVelocityFvPatchVectorField::rmap().
Referenced by pressureInletOutletVelocityFvPatchVectorField::rmap().
void updateCoeffs | ( | ) | [virtual]
|
Update the coefficients associated with the patch field.
Definition at line 170 of file pressureInletOutletVelocityFvPatchVectorField.C.
References Foam::I, Foam::neg(), and Foam::sqr().
void write | ( | Ostream & | os ) | const [virtual]
|
Write.
Reimplemented in rotatingPressureInletOutletVelocityFvPatchVectorField.
Definition at line 187 of file pressureInletOutletVelocityFvPatchVectorField.C.
References token::END_STATEMENT, Foam::nl, List< T >::size(), Field< Type >::writeEntry(), and Ostream::writeKeyword().
void operator= | ( | const fvPatchField< vector > & | pvf ) | [virtual]
|
Definition at line 205 of file pressureInletOutletVelocityFvPatchVectorField.C.
References Foam::I, fvPatchField< Type >::operator=(), and Foam::transform().