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. More...


Public Member Functions | |
| TypeName ("fixedNormalInletOutletVelocity") | |
| Runtime type information. More... | |
| fixedNormalInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
| Construct from patch and internal field. 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 fvPatchFieldMapper &) | |
| Construct by mapping given. More... | |
| fixedNormalInletOutletVelocityFvPatchVectorField (const fixedNormalInletOutletVelocityFvPatchVectorField &) | |
| Construct as copy. More... | |
| virtual tmp< fvPatchVectorField > | clone () const |
| Construct and return a clone. More... | |
| fixedNormalInletOutletVelocityFvPatchVectorField (const fixedNormalInletOutletVelocityFvPatchVectorField &, 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... | |
| 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 | 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) |
Protected Attributes | |
| word | phiName_ |
| Flux field name. More... | |
| Switch | fixTangentialInflow_ |
| Set true to fix the tangential component for inflow. More... | |
| tmp< fvPatchVectorField > | normalVelocity_ |
| BC which provided the normal component of the velocity. More... | |
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.
The tangential component is set depending on the direction of the flow and the setting of "fixTangentialInflow":
| 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 120 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
| fixedNormalInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 32 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References Foam::Zero.
Referenced by fixedNormalInletOutletVelocityFvPatchVectorField::clone().

| fixedNormalInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 53 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References dict, p, and Foam::Zero.
| fixedNormalInletOutletVelocityFvPatchVectorField | ( | const fixedNormalInletOutletVelocityFvPatchVectorField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< vector, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper | ||
| ) |
Construct by mapping given.
fixedNormalInletOutletVelocityFvPatchVectorField onto a new patch
Definition at line 77 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
| fixedNormalInletOutletVelocityFvPatchVectorField | ( | const fixedNormalInletOutletVelocityFvPatchVectorField & | pivpvf | ) |
Construct as copy.
Definition at line 96 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
| fixedNormalInletOutletVelocityFvPatchVectorField | ( | const fixedNormalInletOutletVelocityFvPatchVectorField & | pivpvf, |
| const DimensionedField< vector, volMesh > & | iF | ||
| ) |
Construct as copy setting internal field reference.
Definition at line 109 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
| TypeName | ( | "fixedNormalInletOutletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 197 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
References fixedNormalInletOutletVelocityFvPatchVectorField::fixedNormalInletOutletVelocityFvPatchVectorField().

|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 218 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
References fixedNormalInletOutletVelocityFvPatchVectorField::fixedNormalInletOutletVelocityFvPatchVectorField().

|
inlinevirtual |
Return true: this patch field is altered by assignment.
Definition at line 236 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
|
inline |
Return the name of phi.
Definition at line 247 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
References fixedNormalInletOutletVelocityFvPatchVectorField::phiName_.
|
inline |
Return reference to the name of phi to allow adjustment.
Definition at line 255 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
References fixedNormalInletOutletVelocityFvPatchVectorField::phiName_.
|
inline |
Definition at line 260 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
References fixedNormalInletOutletVelocityFvPatchVectorField::fixTangentialInflow_.
|
inline |
Return the BC which provides the normal component of velocity.
Definition at line 268 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
References fixedNormalInletOutletVelocityFvPatchVectorField::normalVelocity_.
Referenced by fixedNormalInletOutletVelocityFvPatchVectorField::rmap(), and fixedNormalInletOutletVelocityFvPatchVectorField::updateCoeffs().

|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 124 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 134 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References fixedNormalInletOutletVelocityFvPatchVectorField::normalVelocity(), and fixedNormalInletOutletVelocityFvPatchVectorField::rmap().
Referenced by fixedNormalInletOutletVelocityFvPatchVectorField::rmap().


|
virtual |
Update the coefficients associated with the patch field.
Definition at line 148 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References Foam::stringOps::evaluate(), fixedNormalInletOutletVelocityFvPatchVectorField::fixTangentialInflow_, Foam::I, Foam::neg(), fixedNormalInletOutletVelocityFvPatchVectorField::normalVelocity(), fixedNormalInletOutletVelocityFvPatchVectorField::normalVelocity_, Foam::foamVersion::patch, fixedNormalInletOutletVelocityFvPatchVectorField::phiName_, and Foam::sqr().

|
virtual |
Write.
Definition at line 174 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References Ostream::beginBlock(), Ostream::endBlock(), os(), Ostream::write(), fvPatchField< Type >::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().

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

|
protected |
Flux field name.
Definition at line 131 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
Referenced by fixedNormalInletOutletVelocityFvPatchVectorField::phiName(), and fixedNormalInletOutletVelocityFvPatchVectorField::updateCoeffs().
|
protected |
Set true to fix the tangential component for inflow.
Definition at line 136 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
Referenced by fixedNormalInletOutletVelocityFvPatchVectorField::fixTangentialInflow(), and fixedNormalInletOutletVelocityFvPatchVectorField::updateCoeffs().
|
protected |
BC which provided the normal component of the velocity.
Definition at line 141 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
Referenced by fixedNormalInletOutletVelocityFvPatchVectorField::normalVelocity(), and fixedNormalInletOutletVelocityFvPatchVectorField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.