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 98 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 30 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 43 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 57 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const variableHeightFlowRateInletVelocityFvPatchVectorField & | ptf | ) |
Construct as copy.
Definition at line 72 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const variableHeightFlowRateInletVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 84 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
TypeName | ( | "variableHeightFlowRateInletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Return a clone.
Definition at line 178 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
|
inlinevirtual |
Clone with an internal field reference.
Definition at line 187 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 97 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References Foam::constant::atomic::alpha, DebugInfo, Foam::endl(), Foam::gSum(), Foam::max(), mesh, Foam::min(), n, Foam::operator==(), Foam::foamVersion::patch, and fvPatchField< Type >::updateCoeffs().
|
virtual |
Write.
Definition at line 139 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References os(), fvPatchField< Type >::write(), Ostream::writeEntry(), and fvPatchField< Type >::writeValueEntry().