filmContactAngleFvPatchScalarField Class Reference

Film contact angle boundary condition. More...

Inheritance diagram for filmContactAngleFvPatchScalarField:
Collaboration diagram for filmContactAngleFvPatchScalarField:

Public Member Functions

 TypeName ("filmContactAngle")
 Runtime type information. More...
 
 filmContactAngleFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 filmContactAngleFvPatchScalarField (const filmContactAngleFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given filmContactAngleFvPatchScalarField. More...
 
 filmContactAngleFvPatchScalarField (const filmContactAngleFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 filmContactAngleFvPatchScalarField (const filmContactAngleFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
tmp< scalarFieldcosTheta (const fvPatchVectorField &Up, const vectorField &nHat) const
 Return the cosine of the contact angle. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

Film contact angle boundary condition.

Usage
Examples of the contact angle specification:

Simple constant equilibrium contact angle:

<patchName>
{
    type            filmContactAngle;

    contactAngle
    {
        type                constant;
        theta0              70;
    }
}

Same as above but using the simpler specification:

<patchName>
{
    type            filmContactAngle;

    theta0          70;
}

Dynamic contact angle evaluated from the velocity:

<patchName>
{
    type            filmContactAngle;

    contactAngle
    {
        type           dynamic;
        uTheta         1;
        theta0         70;
        thetaAdv       100;
        thetaRec       50;
    }
}
See also
Foam::contactAngleModel Foam::contactAngleModels::constant Foam::contactAngleModels::dynamic
Source files

Definition at line 99 of file filmContactAngleFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ filmContactAngleFvPatchScalarField() [1/4]

filmContactAngleFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 31 of file filmContactAngleFvPatchScalarField.C.

◆ filmContactAngleFvPatchScalarField() [2/4]

filmContactAngleFvPatchScalarField ( const filmContactAngleFvPatchScalarField psf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fvPatchFieldMapper mapper 
)

Construct by mapping given filmContactAngleFvPatchScalarField.

onto a new patch

Definition at line 43 of file filmContactAngleFvPatchScalarField.C.

◆ filmContactAngleFvPatchScalarField() [3/4]

Disallow copy without setting internal field reference.

◆ filmContactAngleFvPatchScalarField() [4/4]

Copy constructor setting internal field reference.

Definition at line 56 of file filmContactAngleFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "filmContactAngle"  )

Runtime type information.

◆ cosTheta()

Foam::tmp< Foam::scalarField > cosTheta ( const fvPatchVectorField Up,
const vectorField nHat 
) const

Return the cosine of the contact angle.

Definition at line 69 of file filmContactAngleFvPatchScalarField.C.

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 79 of file filmContactAngleFvPatchScalarField.C.

References Foam::vtkWriteOps::write(), and Foam::writeEntry().

Here is the call graph for this function:

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