Contact-angle boundary condition for multi-phase interface-capturing simulations. Sets of coefficients are given for the contact angle with each other phase. These coefficients can specify either a constant or a dynamic contact angle. More...
Classes | |
class | contactAngleProperties |
Public Member Functions | |
TypeName ("alphaContactAngle") | |
Runtime type information. More... | |
alphaContactAngleFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
alphaContactAngleFvPatchScalarField (const alphaContactAngleFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
Construct by mapping given alphaContactAngleFvPatchScalarField. More... | |
alphaContactAngleFvPatchScalarField (const alphaContactAngleFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
const HashTable< contactAngleProperties > & | thetaProps () const |
Return the contact angle properties. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Contact-angle boundary condition for multi-phase interface-capturing simulations. Sets of coefficients are given for the contact angle with each other phase. These coefficients can specify either a constant or a dynamic contact angle.
Property | Description | Required | Default value |
---|---|---|---|
theta0 | Equilibrium contact angle | yes | |
uTheta | Velocity scale | no | none |
thetaA | Limiting advancing contact angle | if uTheta | none |
thetaR | Limiting receding contact angle | if uTheta | none |
Example of the boundary condition specification:
<patchName> { type alphaContactAngle; contactAngleProperties { // Constant contact angle with air air { theta0 90; } // Dynamic contact angle with water oil { theta0 70; uTheta 1; thetaA 100; thetaR 50; } } value uniform 0; }
Definition at line 113 of file alphaContactAngleFvPatchScalarField.H.
alphaContactAngleFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 45 of file alphaContactAngleFvPatchScalarField.C.
References dict, and forAllConstIter.
Referenced by alphaContactAngleFvPatchScalarField::clone().
alphaContactAngleFvPatchScalarField | ( | const alphaContactAngleFvPatchScalarField & | gcpsf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given alphaContactAngleFvPatchScalarField.
onto a new patch
Definition at line 32 of file alphaContactAngleFvPatchScalarField.C.
alphaContactAngleFvPatchScalarField | ( | const alphaContactAngleFvPatchScalarField & | gcpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 66 of file alphaContactAngleFvPatchScalarField.C.
TypeName | ( | "alphaContactAngle" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 257 of file alphaContactAngleFvPatchScalarField.H.
References alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField().
|
inline |
Return the contact angle properties.
Definition at line 272 of file alphaContactAngleFvPatchScalarField.H.
Referenced by Foam::correctContactAngle().
|
virtual |
Write.
Definition at line 129 of file alphaContactAngleFvPatchScalarField.C.
References token::BEGIN_BLOCK, Foam::decrIndent(), token::END_BLOCK, Foam::endl(), forAllConstIter, Foam::incrIndent(), Foam::indent(), Foam::nl, Ostream::write(), fvPatchField< Type >::write(), Foam::writeEntry(), and Foam::writeKeyword().