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...
#include <fixedNormalInletOutletVelocityFvPatchVectorField.H>


Public Member Functions | |
| TypeName ("fixedNormalInletOutletVelocity") | |
| Runtime type information. | |
| fixedNormalInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
| Construct from patch and internal field. | |
| fixedNormalInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| fixedNormalInletOutletVelocityFvPatchVectorField (const fixedNormalInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. | |
| fixedNormalInletOutletVelocityFvPatchVectorField (const fixedNormalInletOutletVelocityFvPatchVectorField &) | |
| Construct as copy. | |
| fixedNormalInletOutletVelocityFvPatchVectorField (const fixedNormalInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
| Construct as copy setting internal field reference. | |
| virtual tmp< fvPatchField< vector > > | clone () const |
| Return a clone. | |
| virtual tmp< fvPatchField< vector > > | clone (const DimensionedField< vector, volMesh > &iF) const |
| Clone with an internal field reference. | |
| virtual bool | assignable () const |
| True: this patch field is altered by assignment. | |
| const word & | phiName () const |
| Return the name of phi. | |
| word & | phiName () |
| Return reference to the name of phi to allow adjustment. | |
| Switch | fixTangentialInflow () const |
| const fvPatchVectorField & | normalVelocity () const |
| Return the BC which provides the normal component of velocity. | |
| virtual void | autoMap (const fvPatchFieldMapper &) |
| Map (and resize as needed) from self given a mapping object. | |
| virtual void | rmap (const fvPatchVectorField &, const labelList &) |
| Reverse map the given fvPatchField onto this fvPatchField. | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
| virtual void | write (Ostream &) const |
| Write. | |
| virtual void | operator= (const fvPatchField< vector > &pvf) |
Protected Attributes | |
| word | phiName_ |
| Flux field name. | |
| Switch | fixTangentialInflow_ |
| Set true to fix the tangential component for inflow. | |
| tmp< fvPatchVectorField > | normalVelocity_ |
| BC which provided the normal component of the velocity. | |
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 30 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References fixTangentialInflow_, Foam::New(), normalVelocity_, p, phiName_, and Foam::Zero.
Referenced by fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField(), rmap(), and TypeName().


| fixedNormalInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 51 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References dict, fixTangentialInflow_, IOobjectOption::MUST_READ, Foam::New(), normalVelocity(), normalVelocity_, p, phiName_, fvPatchFieldBase::readDict(), 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 75 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References fixedNormalInletOutletVelocityFvPatchVectorField(), fixTangentialInflow_, Foam::New(), normalVelocity(), normalVelocity_, p, and phiName_.

| fixedNormalInletOutletVelocityFvPatchVectorField | ( | const fixedNormalInletOutletVelocityFvPatchVectorField & | pivpvf | ) |
Construct as copy.
Definition at line 94 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References clone(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixTangentialInflow_, normalVelocity(), normalVelocity_, and phiName_.

| fixedNormalInletOutletVelocityFvPatchVectorField | ( | const fixedNormalInletOutletVelocityFvPatchVectorField & | pivpvf, |
| const DimensionedField< vector, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 107 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References clone(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixTangentialInflow_, normalVelocity(), normalVelocity_, and phiName_.

| TypeName | ( | "fixedNormalInletOutletVelocity" | ) |
Runtime type information.
References fixedNormalInletOutletVelocityFvPatchVectorField().

|
inlinevirtual |
Return a clone.
Definition at line 206 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
Referenced by fixedNormalInletOutletVelocityFvPatchVectorField(), and fixedNormalInletOutletVelocityFvPatchVectorField().


|
inlinevirtual |
Clone with an internal field reference.
Definition at line 214 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().

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

|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 123 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References normalVelocity_.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 133 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References fixedNormalInletOutletVelocityFvPatchVectorField(), normalVelocity(), normalVelocity_, and Foam::refCast().

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

|
virtual |
Write.
Definition at line 173 of file fixedNormalInletOutletVelocityFvPatchVectorField.C.
References fixTangentialInflow_, normalVelocity_, os(), phiName_, fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().

|
virtual |
Definition at line 193 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(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField(), phiName(), phiName(), updateCoeffs(), and write().
|
protected |
Set true to fix the tangential component for inflow.
Definition at line 136 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
Referenced by fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixTangentialInflow(), updateCoeffs(), and write().
|
protected |
BC which provided the normal component of the velocity.
Definition at line 141 of file fixedNormalInletOutletVelocityFvPatchVectorField.H.
Referenced by autoMap(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField(), fixedNormalInletOutletVelocityFvPatchVectorField(), normalVelocity(), rmap(), updateCoeffs(), and write().