Velocity inlet boundary condition either correcting the extrapolated velocity or creating a uniform velocity field normal to the patch adjusted to match the specified flow rate. More...
#include <flowRateInletVelocityFvPatchVectorField.H>


Public Member Functions | |
| TypeName ("flowRateInletVelocity") | |
| Runtime type information. | |
| flowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
| Construct from patch and internal field. | |
| flowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. | |
| flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &) | |
| Construct as copy. | |
| flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &, 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 void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
| virtual void | write (Ostream &) const |
| Write. | |
Velocity inlet boundary condition either correcting the extrapolated velocity or creating a uniform velocity field normal to the patch adjusted to match the specified flow rate.
For a mass-based flux:
rho is "none" the flow rate is in m3/srho should correspond to the name of the density fieldrhoInlet entryFor a volumetric-based flux:
| Property | Description | Required | Default value |
|---|---|---|---|
massFlowRate | mass flow rate [kg/s] | no | |
volumetricFlowRate | volumetric flow rate [m3/s] | no | |
rho | density field name | no | rho |
rhoInlet | inlet density | no | |
extrapolateProfile | Extrapolate velocity profile | no | false |
Example of the boundary condition specification for a volumetric flow rate:
<patchName>
{
type flowRateInletVelocity;
volumetricFlowRate 0.2;
extrapolateProfile yes;
value uniform (0 0 0);
}
Example of the boundary condition specification for a mass flow rate:
<patchName>
{
type flowRateInletVelocity;
massFlowRate 0.2;
extrapolateProfile yes;
rho rho;
rhoInlet 1.0;
value uniform (0 0 0);
}
The flowRate entry is a Function1 of time, see Foam::Function1Types.
rhoInlet is required for the case of a mass flow rate, where the density field is not available at start-upDefinition at line 141 of file flowRateInletVelocityFvPatchVectorField.H.
| flowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF ) |
Construct from patch and internal field.
Definition at line 30 of file flowRateInletVelocityFvPatchVectorField.C.
References p.
Referenced by flowRateInletVelocityFvPatchVectorField(), flowRateInletVelocityFvPatchVectorField(), flowRateInletVelocityFvPatchVectorField(), and TypeName().

| flowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 46 of file flowRateInletVelocityFvPatchVectorField.C.
References UPstream::buffered, dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Function1< Type >::NewIfPresent(), Foam::nl, and p.

| flowRateInletVelocityFvPatchVectorField | ( | const flowRateInletVelocityFvPatchVectorField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< vector, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper ) |
Construct by mapping given.
flowRateInletVelocityFvPatchVectorField onto a new patch
Definition at line 94 of file flowRateInletVelocityFvPatchVectorField.C.
References clone(), flowRateInletVelocityFvPatchVectorField(), and p.

| flowRateInletVelocityFvPatchVectorField | ( | const flowRateInletVelocityFvPatchVectorField & | ptf | ) |
Construct as copy.
Definition at line 112 of file flowRateInletVelocityFvPatchVectorField.C.
References clone(), and flowRateInletVelocityFvPatchVectorField().

| flowRateInletVelocityFvPatchVectorField | ( | const flowRateInletVelocityFvPatchVectorField & | ptf, |
| const DimensionedField< vector, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 127 of file flowRateInletVelocityFvPatchVectorField.C.
References clone(), and flowRateInletVelocityFvPatchVectorField().

| TypeName | ( | "flowRateInletVelocity" | ) |
Runtime type information.
References flowRateInletVelocityFvPatchVectorField().

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


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

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 194 of file flowRateInletVelocityFvPatchVectorField.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.

|
virtual |
Write.
Definition at line 235 of file flowRateInletVelocityFvPatchVectorField.C.
References os(), fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().
