This velocity inlet/outlet boundary condition combines a fixed normal component obtained from the "normalVelocity" patchField supplied with a fixed or zero-gradiented tangential component depending on the direction of the flow and the setting of "fixTangentialInflow": More...


Public Member Functions | |
| TypeName ("fixedNormalInletOutletVelocity") | |
| Runtime type information. More... | |
| fixedNormalInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| fixedNormalInletOutletVelocityFvPatchVectorField (const fixedNormalInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fieldMapper &) | |
| Construct by mapping given. More... | |
| fixedNormalInletOutletVelocityFvPatchVectorField (const fixedNormalInletOutletVelocityFvPatchVectorField &)=delete | |
| Disallow copy without setting internal field reference. More... | |
| fixedNormalInletOutletVelocityFvPatchVectorField (const fixedNormalInletOutletVelocityFvPatchVectorField &, 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... | |
| Switch | fixTangentialInflow () const |
| const fvPatchVectorField & | normalVelocity () const |
| Return the BC which provides the normal component of velocity. More... | |
| virtual void | map (const fvPatchVectorField &, const fieldMapper &) |
| Map the given fvPatchField onto this fvPatchField. More... | |
| virtual void | reset (const fvPatchVectorField &) |
| Reset the fvPatchField to the given 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 combines a fixed normal component obtained from the "normalVelocity" patchField supplied with a fixed or zero-gradiented tangential component depending on the direction of the flow and the setting of "fixTangentialInflow":
- Outflow: apply zero-gradient condition to tangential components
| Property | Description | Required | Default value |
|---|---|---|---|
phi | flux field name | no | phi |
fixTangentialInflow | If true fix the tangential component for inflow | yes | |
normalVelocity | patchField providing the normal velocity field | yes |
Example of the boundary condition specification:
<patchName>
{
type fixedNormalInletOutletVelocity;
fixTangentialInflow false;
normalVelocity
{
type uniformFixedValue;
uniformValue sine;
uniformValueCoeffs
{
frequency 1;
amplitude table
(
(0 0)
(2 0.088)
(8 0.088)
);
scale (0 1 0);
level (0 0 0);
}
}
value uniform (0 0 0);
}Definition at line 118 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
| fixedNormalInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 34 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References dict, DimensionedField< Type, GeoMesh, PrimitiveField >::dimensions(), fixedNormalInletOutletVelocityFvPatchVectorField::normalVelocity(), fvPatchField< Type >::operator, p, and Foam::Zero.
Referenced by fixedNormalInletOutletVelocityFvPatchVectorField::clone().


| fixedNormalInletOutletVelocityFvPatchVectorField | ( | const fixedNormalInletOutletVelocityFvPatchVectorField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< vector, volMesh > & | iF, | ||
| const fieldMapper & | mapper | ||
| ) |
Construct by mapping given.
fixedNormalInletOutletVelocityFvPatchVectorField onto a new patch
Definition at line 60 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
|
delete |
Disallow copy without setting internal field reference.
| fixedNormalInletOutletVelocityFvPatchVectorField | ( | const fixedNormalInletOutletVelocityFvPatchVectorField & | pivpvf, |
| const DimensionedField< vector, volMesh > & | iF | ||
| ) |
Copy constructor setting internal field reference.
Definition at line 79 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
| TypeName | ( | "fixedNormalInletOutletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 174 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
References fixedNormalInletOutletVelocityFvPatchVectorField::fixedNormalInletOutletVelocityFvPatchVectorField().

|
inlinevirtual |
Return true: this patch field is altered by assignment.
Definition at line 191 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
|
inline |
Return the name of phi.
Definition at line 200 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
|
inline |
Return reference to the name of phi to allow adjustment.
Definition at line 206 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
|
inline |
Definition at line 211 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
|
inline |
Return the BC which provides the normal component of velocity.
Definition at line 217 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
Referenced by fixedNormalInletOutletVelocityFvPatchVectorField::fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField::map(), and fixedNormalInletOutletVelocityFvPatchVectorField::reset().

|
virtual |
Map the given fvPatchField onto this fvPatchField.
Definition at line 95 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References fixedNormalInletOutletVelocityFvPatchVectorField::normalVelocity().

|
virtual |
Reset the fvPatchField to the given fvPatchField.
Used for mesh to mesh mapping
Definition at line 110 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References fixedNormalInletOutletVelocityFvPatchVectorField::normalVelocity().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 124 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References Foam::evaluate(), Foam::I, Foam::neg(), and Foam::sqr().

|
virtual |
Write.
Definition at line 149 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References token::BEGIN_BLOCK, Foam::decrIndent(), token::END_BLOCK, Foam::endl(), Foam::incrIndent(), Foam::indent(), Foam::nl, Ostream::write(), fvPatchField< Type >::write(), Foam::writeEntry(), and Foam::writeKeyword().

|
virtual |
Definition at line 168 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References Foam::I, fvPatchField< Type >::operator=(), and Foam::transform().
