alphaContactAngleFvPatchScalarField Class Reference

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...

Inheritance diagram for alphaContactAngleFvPatchScalarField:
Collaboration diagram for alphaContactAngleFvPatchScalarField:

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< fvPatchScalarFieldclone (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...
 

Detailed Description

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.

Usage
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;
    }
Source files

Definition at line 113 of file alphaContactAngleFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ alphaContactAngleFvPatchScalarField() [1/3]

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().

Here is the caller graph for this function:

◆ alphaContactAngleFvPatchScalarField() [2/3]

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() [3/3]

Construct as copy setting internal field reference.

Definition at line 66 of file alphaContactAngleFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "alphaContactAngle"  )

Runtime type information.

◆ clone()

virtual tmp<fvPatchScalarField> clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 257 of file alphaContactAngleFvPatchScalarField.H.

References alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField().

Here is the call graph for this function:

◆ thetaProps()

const HashTable<contactAngleProperties>& thetaProps ( ) const
inline

Return the contact angle properties.

Definition at line 272 of file alphaContactAngleFvPatchScalarField.H.

Referenced by Foam::correctContactAngle().

Here is the caller graph for this function:

◆ write()


The documentation for this class was generated from the following files: