This boundary condition provides a velocity boundary condition for multphase flow based on a user-specified volumetric flow rate. More...
#include <variableHeightFlowRateInletVelocityFvPatchVectorField.H>


Public Member Functions | |
| TypeName ("variableHeightFlowRateInletVelocity") | |
| Runtime type information. | |
| variableHeightFlowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
| Construct from patch and internal field. | |
| variableHeightFlowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| variableHeightFlowRateInletVelocityFvPatchVectorField (const variableHeightFlowRateInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. | |
| variableHeightFlowRateInletVelocityFvPatchVectorField (const variableHeightFlowRateInletVelocityFvPatchVectorField &) | |
| Construct as copy. | |
| variableHeightFlowRateInletVelocityFvPatchVectorField (const variableHeightFlowRateInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
| Construct as copy setting internal field reference. | |
| virtual tmp< fvPatchField< vector > > | clone () const |
| Return a clone. | |
| virtual tmp< fvPatchField< vector > > | clone (const DimensionedField< vector, volMesh > &iF) const |
| Clone with an internal field reference. | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
| virtual void | write (Ostream &) const |
| Write. | |
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 28 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References p.
Referenced by TypeName(), variableHeightFlowRateInletVelocityFvPatchVectorField(), variableHeightFlowRateInletVelocityFvPatchVectorField(), and variableHeightFlowRateInletVelocityFvPatchVectorField().

| variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 41 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References dict, Foam::New(), and p.

| 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 55 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References clone(), p, and variableHeightFlowRateInletVelocityFvPatchVectorField().

| variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const variableHeightFlowRateInletVelocityFvPatchVectorField & | ptf | ) |
Construct as copy.
Definition at line 70 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References clone(), and variableHeightFlowRateInletVelocityFvPatchVectorField().

| variableHeightFlowRateInletVelocityFvPatchVectorField | ( | const variableHeightFlowRateInletVelocityFvPatchVectorField & | ptf, |
| const DimensionedField< vector, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 82 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References clone(), and variableHeightFlowRateInletVelocityFvPatchVectorField().

| TypeName | ( | "variableHeightFlowRateInletVelocity" | ) |
Runtime type information.
References variableHeightFlowRateInletVelocityFvPatchVectorField().

|
inlinevirtual |
Return a clone.
Definition at line 178 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
Referenced by variableHeightFlowRateInletVelocityFvPatchVectorField(), variableHeightFlowRateInletVelocityFvPatchVectorField(), and variableHeightFlowRateInletVelocityFvPatchVectorField().


|
inlinevirtual |
Clone with an internal field reference.
Definition at line 186 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 alpha, Field< Type >::clamp_range(), DebugInfo, Foam::endl(), Foam::gWeightedSum(), mesh, n, Foam::operator==(), and fvPatchField< Type >::updateCoeffs().

|
virtual |
Write.
Definition at line 138 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.
References os(), fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().
