The pressurePermeableAlphaInletOutletVelocity is a velocity inlet-outlet boundary condition which can be applied to velocity boundaries for multiphase flows when the pressure boundary condition is specified.
More...
#include <pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H>


Public Member Functions | |
| TypeName ("permeableAlphaPressureInletOutletVelocity") | |
| Runtime type information. | |
| pressurePermeableAlphaInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
| Construct from patch and internal field. | |
| pressurePermeableAlphaInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| pressurePermeableAlphaInletOutletVelocityFvPatchVectorField (const pressurePermeableAlphaInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given pressurePermeableAlphaInletOutletVelocityFvPatchVectorField onto a new patch. | |
| pressurePermeableAlphaInletOutletVelocityFvPatchVectorField (const pressurePermeableAlphaInletOutletVelocityFvPatchVectorField &) | |
| Construct as copy. | |
| pressurePermeableAlphaInletOutletVelocityFvPatchVectorField (const pressurePermeableAlphaInletOutletVelocityFvPatchVectorField &, 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 bool | assignable () const |
| True: this patch field is altered by assignment. | |
| const word & | rhoName () const noexcept |
| Return the name of rho. | |
| word & | rhoName () |
| Return reference to the name of rho to allow adjustment. | |
| const word & | phiName () const noexcept |
| Return the name of phi. | |
| word & | phiName () |
| Return reference to the name of phi to allow adjustment. | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
| virtual void | write (Ostream &) const |
| Write. | |
| virtual void | operator= (const fvPatchField< vector > &pvf) |
| Copy assignment. | |
The pressurePermeableAlphaInletOutletVelocity is a velocity inlet-outlet boundary condition which can be applied to velocity boundaries for multiphase flows when the pressure boundary condition is specified.
In the pressurePermeableAlphaInletOutletVelocity, an open condition is applied when alpha is under a user-defined alphaMin value and a wall condition is applied when alpha is larger than the alphaMin.
This boundary condition can be used in conjunction with prghPermeableAlphaTotalPressure for the p_rgh variable.
<patchName>
{
// Mandatory entries
type pressurePermeableAlphaInletOutletVelocity;
// Optional entries
phi phi;
rho rho;
alpha alpha.water;
alphaMin 0.01;
// Inherited entries
value uniform (0 0 0);
...
}
where the entries mean:
| Property | Description | Type | Reqd | Deflt |
|---|---|---|---|---|
phi | Name of flux field | word | no | phi |
rho | Name of density field | word | no | rho |
alpha | Name of mixture field | word | no | none |
alphaMin | Minimum alpha | scalar | no | 1 |
The inherited entries are elaborated in:
Definition at line 125 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
| pressurePermeableAlphaInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF ) |
Construct from patch and internal field.
Definition at line 29 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
References p, and Foam::Zero.
Referenced by pressurePermeableAlphaInletOutletVelocityFvPatchVectorField(), pressurePermeableAlphaInletOutletVelocityFvPatchVectorField(), pressurePermeableAlphaInletOutletVelocityFvPatchVectorField(), and TypeName().

| pressurePermeableAlphaInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 65 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
References dict, IOobjectOption::MUST_READ, p, fvPatchFieldBase::readDict(), and Foam::Zero.

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

| pressurePermeableAlphaInletOutletVelocityFvPatchVectorField | ( | const pressurePermeableAlphaInletOutletVelocityFvPatchVectorField & | pivpvf | ) |
Construct as copy.
Definition at line 87 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
References pressurePermeableAlphaInletOutletVelocityFvPatchVectorField().

| pressurePermeableAlphaInletOutletVelocityFvPatchVectorField | ( | const pressurePermeableAlphaInletOutletVelocityFvPatchVectorField & | pivpvf, |
| const DimensionedField< vector, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 101 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
References pressurePermeableAlphaInletOutletVelocityFvPatchVectorField().

| TypeName | ( | "permeableAlphaPressureInletOutletVelocity" | ) |
Runtime type information.
References pressurePermeableAlphaInletOutletVelocityFvPatchVectorField().

|
inlinevirtual |
Return a clone.
Definition at line 214 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().

|
inlinevirtual |
Clone with an internal field reference.
Definition at line 222 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().

|
inlinevirtual |
True: this patch field is altered by assignment.
Definition at line 236 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
|
inlinenoexcept |
Return the name of rho.
Definition at line 244 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
References Foam::noexcept.
|
inline |
Return reference to the name of rho to allow adjustment.
Definition at line 252 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
|
inlinenoexcept |
Return the name of phi.
Definition at line 260 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
References Foam::noexcept.
|
inline |
Return reference to the name of phi to allow adjustment.
Definition at line 268 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 119 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
References Foam::dimMass, Foam::dimTime, Foam::dimVolume, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::max(), n, Foam::neg(), Foam::pos(), and Foam::Zero.

|
virtual |
Write.
Definition at line 173 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
References os(), and mixedFvPatchField< Type >::write().

|
virtual |
Copy assignment.
Definition at line 188 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
References Foam::lerp(), and n.
