This velocity inlet/outlet boundary condition is applied to velocity 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... | |
pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchField< vector > > | clone () const |
Return a clone. More... | |
virtual tmp< fvPatchField< vector > > | clone (const DimensionedField< vector, volMesh > &iF) const |
Clone with an internal field reference. More... | |
virtual bool | assignable () const |
True: this patch field is altered by assignment. 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) |
This velocity inlet/outlet boundary condition is applied to velocity 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.
Property | Description | Required | Default value |
---|---|---|---|
phi | flux field name | no | phi |
tangentialVelocity | tangential velocity field | no |
Example of the boundary condition specification:
<patchName> { type pressureInletOutletVelocity; phi phi; tangentialVelocity uniform (0 0 0); value uniform (0 0 0); }
Definition at line 94 of file pressureInletOutletVelocityFvPatchVectorField.H.
pressureInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 32 of file pressureInletOutletVelocityFvPatchVectorField.C.
References Foam::Zero.
pressureInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 67 of file pressureInletOutletVelocityFvPatchVectorField.C.
References dict, p, and Foam::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 48 of file pressureInletOutletVelocityFvPatchVectorField.C.
References UList< T >::size().
pressureInletOutletVelocityFvPatchVectorField | ( | const pressureInletOutletVelocityFvPatchVectorField & | pivpvf | ) |
Construct as copy.
Definition at line 98 of file pressureInletOutletVelocityFvPatchVectorField.C.
pressureInletOutletVelocityFvPatchVectorField | ( | const pressureInletOutletVelocityFvPatchVectorField & | pivpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 110 of file pressureInletOutletVelocityFvPatchVectorField.C.
TypeName | ( | "pressureInletOutletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Return a clone.
Reimplemented in rotatingPressureInletOutletVelocityFvPatchVectorField.
Definition at line 173 of file pressureInletOutletVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
|
inlinevirtual |
Clone with an internal field reference.
Reimplemented in rotatingPressureInletOutletVelocityFvPatchVectorField.
Definition at line 182 of file pressureInletOutletVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
|
inlinevirtual |
True: this patch field is altered by assignment.
Definition at line 195 of file pressureInletOutletVelocityFvPatchVectorField.H.
|
inline |
Return the name of phi.
Definition at line 203 of file pressureInletOutletVelocityFvPatchVectorField.H.
|
inline |
Return reference to the name of phi to allow adjustment.
Definition at line 211 of file pressureInletOutletVelocityFvPatchVectorField.H.
|
inline |
Return the tangential velocity.
Definition at line 219 of file pressureInletOutletVelocityFvPatchVectorField.H.
Referenced by pressureInletOutletVelocityFvPatchVectorField::setTangentialVelocity().
void setTangentialVelocity | ( | const vectorField & | tangentialVelocity | ) |
Reset the tangential velocity.
Definition at line 124 of file pressureInletOutletVelocityFvPatchVectorField.C.
References n, Foam::foamVersion::patch, and pressureInletOutletVelocityFvPatchVectorField::tangentialVelocity().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 133 of file pressureInletOutletVelocityFvPatchVectorField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 146 of file pressureInletOutletVelocityFvPatchVectorField.C.
References pressureInletOutletVelocityFvPatchVectorField::rmap().
Referenced by pressureInletOutletVelocityFvPatchVectorField::rmap().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 163 of file pressureInletOutletVelocityFvPatchVectorField.C.
References Foam::stringOps::evaluate(), Foam::I, Foam::neg(), Foam::foamVersion::patch, and Foam::sqr().
|
virtual |
Write.
Reimplemented in rotatingPressureInletOutletVelocityFvPatchVectorField.
Definition at line 181 of file pressureInletOutletVelocityFvPatchVectorField.C.
References os(), fvPatchField< Type >::write(), Ostream::writeEntryIfDifferent(), and fvPatchField< Type >::writeValueEntry().
|
virtual |
Definition at line 199 of file pressureInletOutletVelocityFvPatchVectorField.C.
References Foam::I, fvPatchField< Type >::operator=(), and Foam::transform().