This boundary condition provides a velocity boundary condition for multphase flow based on a user-specified volumetric flow rate. 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.
Property | Description | Required | Default value |
---|---|---|---|
flowRate | volumetric flow rate [m3/s] | yes | |
alpha | phase-fraction field | yes |
Example of the boundary condition specification:
<patchName> { type variableHeightFlowRateInletVelocity; flowRate 0.2; alpha alpha.water; value uniform (0 0 0); // placeholder }
The flowRate
entry is a Function1
of time, see Foam::Function1Types.
Definition at line 100 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 34 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
Referenced by variableHeightFlowRateInletVelocityFvPatchVectorField::clone(), and variableHeightFlowRateInletVelocityFvPatchVectorField::variableHeightFlowRateInletVelocityFvPatchVectorField().
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 47 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 61 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const variableHeightFlowRateInletVelocityFvPatchVectorField & | ptf | ) |
Construct as copy.
Definition at line 76 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const variableHeightFlowRateInletVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 88 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References variableHeightFlowRateInletVelocityFvPatchVectorField::updateCoeffs().
TypeName | ( | "variableHeightFlowRateInletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 154 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 171 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
References variableHeightFlowRateInletVelocityFvPatchVectorField::updateCoeffs(), variableHeightFlowRateInletVelocityFvPatchVectorField::variableHeightFlowRateInletVelocityFvPatchVectorField(), and variableHeightFlowRateInletVelocityFvPatchVectorField::write().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 102 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References Foam::gSum(), Foam::max(), Foam::min(), n, Foam::operator==(), and variableHeightFlowRateInletVelocityFvPatchVectorField::write().
Referenced by variableHeightFlowRateInletVelocityFvPatchVectorField::clone(), and variableHeightFlowRateInletVelocityFvPatchVectorField::variableHeightFlowRateInletVelocityFvPatchVectorField().
|
virtual |
Write.
Definition at line 130 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References Foam::makePatchTypeField(), Foam::nl, Foam::blockMeshTools::write(), and Ostream::writeKeyword().
Referenced by variableHeightFlowRateInletVelocityFvPatchVectorField::clone(), and variableHeightFlowRateInletVelocityFvPatchVectorField::updateCoeffs().