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...
Public Member Functions | |
TypeName ("permeableAlphaPressureInletOutletVelocity") | |
Runtime type information. More... | |
pressurePermeableAlphaInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
pressurePermeableAlphaInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
pressurePermeableAlphaInletOutletVelocityFvPatchVectorField (const pressurePermeableAlphaInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
pressurePermeableAlphaInletOutletVelocityFvPatchVectorField (const pressurePermeableAlphaInletOutletVelocityFvPatchVectorField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
pressurePermeableAlphaInletOutletVelocityFvPatchVectorField (const pressurePermeableAlphaInletOutletVelocityFvPatchVectorField &, 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... | |
virtual bool | assignable () const |
Return true: this patch field is altered by assignment. More... | |
const word & | rhoName () const noexcept |
Return the name of rho. More... | |
word & | rhoName () |
Return reference to the name of rho to allow adjustment. More... | |
const word & | phiName () const noexcept |
Return the name of phi. More... | |
word & | phiName () |
Return reference to the name of phi to allow adjustment. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
virtual void | operator= (const fvPatchField< vector > &pvf) |
Copy assignment. More... | |
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 129 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
pressurePermeableAlphaInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 36 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
References Foam::Zero.
pressurePermeableAlphaInletOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 72 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
References dict, dictionary::getOrDefault(), word::null, fvPatchField< vector >::operator=(), p, UList< T >::size(), 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 55 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
pressurePermeableAlphaInletOutletVelocityFvPatchVectorField | ( | const pressurePermeableAlphaInletOutletVelocityFvPatchVectorField & | pivpvf | ) |
Construct as copy.
Definition at line 94 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
pressurePermeableAlphaInletOutletVelocityFvPatchVectorField | ( | const pressurePermeableAlphaInletOutletVelocityFvPatchVectorField & | pivpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 108 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
TypeName | ( | "permeableAlphaPressureInletOutletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 189 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 208 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
|
inlinevirtual |
Return true: this patch field is altered by assignment.
Definition at line 229 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
|
inlinenoexcept |
Return the name of rho.
Definition at line 238 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
|
inline |
Return reference to the name of rho to allow adjustment.
Definition at line 244 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
|
inlinenoexcept |
Return the name of phi.
Definition at line 250 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
|
inline |
Return reference to the name of phi to allow adjustment.
Definition at line 256 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.H.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 126 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
References Foam::dimArea, Foam::dimDensity, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::max(), n, phi, Foam::pos(), Foam::pos0(), and Foam::Zero.
|
virtual |
Write.
Definition at line 184 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
References os(), and Ostream::writeEntryIfDifferent().
|
virtual |
Copy assignment.
Definition at line 199 of file pressurePermeableAlphaInletOutletVelocityFvPatchVectorField.C.
References n.