This boundary condition adjusts the velocity for the given phase to achieve the specified mean thus causing the phase-fraction to adjust according to the mass flow rate. More...


Public Member Functions | |
| TypeName ("outletPhaseMeanVelocity") | |
| Runtime type information. More... | |
| outletPhaseMeanVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
| Construct from patch and internal field. More... | |
| outletPhaseMeanVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| outletPhaseMeanVelocityFvPatchVectorField (const outletPhaseMeanVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. More... | |
| outletPhaseMeanVelocityFvPatchVectorField (const outletPhaseMeanVelocityFvPatchVectorField &) | |
| Construct as copy. More... | |
| virtual tmp< fvPatchVectorField > | clone () const |
| Construct and return a clone. More... | |
| outletPhaseMeanVelocityFvPatchVectorField (const outletPhaseMeanVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
| Construct as copy setting internal field reference. More... | |
| virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
| Construct and return a clone setting internal field reference. More... | |
| scalar | Umean () const |
| Return the flux. More... | |
| scalar & | Umean () |
| Return reference to the flux to allow adjustment. More... | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
This boundary condition adjusts the velocity for the given phase to achieve the specified mean thus causing the phase-fraction to adjust according to the mass flow rate.
Typical usage is as the outlet condition for a towing-tank ship simulation to maintain the outlet water level at the level as the inlet.
| Property | Description | Required | Default value |
|---|---|---|---|
Umean | mean velocity normal to the boundary [m/s] | yes | |
alpha | phase-fraction field | yes |
Example of the boundary condition specification:
<patchName>
{
type outletPhaseMeanVelocity;
Umean 1.2;
alpha alpha.water;
value uniform (1.2 0 0);
}
Definition at line 92 of file outletPhaseMeanVelocityFvPatchVectorField.H.
| outletPhaseMeanVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 36 of file outletPhaseMeanVelocityFvPatchVectorField.C.
References Foam::Zero.
Referenced by outletPhaseMeanVelocityFvPatchVectorField::clone(), and outletPhaseMeanVelocityFvPatchVectorField::outletPhaseMeanVelocityFvPatchVectorField().

| outletPhaseMeanVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 68 of file outletPhaseMeanVelocityFvPatchVectorField.C.
References dictionary::found(), outletPhaseMeanVelocityFvPatchVectorField::outletPhaseMeanVelocityFvPatchVectorField(), List< Type >::size(), vectorField(), and Foam::Zero.

| outletPhaseMeanVelocityFvPatchVectorField | ( | const outletPhaseMeanVelocityFvPatchVectorField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< vector, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper | ||
| ) |
Construct by mapping given.
outletPhaseMeanVelocityFvPatchVectorField onto a new patch
Definition at line 53 of file outletPhaseMeanVelocityFvPatchVectorField.C.
References outletPhaseMeanVelocityFvPatchVectorField::outletPhaseMeanVelocityFvPatchVectorField().

Construct as copy.
Definition at line 98 of file outletPhaseMeanVelocityFvPatchVectorField.C.
References outletPhaseMeanVelocityFvPatchVectorField::outletPhaseMeanVelocityFvPatchVectorField().

| outletPhaseMeanVelocityFvPatchVectorField | ( | const outletPhaseMeanVelocityFvPatchVectorField & | ptf, |
| const DimensionedField< vector, volMesh > & | iF | ||
| ) |
Construct as copy setting internal field reference.
Definition at line 110 of file outletPhaseMeanVelocityFvPatchVectorField.C.
| TypeName | ( | "outletPhaseMeanVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 146 of file outletPhaseMeanVelocityFvPatchVectorField.H.
References outletPhaseMeanVelocityFvPatchVectorField::outletPhaseMeanVelocityFvPatchVectorField().

|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 163 of file outletPhaseMeanVelocityFvPatchVectorField.H.
References outletPhaseMeanVelocityFvPatchVectorField::outletPhaseMeanVelocityFvPatchVectorField().

|
inline |
Return the flux.
Definition at line 183 of file outletPhaseMeanVelocityFvPatchVectorField.H.
|
inline |
Return reference to the flux to allow adjustment.
Definition at line 189 of file outletPhaseMeanVelocityFvPatchVectorField.H.
References outletPhaseMeanVelocityFvPatchVectorField::updateCoeffs(), and outletPhaseMeanVelocityFvPatchVectorField::write().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 123 of file outletPhaseMeanVelocityFvPatchVectorField.C.
References Foam::gSum(), Foam::max(), Foam::min(), fvPatchField< Type >::updateCoeffs(), outletPhaseMeanVelocityFvPatchVectorField::write(), and Foam::Zero.
Referenced by outletPhaseMeanVelocityFvPatchVectorField::Umean().


|
virtual |
Write.
Definition at line 162 of file outletPhaseMeanVelocityFvPatchVectorField.C.
References token::END_STATEMENT, Foam::makePatchTypeField(), Foam::nl, fvPatchField< Type >::write(), and Ostream::writeKeyword().
Referenced by outletPhaseMeanVelocityFvPatchVectorField::Umean(), and outletPhaseMeanVelocityFvPatchVectorField::updateCoeffs().


1.8.11