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 74 of file alphaContactAngleTwoPhaseFvPatchScalarField.H.
enum limitControls |
Alpha limit options.
Enumerator | |
---|---|
lcNone | |
lcGradient | |
lcZeroGradient | |
lcAlpha |
Definition at line 85 of file alphaContactAngleTwoPhaseFvPatchScalarField.H.
alphaContactAngleTwoPhaseFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 45 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 57 of file alphaContactAngleTwoPhaseFvPatchScalarField.C.
References dict, Foam::stringOps::evaluate(), and Foam::Zero.
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 82 of file alphaContactAngleTwoPhaseFvPatchScalarField.C.
alphaContactAngleTwoPhaseFvPatchScalarField | ( | const alphaContactAngleTwoPhaseFvPatchScalarField & | acpsf | ) |
Construct as copy.
Definition at line 96 of file alphaContactAngleTwoPhaseFvPatchScalarField.C.
alphaContactAngleTwoPhaseFvPatchScalarField | ( | const alphaContactAngleTwoPhaseFvPatchScalarField & | acpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 107 of file alphaContactAngleTwoPhaseFvPatchScalarField.C.
|
pure virtual |
Return the contact angle.
Implemented in temperatureDependentAlphaContactAngleFvPatchScalarField, dynamicAlphaContactAngleFvPatchScalarField, constantAlphaContactAngleFvPatchScalarField, and timeVaryingAlphaContactAngleFvPatchScalarField.
Referenced by reconstructedDistanceFunction::updateContactAngle().
|
virtual |
Evaluate the patch field.
Definition at line 120 of file alphaContactAngleTwoPhaseFvPatchScalarField.C.
References Foam::clamp(), Foam::stringOps::evaluate(), Foam::foamVersion::patch, and Foam::Zero.
|
virtual |
Write.
Reimplemented in temperatureDependentAlphaContactAngleFvPatchScalarField, dynamicAlphaContactAngleFvPatchScalarField, constantAlphaContactAngleFvPatchScalarField, and timeVaryingAlphaContactAngleFvPatchScalarField.
Definition at line 148 of file alphaContactAngleTwoPhaseFvPatchScalarField.C.
References os(), and Foam::vtk::write().
Referenced by dynamicAlphaContactAngleFvPatchScalarField::write().
|
static |
Definition at line 93 of file alphaContactAngleTwoPhaseFvPatchScalarField.H.
limitControls limit_ |
Definition at line 94 of file alphaContactAngleTwoPhaseFvPatchScalarField.H.