This boundary condition provides a velocity boundary condition for multphase flow based on a user-specified volumetric flow rate. More...
Public Member Functions | |
TypeName ("variableHeightFlowRateInletVelocity") | |
Runtime type information. More... | |
variableHeightFlowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
variableHeightFlowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
variableHeightFlowRateInletVelocityFvPatchVectorField (const variableHeightFlowRateInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
variableHeightFlowRateInletVelocityFvPatchVectorField (const variableHeightFlowRateInletVelocityFvPatchVectorField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
variableHeightFlowRateInletVelocityFvPatchVectorField (const variableHeightFlowRateInletVelocityFvPatchVectorField &, 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... | |
scalar | flowRate () const |
Return the flux. More... | |
scalar & | flowRate () |
Return reference to the flux to allow adjustment. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Private Attributes | |
scalar | flowRate_ |
Inlet integral flow rate. More... | |
word | alphaName_ |
Name of the phase-fraction field. More... | |
This boundary condition provides a velocity boundary condition for multphase flow based on a user-specified volumetric flow rate.
The flow rate is made proportional to the phase fraction alpha at each face of the patch and alpha is ensured to be bound between 0 and 1.
Patch usage
Property | Description | Required | Default value |
---|---|---|---|
flowRate | volumetric flow rate [m3/s] | yes | |
alpha | phase-fraction field | yes |
Example of the boundary condition specification:
myPatch { type variableHeightFlowRateInletVelocity; flowRate 0.2; alpha alpha.water; value uniform (0 0 0); // placeholder }
Definition at line 97 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 36 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
Referenced by variableHeightFlowRateInletVelocityFvPatchVectorField::clone().
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 64 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const variableHeightFlowRateInletVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
variableHeightFlowRateInletVelocityFvPatchVectorField onto a new patch
Definition at line 49 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const variableHeightFlowRateInletVelocityFvPatchVectorField & | ptf | ) |
Construct as copy.
Definition at line 78 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const variableHeightFlowRateInletVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 90 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
TypeName | ( | "variableHeightFlowRateInletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 151 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 168 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
|
inline |
Return the flux.
Definition at line 188 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
References variableHeightFlowRateInletVelocityFvPatchVectorField::flowRate_.
|
inline |
Return reference to the flux to allow adjustment.
Definition at line 194 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
References variableHeightFlowRateInletVelocityFvPatchVectorField::flowRate_.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 104 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References Foam::gSum(), Foam::max(), Foam::min(), n, and Foam::operator==().
|
virtual |
Write.
Definition at line 129 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References Foam::nl, write(), and Ostream::writeKeyword().
|
private |
Inlet integral flow rate.
Definition at line 104 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
Referenced by variableHeightFlowRateInletVelocityFvPatchVectorField::flowRate().
|
private |
Name of the phase-fraction field.
Definition at line 107 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.