Velocity inlet/outlet boundary condition for pressure boundary 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 the specified `inletDirection'. More...
#include <finiteVolume/pressureDirectedInletOutletVelocityFvPatchVectorField.H>
Velocity inlet/outlet boundary condition for pressure boundary 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 the specified `inletDirection'.
Definition at line 53 of file pressureDirectedInletOutletVelocityFvPatchVectorField.H.
Public Member Functions | |
TypeName ("pressureDirectedInletOutletVelocity") | |
Runtime type information.
| |
pressureDirectedInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field.
| |
pressureDirectedInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary.
| |
pressureDirectedInletOutletVelocityFvPatchVectorField (const pressureDirectedInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given.
| |
pressureDirectedInletOutletVelocityFvPatchVectorField (const pressureDirectedInletOutletVelocityFvPatchVectorField &) | |
Construct as copy.
| |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone.
| |
pressureDirectedInletOutletVelocityFvPatchVectorField (const pressureDirectedInletOutletVelocityFvPatchVectorField &, 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 | 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) |
pressureDirectedInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 41 of file pressureDirectedInletOutletVelocityFvPatchVectorField.C.
References Vector< Cmpt >::zero.
Referenced by pressureDirectedInletOutletVelocityFvPatchVectorField::clone().
pressureDirectedInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 75 of file pressureDirectedInletOutletVelocityFvPatchVectorField.C.
References fvPatchField< Type >::operator=(), fvPatch::size(), and Vector< Cmpt >::zero.
pressureDirectedInletOutletVelocityFvPatchVectorField | ( | const pressureDirectedInletOutletVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
pressureDirectedInletOutletVelocityFvPatchVectorField onto a new patch
Definition at line 59 of file pressureDirectedInletOutletVelocityFvPatchVectorField.C.
pressureDirectedInletOutletVelocityFvPatchVectorField | ( | const pressureDirectedInletOutletVelocityFvPatchVectorField & | pivpvf ) |
Construct as copy.
Definition at line 95 of file pressureDirectedInletOutletVelocityFvPatchVectorField.C.
pressureDirectedInletOutletVelocityFvPatchVectorField | ( | const pressureDirectedInletOutletVelocityFvPatchVectorField & | pivpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 108 of file pressureDirectedInletOutletVelocityFvPatchVectorField.C.
TypeName | ( | "pressureDirectedInletOutletVelocity" | ) |
Runtime type information.
virtual tmp<fvPatchVectorField> clone | ( | ) | const [inline, virtual]
|
Construct and return a clone.
Definition at line 105 of file pressureDirectedInletOutletVelocityFvPatchVectorField.H.
virtual tmp<fvPatchVectorField> clone | ( | const DimensionedField< vector, volMesh > & | iF ) | const [inline, virtual]
|
Construct and return a clone setting internal field reference.
Definition at line 125 of file pressureDirectedInletOutletVelocityFvPatchVectorField.H.
const word& rhoName | ( | ) | const [inline]
|
Return the name of rho.
Definition at line 145 of file pressureDirectedInletOutletVelocityFvPatchVectorField.H.
word& rhoName | ( | ) | [inline]
|
Return reference to the name of rho to allow adjustment.
Definition at line 151 of file pressureDirectedInletOutletVelocityFvPatchVectorField.H.
const word& phiName | ( | ) | const [inline]
|
Return the name of phi.
Definition at line 157 of file pressureDirectedInletOutletVelocityFvPatchVectorField.H.
word& phiName | ( | ) | [inline]
|
Return reference to the name of phi to allow adjustment.
Definition at line 163 of file pressureDirectedInletOutletVelocityFvPatchVectorField.H.
void autoMap | ( | const fvPatchFieldMapper & | m ) | [virtual]
|
Map (and resize as needed) from self given a mapping object.
Definition at line 123 of file pressureDirectedInletOutletVelocityFvPatchVectorField.C.
void rmap | ( | const fvPatchVectorField & | ptf, |
const labelList & | addr | ||
) | [virtual]
|
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 133 of file pressureDirectedInletOutletVelocityFvPatchVectorField.C.
References pressureDirectedInletOutletVelocityFvPatchVectorField::rmap().
Referenced by pressureDirectedInletOutletVelocityFvPatchVectorField::rmap().
void updateCoeffs | ( | ) | [virtual]
|
Update the coefficients associated with the patch field.
Definition at line 148 of file pressureDirectedInletOutletVelocityFvPatchVectorField.C.
References Foam::dimArea, Foam::dimDensity, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorIn, phi, and Foam::pos().
void write | ( | Ostream & | os ) | const [virtual]
|
Write.
Definition at line 195 of file pressureDirectedInletOutletVelocityFvPatchVectorField.C.
References token::END_STATEMENT, Foam::nl, Field< Type >::writeEntry(), and Ostream::writeKeyword().
void operator= | ( | const fvPatchField< vector > & | pvf ) | [virtual]
|
Definition at line 214 of file pressureDirectedInletOutletVelocityFvPatchVectorField.C.