General alpha contact angle boundary condition. More...


Public Types | |
| enum | limitControls { lcNone , lcGradient , lcZeroGradient , lcAlpha } |
| Alpha limit options. More... | |
Public Member Functions | |
| TypeName ("contactAngle") | |
| Runtime type information. More... | |
| contactAngleFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| contactAngleFvPatchScalarField (const contactAngleFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
| Construct by mapping given contactAngleFvPatchScalarField. More... | |
| contactAngleFvPatchScalarField (const contactAngleFvPatchScalarField &)=delete | |
| Disallow copy without setting internal field reference. More... | |
| contactAngleFvPatchScalarField (const contactAngleFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Copy constructor setting internal field reference. More... | |
| tmp< scalarField > | cosTheta (const fvPatchVectorField &Up, const vectorField &nHat) const |
| Return the cosine of the contact angle. More... | |
| virtual void | evaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::blocking) |
| Evaluate the patch field. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
Static Public Attributes | |
| static const NamedEnum< limitControls, 4 > | limitControlNames_ |
| Alpha limit option names. More... | |
General alpha contact angle boundary condition.
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.
| Property | Description | Required | Default value |
|---|---|---|---|
limit | Limiting option | yes | |
contantAngle | Contact angle model settings | no | none |
Example of the boundary condition specification for a constant angle:
<patchName>
{
type contactAngle;
limit none;
contactAngle
{
type constant;
theta0 70;
}
}If the contactAngle sub-dictionary is not given, a constant angle will be assumed. Example:
<patchName>
{
type contactAngle;
limit none;
theta0 70;
}Definition at line 113 of file contactAngleFvPatchScalarField.H.
| enum limitControls |
Alpha limit options.
| Enumerator | |
|---|---|
| lcNone | |
| lcGradient | |
| lcZeroGradient | |
| lcAlpha | |
Definition at line 122 of file contactAngleFvPatchScalarField.H.
| contactAngleFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 48 of file contactAngleFvPatchScalarField.C.
References dict, DimensionedField< Type, GeoMesh, PrimitiveField >::dimensions(), Foam::dimLength, Foam::evaluate(), fvPatchField< Type >::operator=(), and p.

| contactAngleFvPatchScalarField | ( | const contactAngleFvPatchScalarField & | acpsf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fieldMapper & | mapper | ||
| ) |
Construct by mapping given contactAngleFvPatchScalarField.
onto a new patch
Definition at line 74 of file contactAngleFvPatchScalarField.C.
|
delete |
Disallow copy without setting internal field reference.
| contactAngleFvPatchScalarField | ( | const contactAngleFvPatchScalarField & | acpsf, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Copy constructor setting internal field reference.
Definition at line 88 of file contactAngleFvPatchScalarField.C.
| TypeName | ( | "contactAngle" | ) |
Runtime type information.
| Foam::tmp< Foam::scalarField > cosTheta | ( | const fvPatchVectorField & | Up, |
| const vectorField & | nHat | ||
| ) | const |
Return the cosine of the contact angle.
Definition at line 102 of file contactAngleFvPatchScalarField.C.
|
virtual |
Evaluate the patch field.
Definition at line 112 of file contactAngleFvPatchScalarField.C.
References Foam::evaluate(), Foam::max(), Foam::min(), and Field< scalar >::operator=().

|
virtual |
Write.
Definition at line 143 of file contactAngleFvPatchScalarField.C.
References Foam::vtkWriteOps::write(), and Foam::writeEntry().

|
static |
Alpha limit option names.
Definition at line 131 of file contactAngleFvPatchScalarField.H.