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") | |
Runtime type information. More... | |
flowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
flowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &)=delete | |
Disallow copy without setting internal field reference. More... | |
flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Copy constructor setting internal field reference. More... | |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
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 [m^3/s] | no | |
rho | density field name | no | rho |
rhoInlet | inlet density | no | |
alpha | volume fraction field name | 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::Function1s.
rhoInlet
is required for the case of a mass flow rate, where the density field is not available at start-upDefinition at line 145 of file flowRateInletVelocityFvPatchVectorField.H.
flowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 35 of file flowRateInletVelocityFvPatchVectorField.C.
Referenced by flowRateInletVelocityFvPatchVectorField::clone(), and flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField().
flowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 52 of file flowRateInletVelocityFvPatchVectorField.C.
References Foam::evaluate(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField(), Foam::compressible::New(), List< Type >::size(), and vectorField().
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 104 of file flowRateInletVelocityFvPatchVectorField.C.
References flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField().
|
delete |
Disallow copy without setting internal field reference.
flowRateInletVelocityFvPatchVectorField | ( | const flowRateInletVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 123 of file flowRateInletVelocityFvPatchVectorField.C.
References alpha(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::gSum(), Foam::mag(), Foam::min(), n, Foam::operator==(), rho, and Function1< Type >::value().
TypeName | ( | "flowRateInletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 233 of file flowRateInletVelocityFvPatchVectorField.H.
References flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField(), flowRateInletVelocityFvPatchVectorField::updateCoeffs(), and flowRateInletVelocityFvPatchVectorField::write().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 231 of file flowRateInletVelocityFvPatchVectorField.C.
References word::null.
Referenced by flowRateInletVelocityFvPatchVectorField::clone().
|
virtual |
Write.
Definition at line 254 of file flowRateInletVelocityFvPatchVectorField.C.
References Foam::makePatchTypeField(), word::null, fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by flowRateInletVelocityFvPatchVectorField::clone().