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...
Public Member Functions | |
TypeName ("flowRateInletVelocity") | |
flowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
flowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &) | |
virtual tmp< fvPatchVectorField > | clone () const |
flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
virtual void | updateCoeffs () |
virtual void | write (Ostream &) const |
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.
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 | ||
) |
Definition at line 32 of file flowRateInletVelocityFvPatchVectorField.C.
Referenced by flowRateInletVelocityFvPatchVectorField::clone().
flowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 48 of file flowRateInletVelocityFvPatchVectorField.C.
References dict, Foam::stringOps::evaluate(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::New(), Foam::nl, and p.
flowRateInletVelocityFvPatchVectorField | ( | const flowRateInletVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 100 of file flowRateInletVelocityFvPatchVectorField.C.
Definition at line 118 of file flowRateInletVelocityFvPatchVectorField.C.
flowRateInletVelocityFvPatchVectorField | ( | const flowRateInletVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Definition at line 133 of file flowRateInletVelocityFvPatchVectorField.C.
TypeName | ( | "flowRateInletVelocity" | ) |
|
inlinevirtual |
Definition at line 211 of file flowRateInletVelocityFvPatchVectorField.H.
References flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField().
|
inlinevirtual |
Definition at line 228 of file flowRateInletVelocityFvPatchVectorField.H.
References flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField().
|
virtual |
Definition at line 198 of file flowRateInletVelocityFvPatchVectorField.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::foamVersion::patch.
|
virtual |
Definition at line 238 of file flowRateInletVelocityFvPatchVectorField.C.
References os(), fvPatchField::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.