This velocity inlet/outlet boundary condition is applied to pressure boundaries where the pressure is specified. A zero-gradient condition is applied for outflow (as defined by the flux); for inflow, the velocity is obtained from the patch-face normal component of the internal-cell value. More...
Public Member Functions | |
TypeName ("pressureInletOutletVelocity") | |
Runtime type information. More... | |
pressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
pressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
const word & | phiName () const |
Return the name of phi. More... | |
word & | phiName () |
Return reference to the name of phi to allow adjustment. More... | |
const vectorField & | tangentialVelocity () const |
Return the tangential velocity. More... | |
void | setTangentialVelocity (const vectorField &tangentialVelocity) |
Reset the tangential 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) |
Private Attributes | |
word | phiName_ |
Flux field name. More... | |
vectorField | tangentialVelocity_ |
Optional tangential velocity component. More... | |
This velocity inlet/outlet boundary condition is applied to pressure boundaries where the pressure is specified. A zero-gradient condition is applied for outflow (as defined by the flux); for inflow, the velocity is obtained from the patch-face normal component of the internal-cell value.
The tangential patch velocity can be optionally specified.
Patch usage
Property | Description | Required | Default value |
---|---|---|---|
phi | flux field name | no | phi |
tangentialVelocity | tangential velocity field | no |
Example of the boundary condition specification:
myPatch { type pressureInletOutletVelocity; phi phi; tangentialVelocity uniform (0 0 0); value uniform 0; }
Definition at line 97 of file pressureInletOutletVelocityFvPatchVectorField.H.
pressureInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 36 of file pressureInletOutletVelocityFvPatchVectorField.C.
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 71 of file pressureInletOutletVelocityFvPatchVectorField.C.
References dict, p, and vectorField().
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 52 of file pressureInletOutletVelocityFvPatchVectorField.C.
References pressureInletOutletVelocityFvPatchVectorField::tangentialVelocity_.
pressureInletOutletVelocityFvPatchVectorField | ( | const pressureInletOutletVelocityFvPatchVectorField & | pivpvf | ) |
Construct as copy.
Definition at line 101 of file pressureInletOutletVelocityFvPatchVectorField.C.
pressureInletOutletVelocityFvPatchVectorField | ( | const pressureInletOutletVelocityFvPatchVectorField & | pivpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 113 of file pressureInletOutletVelocityFvPatchVectorField.C.
TypeName | ( | "pressureInletOutletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented in rotatingPressureInletOutletVelocityFvPatchVectorField.
Definition at line 150 of file pressureInletOutletVelocityFvPatchVectorField.H.
References pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented in rotatingPressureInletOutletVelocityFvPatchVectorField.
Definition at line 167 of file pressureInletOutletVelocityFvPatchVectorField.H.
References pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField().
|
inline |
Return the name of phi.
Definition at line 183 of file pressureInletOutletVelocityFvPatchVectorField.H.
References pressureInletOutletVelocityFvPatchVectorField::phiName_.
|
inline |
Return reference to the name of phi to allow adjustment.
Definition at line 189 of file pressureInletOutletVelocityFvPatchVectorField.H.
References pressureInletOutletVelocityFvPatchVectorField::phiName_.
|
inline |
Return the tangential velocity.
Definition at line 195 of file pressureInletOutletVelocityFvPatchVectorField.H.
References pressureInletOutletVelocityFvPatchVectorField::tangentialVelocity_.
Referenced by rotatingPressureInletOutletVelocityFvPatchVectorField::calcTangentialVelocity(), and pressureInletOutletVelocityFvPatchVectorField::setTangentialVelocity().
void setTangentialVelocity | ( | const vectorField & | tangentialVelocity | ) |
Reset the tangential velocity.
Definition at line 127 of file pressureInletOutletVelocityFvPatchVectorField.C.
References n, pressureInletOutletVelocityFvPatchVectorField::tangentialVelocity(), and pressureInletOutletVelocityFvPatchVectorField::tangentialVelocity_.
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 136 of file pressureInletOutletVelocityFvPatchVectorField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 149 of file pressureInletOutletVelocityFvPatchVectorField.C.
References pressureInletOutletVelocityFvPatchVectorField::tangentialVelocity_.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 166 of file pressureInletOutletVelocityFvPatchVectorField.C.
References Foam::I, Foam::neg(), and Foam::sqr().
|
virtual |
Write.
Reimplemented in rotatingPressureInletOutletVelocityFvPatchVectorField.
Definition at line 184 of file pressureInletOutletVelocityFvPatchVectorField.C.
References fvPatchField::write().
|
virtual |
Definition at line 202 of file pressureInletOutletVelocityFvPatchVectorField.C.
References Foam::I, fvPatchField::operator=(), and Foam::transform().
|
private |
Flux field name.
Definition at line 104 of file pressureInletOutletVelocityFvPatchVectorField.H.
Referenced by pressureInletOutletVelocityFvPatchVectorField::phiName().
|
private |
Optional tangential velocity component.
Definition at line 107 of file pressureInletOutletVelocityFvPatchVectorField.H.
Referenced by pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField(), pressureInletOutletVelocityFvPatchVectorField::rmap(), pressureInletOutletVelocityFvPatchVectorField::setTangentialVelocity(), and pressureInletOutletVelocityFvPatchVectorField::tangentialVelocity().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.