This boundary condition provides a velocity boundary condition, derived from the flux (volumetric or mass-based), whose direction is assumed to be normal to the patch. 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 &) | |
Construct as copy. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy 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... | |
Private Attributes | |
autoPtr< DataEntry< scalar > > | flowRate_ |
Inlet integral flow rate. More... | |
bool | volumetric_ |
Is volumetric? More... | |
word | rhoName_ |
Name of the density field used to normalize the mass flux. More... | |
scalar | rhoInlet_ |
Rho initialisation value (for start; if value not supplied) More... | |
This boundary condition provides a velocity boundary condition, derived from the flux (volumetric or mass-based), whose direction is assumed to be normal to the patch.
rhoName
is "none" the flow rate is in m3/srhoName
should correspond to the name of the density fieldrhoInlet
entryFor a volumetric-based flux:
Patch usage
Property | Description | Required | Default value |
---|---|---|---|
massFlowRate | mass flow rate [kg/s] | no | |
volumetricFlowRate | volumetric flow rate [m3/s] | no | |
rhoInlet | inlet density | no |
Example of the boundary condition specification for a volumetric flow rate:
myPatch { type flowRateInletVelocity; volumetricFlowRate 0.2; value uniform (0 0 0); // placeholder }
Example of the boundary condition specification for a mass flow rate:
myPatch { type flowRateInletVelocity; massFlowRate 0.2; rho rho; rhoInlet 1.0; }
The flowRate
entry is a DataEntry
type, meaning that it can be specified as constant, a polynomial fuction of time, and ...
rhoInlet
is required for the case of a mass flow rate, where the density field is not available at start-upDefinition at line 127 of file flowRateInletVelocityFvPatchVectorField.H.
flowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 36 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 68 of file flowRateInletVelocityFvPatchVectorField.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::compressible::New(), p, 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 51 of file flowRateInletVelocityFvPatchVectorField.C.
Construct as copy.
Definition at line 115 of file flowRateInletVelocityFvPatchVectorField.C.
flowRateInletVelocityFvPatchVectorField | ( | const flowRateInletVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 129 of file flowRateInletVelocityFvPatchVectorField.C.
TypeName | ( | "flowRateInletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 187 of file flowRateInletVelocityFvPatchVectorField.H.
References flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 204 of file flowRateInletVelocityFvPatchVectorField.H.
References flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 144 of file flowRateInletVelocityFvPatchVectorField.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, flowRateInletVelocityFvPatchVectorField::flowRate_, Foam::gSum(), n, Foam::operator==(), flowRateInletVelocityFvPatchVectorField::rhoInlet_, flowRateInletVelocityFvPatchVectorField::rhoName_, and flowRateInletVelocityFvPatchVectorField::volumetric_.
|
virtual |
Write.
Definition at line 191 of file flowRateInletVelocityFvPatchVectorField.C.
References fvPatchField::write().
Inlet integral flow rate.
Definition at line 134 of file flowRateInletVelocityFvPatchVectorField.H.
Referenced by flowRateInletVelocityFvPatchVectorField::updateCoeffs().
|
private |
Is volumetric?
Definition at line 137 of file flowRateInletVelocityFvPatchVectorField.H.
Referenced by flowRateInletVelocityFvPatchVectorField::updateCoeffs().
|
private |
Name of the density field used to normalize the mass flux.
Definition at line 140 of file flowRateInletVelocityFvPatchVectorField.H.
Referenced by flowRateInletVelocityFvPatchVectorField::updateCoeffs().
|
private |
Rho initialisation value (for start; if value not supplied)
Definition at line 143 of file flowRateInletVelocityFvPatchVectorField.H.
Referenced by flowRateInletVelocityFvPatchVectorField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.