Velocity outlet boundary condition which corrects the extrapolated velocity to match the specified flow rate. More...
Public Member Functions | |
TypeName ("flowRateOutletVelocity") | |
flowRateOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
flowRateOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
flowRateOutletVelocityFvPatchVectorField (const flowRateOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
flowRateOutletVelocityFvPatchVectorField (const flowRateOutletVelocityFvPatchVectorField &) | |
virtual tmp< fvPatchVectorField > | clone () const |
flowRateOutletVelocityFvPatchVectorField (const flowRateOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
virtual void | updateCoeffs () |
virtual void | write (Ostream &) const |
Velocity outlet boundary condition which corrects the extrapolated velocity to match the specified flow rate.
rho
is "none" the flow rate is in m^3/srho
should correspond to the name of the density fieldrhoOutlet
entryFor a volumetric-based flux:
Property | Description | Required | Default value |
---|---|---|---|
massFlowRate | mass flow rate [kg/s] | no | |
volumetricFlowRate | volumetric flow rate [m^3/s] | no | |
rho | density field name | no | rho |
rhoOutlet | outlet density | no |
Example of the boundary condition specification for a volumetric flow rate:
<patchName> { type flowRateOutletVelocity; volumetricFlowRate 0.2; value uniform (0 0 0); }
Example of the boundary condition specification for a mass flow rate:
<patchName> { type flowRateOutletVelocity; massFlowRate 0.2; rhoOutlet 1.0; value uniform (0 0 0); }
The flowRate
entry is a Function1
of time, see Foam::Function1Types.
rhoOutlet
is required for the case of a mass flow rate, where the density field is not available at start-upDefinition at line 130 of file flowRateOutletVelocityFvPatchVectorField.H.
flowRateOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Definition at line 31 of file flowRateOutletVelocityFvPatchVectorField.C.
Referenced by flowRateOutletVelocityFvPatchVectorField::clone().
flowRateOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 46 of file flowRateOutletVelocityFvPatchVectorField.C.
References dict, Foam::stringOps::evaluate(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::New(), and p.
flowRateOutletVelocityFvPatchVectorField | ( | const flowRateOutletVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 92 of file flowRateOutletVelocityFvPatchVectorField.C.
Definition at line 109 of file flowRateOutletVelocityFvPatchVectorField.C.
flowRateOutletVelocityFvPatchVectorField | ( | const flowRateOutletVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Definition at line 123 of file flowRateOutletVelocityFvPatchVectorField.C.
TypeName | ( | "flowRateOutletVelocity" | ) |
|
inlinevirtual |
Definition at line 197 of file flowRateOutletVelocityFvPatchVectorField.H.
References flowRateOutletVelocityFvPatchVectorField::flowRateOutletVelocityFvPatchVectorField().
|
inlinevirtual |
Definition at line 214 of file flowRateOutletVelocityFvPatchVectorField.H.
References flowRateOutletVelocityFvPatchVectorField::flowRateOutletVelocityFvPatchVectorField().
|
virtual |
Definition at line 180 of file flowRateOutletVelocityFvPatchVectorField.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::foamVersion::patch.
|
virtual |
Definition at line 220 of file flowRateOutletVelocityFvPatchVectorField.C.
References os(), fvPatchField::write(), and Ostream::writeEntryIfDifferent().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.