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 fvPatchFieldMapper &) | |
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... | |
Public Attributes | |
limitControls | limit_ |
Static Public Attributes | |
static const NamedEnum< limitControls, 4 > | limitControlNames_ |
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 e.g.:
<patchName> { type contactAngle; limit none; theta0 70; }
Definition at line 75 of file contactAngleFvPatchScalarField.H.
enum limitControls |
Alpha limit options.
Enumerator | |
---|---|
lcNone | |
lcGradient | |
lcZeroGradient | |
lcAlpha |
Definition at line 91 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 59 of file contactAngleFvPatchScalarField.C.
References dict, Foam::evaluate(), fvPatchField< Type >::operator=(), and p.
contactAngleFvPatchScalarField | ( | const contactAngleFvPatchScalarField & | acpsf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given contactAngleFvPatchScalarField.
onto a new patch
Definition at line 84 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 98 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 112 of file contactAngleFvPatchScalarField.C.
|
virtual |
Evaluate the patch field.
Definition at line 122 of file contactAngleFvPatchScalarField.C.
References Foam::evaluate(), Foam::max(), Foam::min(), and Field< scalar >::operator=().
|
virtual |
Write.
Definition at line 153 of file contactAngleFvPatchScalarField.C.
References Foam::vtkWriteOps::write(), and Foam::writeEntry().
|
static |
Definition at line 99 of file contactAngleFvPatchScalarField.H.
limitControls limit_ |
Definition at line 100 of file contactAngleFvPatchScalarField.H.