This boundary condition provides a velocity boundary condition for multiphase flow based on a user-specified volumetric flow rate. More...
This boundary condition provides a velocity boundary condition for multiphase 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 [m^3/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::Function1s.
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 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.
|
delete |
Disallow copy without setting internal field reference.
variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const variableHeightFlowRateInletVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 76 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References variableHeightFlowRateInletVelocityFvPatchVectorField::updateCoeffs().
TypeName | ( | "variableHeightFlowRateInletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 159 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
References variableHeightFlowRateInletVelocityFvPatchVectorField::updateCoeffs(), variableHeightFlowRateInletVelocityFvPatchVectorField::variableHeightFlowRateInletVelocityFvPatchVectorField(), and variableHeightFlowRateInletVelocityFvPatchVectorField::write().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 90 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References Foam::gSum(), Foam::max(), Foam::min(), n, Foam::operator==(), fvPatchField< Type >::updateCoeffs(), Function1< Type >::value(), and variableHeightFlowRateInletVelocityFvPatchVectorField::write().
Referenced by variableHeightFlowRateInletVelocityFvPatchVectorField::clone(), and variableHeightFlowRateInletVelocityFvPatchVectorField::variableHeightFlowRateInletVelocityFvPatchVectorField().
|
virtual |
Write.
Definition at line 118 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References Foam::makePatchTypeField(), fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by variableHeightFlowRateInletVelocityFvPatchVectorField::clone(), and variableHeightFlowRateInletVelocityFvPatchVectorField::updateCoeffs().