Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral over its area. More...
#include <finiteVolume/flowRateInletVelocityFvPatchVectorField.H>
Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral over its area.
The basis of the patch (volumetric or mass) is determined by the dimensions of the flux, phi. The current density is used to correct the velocity when applying the mass basis.
Example of the boundary condition specification:
inlet { typeflowRateInletVelocity; flowRate0.2;// Volumetric/mass flow rate [m3/s or kg/s] value uniform (0 0 0); // placeholder }
Definition at line 69 of file 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.
| |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone.
| |
flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference.
| |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
Construct and return a clone setting internal field reference.
| |
scalar | flowRate () const |
Return the flux.
| |
scalar & | flowRate () |
Return reference to the flux to allow adjustment.
| |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field.
| |
virtual void | write (Ostream &) const |
Write.
|
flowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 37 of file flowRateInletVelocityFvPatchVectorField.C.
Referenced by flowRateInletVelocityFvPatchVectorField::clone().
flowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 69 of file flowRateInletVelocityFvPatchVectorField.C.
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 52 of file flowRateInletVelocityFvPatchVectorField.C.
Construct as copy.
Definition at line 85 of file flowRateInletVelocityFvPatchVectorField.C.
flowRateInletVelocityFvPatchVectorField | ( | const flowRateInletVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 99 of file flowRateInletVelocityFvPatchVectorField.C.
TypeName | ( | "flowRateInletVelocity" | ) |
Runtime type information.
virtual tmp<fvPatchVectorField> clone | ( | ) | const [inline, virtual]
|
Construct and return a clone.
Reimplemented in timeVaryingFlowRateInletVelocityFvPatchVectorField.
Definition at line 126 of file flowRateInletVelocityFvPatchVectorField.H.
References flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField().
virtual tmp<fvPatchVectorField> clone | ( | const DimensionedField< vector, volMesh > & | iF ) | const [inline, virtual]
|
Construct and return a clone setting internal field reference.
Reimplemented in timeVaryingFlowRateInletVelocityFvPatchVectorField.
Definition at line 143 of file flowRateInletVelocityFvPatchVectorField.H.
References flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField().
scalar flowRate | ( | ) | const [inline]
|
Return the flux.
Definition at line 159 of file flowRateInletVelocityFvPatchVectorField.H.
Referenced by timeVaryingFlowRateInletVelocityFvPatchVectorField::updateCoeffs().
scalar& flowRate | ( | ) | [inline]
|
Return reference to the flux to allow adjustment.
Definition at line 165 of file flowRateInletVelocityFvPatchVectorField.H.
void updateCoeffs | ( | ) | [virtual]
|
Update the coefficients associated with the patch field.
Reimplemented in timeVaryingFlowRateInletVelocityFvPatchVectorField.
Definition at line 113 of file flowRateInletVelocityFvPatchVectorField.C.
References Foam::dimArea, Foam::dimDensity, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::gSum(), Foam::nl, Foam::operator==(), and phi.
void write | ( | Ostream & | os ) | const [virtual]
|
Write.
Reimplemented in timeVaryingFlowRateInletVelocityFvPatchVectorField.
Definition at line 157 of file flowRateInletVelocityFvPatchVectorField.C.
References token::END_STATEMENT, Foam::nl, fvPatchField< Type >::write(), and Ostream::writeKeyword().
Referenced by timeVaryingFlowRateInletVelocityFvPatchVectorField::write().