This boundary condition provides a phase fraction condition based on the local flow conditions, whereby the values are constrained to lay between user-specified upper and lower bounds. The behaviour is described by: More...
Public Member Functions | |
TypeName ("variableHeightFlowRate") | |
Runtime scalar information. More... | |
variableHeightFlowRateFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
variableHeightFlowRateFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
variableHeightFlowRateFvPatchScalarField (const variableHeightFlowRateFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
variableHeightFlowRateFvPatchScalarField (const variableHeightFlowRateFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
variableHeightFlowRateFvPatchScalarField (const variableHeightFlowRateFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Copy constructor setting internal field reference. More... | |
virtual tmp< fvPatchField< scalar > > | clone (const DimensionedField< scalar, 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... | |
Protected Attributes | |
word | phiName_ |
Name of flux field. More... | |
scalar | lowerBound_ |
Lower bound for alpha1. More... | |
scalar | upperBound_ |
Upper bound for alpha1. More... | |
This boundary condition provides a phase fraction condition based on the local flow conditions, whereby the values are constrained to lay between user-specified upper and lower bounds. The behaviour is described by:
if lower bound <= alpha <= upper bound:
if alpha < lowerBound:
Property | Description | Required | Default value |
---|---|---|---|
phi | flux field name | no | phi |
lowerBound | lower bound for clipping | yes | |
upperBound | upper bound for clipping | yes |
Example of the boundary condition specification:
<patchName> { type variableHeightFlowRate; lowerBound 0.0; upperBound 0.9; value uniform 0; }
Definition at line 98 of file variableHeightFlowRateFvPatchField.H.
variableHeightFlowRateFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 36 of file variableHeightFlowRateFvPatchField.C.
Referenced by variableHeightFlowRateFvPatchScalarField::clone(), and variableHeightFlowRateFvPatchScalarField::variableHeightFlowRateFvPatchScalarField().
variableHeightFlowRateFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 54 of file variableHeightFlowRateFvPatchField.C.
References dictionary::found(), scalarField(), fvPatch::size(), and variableHeightFlowRateFvPatchScalarField::variableHeightFlowRateFvPatchScalarField().
variableHeightFlowRateFvPatchScalarField | ( | const variableHeightFlowRateFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
variableHeightFlowRateFvPatchScalarField onto a new patch
Definition at line 86 of file variableHeightFlowRateFvPatchField.C.
References variableHeightFlowRateFvPatchScalarField::variableHeightFlowRateFvPatchScalarField().
|
delete |
Disallow copy without setting internal field reference.
variableHeightFlowRateFvPatchScalarField | ( | const variableHeightFlowRateFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 102 of file variableHeightFlowRateFvPatchField.C.
TypeName | ( | "variableHeightFlowRate" | ) |
Runtime scalar information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 165 of file variableHeightFlowRateFvPatchField.H.
References variableHeightFlowRateFvPatchScalarField::updateCoeffs(), variableHeightFlowRateFvPatchScalarField::variableHeightFlowRateFvPatchScalarField(), and variableHeightFlowRateFvPatchScalarField::write().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 116 of file variableHeightFlowRateFvPatchField.C.
References forAll, variableHeightFlowRateFvPatchScalarField::lowerBound_, variableHeightFlowRateFvPatchScalarField::phiName_, and variableHeightFlowRateFvPatchScalarField::upperBound_.
Referenced by variableHeightFlowRateFvPatchScalarField::clone().
|
virtual |
Write.
Definition at line 159 of file variableHeightFlowRateFvPatchField.C.
References variableHeightFlowRateFvPatchScalarField::lowerBound_, Foam::makePatchTypeField(), variableHeightFlowRateFvPatchScalarField::phiName_, variableHeightFlowRateFvPatchScalarField::upperBound_, fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by variableHeightFlowRateFvPatchScalarField::clone().
|
protected |
Name of flux field.
Definition at line 108 of file variableHeightFlowRateFvPatchField.H.
Referenced by variableHeightFlowRateFvPatchScalarField::updateCoeffs(), and variableHeightFlowRateFvPatchScalarField::write().
|
protected |
Lower bound for alpha1.
Definition at line 111 of file variableHeightFlowRateFvPatchField.H.
Referenced by variableHeightFlowRateFvPatchScalarField::updateCoeffs(), and variableHeightFlowRateFvPatchScalarField::write().
|
protected |
Upper bound for alpha1.
Definition at line 114 of file variableHeightFlowRateFvPatchField.H.
Referenced by variableHeightFlowRateFvPatchScalarField::updateCoeffs(), and variableHeightFlowRateFvPatchScalarField::write().