Velocity inlet/outlet boundary condition for patches where the pressure is specified in some manner, e.g. fixedValue, totalPressure, entrainmentPressure etc. 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 &)=delete | |
Disallow copy without setting internal field reference. More... | |
pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Copy constructor 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... | |
virtual bool | assignable () const |
Return 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 autoPtr< Function1< vector > > & | tangentialVelocity () const |
Return the tangential velocity Function1. 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) |
Velocity inlet/outlet boundary condition for patches where the pressure is specified in some manner, e.g. fixedValue, totalPressure, entrainmentPressure etc.
This boundary condition is directionMixed: Flux outflow: zeroGradient condition Flux inflow: zeroGradient condition for normal component fixedValue for tangential component
The external tangential velocity can be optionally specified otherwise it is assumed zero.
Property | Description | Required | Default value |
---|---|---|---|
phi | flux field name | no | phi |
tangentialVelocity | tangential velocity | no |
Example of the boundary condition specification:
<patchName> { type pressureInletOutletVelocity; phi phi; tangentialVelocity (0 0 0); value uniform 0; }
The tangentialVelocity
entry is a Function1 of time, see Foam::Function1s.
Definition at line 102 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.
References Foam::Zero.
Referenced by pressureInletOutletVelocityFvPatchVectorField::clone(), and pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField().
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 dictionary::found(), Foam::compressible::New(), pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField(), fvPatch::size(), vectorField(), 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 52 of file pressureInletOutletVelocityFvPatchVectorField.C.
References pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField().
|
delete |
Disallow copy without setting internal field reference.
pressureInletOutletVelocityFvPatchVectorField | ( | const pressureInletOutletVelocityFvPatchVectorField & | pivpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 92 of file pressureInletOutletVelocityFvPatchVectorField.C.
TypeName | ( | "pressureInletOutletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented in rotatingPressureInletOutletVelocityFvPatchVectorField.
Definition at line 163 of file pressureInletOutletVelocityFvPatchVectorField.H.
References pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField().
|
inlinevirtual |
Return true: this patch field is altered by assignment.
Definition at line 179 of file pressureInletOutletVelocityFvPatchVectorField.H.
|
inline |
Return the name of phi.
Definition at line 188 of file pressureInletOutletVelocityFvPatchVectorField.H.
Referenced by rotatingPressureInletOutletVelocityFvPatchVectorField::write().
|
inline |
Return reference to the name of phi to allow adjustment.
Definition at line 194 of file pressureInletOutletVelocityFvPatchVectorField.H.
Return the tangential velocity Function1.
Definition at line 200 of file pressureInletOutletVelocityFvPatchVectorField.H.
References pressureInletOutletVelocityFvPatchVectorField::operator=(), pressureInletOutletVelocityFvPatchVectorField::updateCoeffs(), and pressureInletOutletVelocityFvPatchVectorField::write().
Referenced by pressureInletOutletVelocityFvPatchVectorField::updateCoeffs(), and totalPressureFvPatchScalarField::updateCoeffs().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 105 of file pressureInletOutletVelocityFvPatchVectorField.C.
References Foam::evaluate(), Foam::I, n, Foam::neg(), Foam::sqr(), pressureInletOutletVelocityFvPatchVectorField::tangentialVelocity(), and pressureInletOutletVelocityFvPatchVectorField::write().
Referenced by pressureInletOutletVelocityFvPatchVectorField::tangentialVelocity().
|
virtual |
Write.
Reimplemented in rotatingPressureInletOutletVelocityFvPatchVectorField.
Definition at line 131 of file pressureInletOutletVelocityFvPatchVectorField.C.
References fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by pressureInletOutletVelocityFvPatchVectorField::tangentialVelocity(), and pressureInletOutletVelocityFvPatchVectorField::updateCoeffs().
|
virtual |
Definition at line 149 of file pressureInletOutletVelocityFvPatchVectorField.C.
References Foam::I, Foam::makePatchTypeField(), fvPatchField< Type >::operator=(), and Foam::transform().
Referenced by pressureInletOutletVelocityFvPatchVectorField::tangentialVelocity().