Abstract base class for two-phase alphaContactAngle boundary conditions. More...
Public Types | |
enum | limitControls { lcNone , lcGradient , lcZeroGradient , lcAlpha } |
Alpha limit options. More... | |
Public Attributes | |
limitControls | limit_ |
Static Public Attributes | |
static const Enum< limitControls > | limitControlNames_ |
Abstract base class for two-phase alphaContactAngle boundary conditions.
Derived classes must implement the theta() function which returns the wall contact angle field.
The essential entry "limit" controls the gradient of alpha1 on the wall:
Note that if any of the first three options are used the boundary condition on p_rgh
must set to guarantee that the flux is corrected to be zero at the wall e.g.:
<patchName> { type alphaContactAngle; limit none; }
Definition at line 78 of file alphaContactAngleTwoPhaseFvPatchScalarField.H.
enum limitControls |
Alpha limit options.
Enumerator | |
---|---|
lcNone | |
lcGradient | |
lcZeroGradient | |
lcAlpha |
Definition at line 87 of file alphaContactAngleTwoPhaseFvPatchScalarField.H.
alphaContactAngleTwoPhaseFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 50 of file alphaContactAngleTwoPhaseFvPatchScalarField.C.
alphaContactAngleTwoPhaseFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 62 of file alphaContactAngleTwoPhaseFvPatchScalarField.C.
References dict, dictionary::found(), fvPatchField< Type >::operator=(), p, and UList< T >::size().
alphaContactAngleTwoPhaseFvPatchScalarField | ( | const alphaContactAngleTwoPhaseFvPatchScalarField & | acpsf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping onto a new patch.
Definition at line 87 of file alphaContactAngleTwoPhaseFvPatchScalarField.C.
alphaContactAngleTwoPhaseFvPatchScalarField | ( | const alphaContactAngleTwoPhaseFvPatchScalarField & | acpsf | ) |
Construct as copy.
Definition at line 101 of file alphaContactAngleTwoPhaseFvPatchScalarField.C.
alphaContactAngleTwoPhaseFvPatchScalarField | ( | const alphaContactAngleTwoPhaseFvPatchScalarField & | acpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 112 of file alphaContactAngleTwoPhaseFvPatchScalarField.C.
|
pure virtual |
Return the contact angle.
Implemented in constantAlphaContactAngleFvPatchScalarField, dynamicAlphaContactAngleFvPatchScalarField, temperatureDependentAlphaContactAngleFvPatchScalarField, and timeVaryingAlphaContactAngleFvPatchScalarField.
Referenced by reconstructedDistanceFunction::updateContactAngle().
|
virtual |
Evaluate the patch field.
Definition at line 126 of file alphaContactAngleTwoPhaseFvPatchScalarField.C.
References Foam::max(), Foam::min(), and Field< scalar >::operator=().
Referenced by constantAlphaContactAngleFvPatchScalarField::constantAlphaContactAngleFvPatchScalarField(), dynamicAlphaContactAngleFvPatchScalarField::dynamicAlphaContactAngleFvPatchScalarField(), temperatureDependentAlphaContactAngleFvPatchScalarField::temperatureDependentAlphaContactAngleFvPatchScalarField(), and timeVaryingAlphaContactAngleFvPatchScalarField::timeVaryingAlphaContactAngleFvPatchScalarField().
|
virtual |
Write.
Reimplemented in constantAlphaContactAngleFvPatchScalarField, dynamicAlphaContactAngleFvPatchScalarField, temperatureDependentAlphaContactAngleFvPatchScalarField, and timeVaryingAlphaContactAngleFvPatchScalarField.
Definition at line 157 of file alphaContactAngleTwoPhaseFvPatchScalarField.C.
References os(), and Ostream::writeEntry().
|
static |
Definition at line 95 of file alphaContactAngleTwoPhaseFvPatchScalarField.H.
limitControls limit_ |
Definition at line 96 of file alphaContactAngleTwoPhaseFvPatchScalarField.H.