Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
interfaceProperties Class Reference

Contains the interface properties. More...

Inheritance diagram for interfaceProperties:
Inheritance graph
[legend]
Collaboration diagram for interfaceProperties:
Collaboration graph
[legend]

Public Member Functions

 interfaceProperties (const volScalarField &alpha1, const volVectorField &U, const IOdictionary &)
 Construct from volume fraction field gamma and IOdictionary. More...
 
scalar cAlpha () const
 
const dimensionedScalardeltaN () const
 
const surfaceScalarFieldnHatf () const
 
const volScalarFieldK () const
 
const dimensionedScalarsigma () const
 
tmp< volScalarFieldsigmaK () const
 
tmp< surfaceScalarFieldsurfaceTensionForce () const
 
tmp< volScalarFieldnearInterface () const
 Indicator of the proximity of the interface. More...
 
void correct ()
 
bool read ()
 Read transportProperties dictionary. More...
 

Static Public Attributes

static const scalar convertToRad
 Conversion factor for degrees into radians. More...
 

Private Member Functions

 interfaceProperties (const interfaceProperties &)
 Disallow default bitwise copy construct and assignment. More...
 
void operator= (const interfaceProperties &)
 
void correctContactAngle (surfaceVectorField::GeometricBoundaryField &nHat, surfaceVectorField::GeometricBoundaryField &gradAlphaf) const
 Correction for the boundary condition on the unit normal nHat on. More...
 
void calculateK ()
 Re-calculate the interface curvature. More...
 

Private Attributes

const dictionarytransportPropertiesDict_
 Keep a reference to the transportProperties dictionary. More...
 
scalar cAlpha_
 Compression coefficient. More...
 
dimensionedScalar sigma_
 Surface tension. More...
 
const dimensionedScalar deltaN_
 Stabilisation for normalisation of the interface normal. More...
 
const volScalarFieldalpha1_
 
const volVectorFieldU_
 
surfaceScalarField nHatf_
 
volScalarField K_
 

Detailed Description

Contains the interface properties.

Properties to aid interFoam:

  1. Correct the alpha boundary condition for dynamic contact angle.
  2. Calculate interface curvature.
Source files

Definition at line 54 of file interfaceProperties.H.

Constructor & Destructor Documentation

◆ interfaceProperties() [1/2]

Disallow default bitwise copy construct and assignment.

◆ interfaceProperties() [2/2]

interfaceProperties ( const volScalarField alpha1,
const volVectorField U,
const IOdictionary dict 
)

Construct from volume fraction field gamma and IOdictionary.

Definition at line 161 of file interfaceProperties.C.

Member Function Documentation

◆ operator=()

void operator= ( const interfaceProperties )
private

◆ correctContactAngle()

void correctContactAngle ( surfaceVectorField::GeometricBoundaryField nHat,
surfaceVectorField::GeometricBoundaryField gradAlphaf 
) const
private

Correction for the boundary condition on the unit normal nHat on.

walls to produce the correct contact dynamic angle calculated from the component of U parallel to the wall

Definition at line 54 of file interfaceProperties.C.

References Foam::acos(), Foam::constant::physicoChemical::b, boundary(), Foam::cos(), Foam::det(), alphaContactAngleFvPatchScalarField::evaluate(), forAll, Foam::mag(), mesh, patchi, alphaContactAngleFvPatchScalarField::theta(), and dimensioned::value().

Referenced by interfaceProperties::calculateK().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculateK()

void calculateK ( )
private

Re-calculate the interface curvature.

Definition at line 114 of file interfaceProperties.C.

References interfaceProperties::alpha1_, GeometricField::boundaryField(), interfaceProperties::correctContactAngle(), interfaceProperties::deltaN_, Foam::fvc::div(), Foam::fvc::grad(), Foam::fvc::interpolate(), interfaceProperties::K_, Foam::mag(), mesh, and interfaceProperties::nHatf_.

Referenced by interfaceProperties::correct().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cAlpha()

scalar cAlpha ( ) const
inline

Definition at line 114 of file interfaceProperties.H.

References interfaceProperties::cAlpha_.

◆ deltaN()

const dimensionedScalar& deltaN ( ) const
inline

Definition at line 119 of file interfaceProperties.H.

References interfaceProperties::deltaN_.

◆ nHatf()

const surfaceScalarField& nHatf ( ) const
inline

Definition at line 124 of file interfaceProperties.H.

References interfaceProperties::nHatf_.

◆ K()

const volScalarField& K ( ) const
inline

Definition at line 129 of file interfaceProperties.H.

References interfaceProperties::K_.

◆ sigma()

const dimensionedScalar& sigma ( ) const
inline

Definition at line 134 of file interfaceProperties.H.

References interfaceProperties::sigma_.

◆ sigmaK()

tmp<volScalarField> sigmaK ( ) const
inline

Definition at line 139 of file interfaceProperties.H.

References interfaceProperties::K_, and interfaceProperties::sigma_.

◆ surfaceTensionForce()

Foam::tmp< Foam::surfaceScalarField > surfaceTensionForce ( ) const

Definition at line 217 of file interfaceProperties.C.

References Foam::fvc::interpolate(), and Foam::fvc::snGrad().

Here is the call graph for this function:

◆ nearInterface()

Foam::tmp< Foam::volScalarField > nearInterface ( ) const

Indicator of the proximity of the interface.

Field values are 1 near and 0 away for the interface.

Definition at line 224 of file interfaceProperties.C.

References Foam::pos().

Here is the call graph for this function:

◆ correct()

void correct ( )
inline

Definition at line 150 of file interfaceProperties.H.

References interfaceProperties::calculateK().

Referenced by immiscibleIncompressibleTwoPhaseMixture::correct().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read()

bool read ( )

Read transportProperties dictionary.

Definition at line 230 of file interfaceProperties.C.

Referenced by immiscibleIncompressibleTwoPhaseMixture::read().

Here is the caller graph for this function:

Field Documentation

◆ transportPropertiesDict_

const dictionary& transportPropertiesDict_
private

Keep a reference to the transportProperties dictionary.

Definition at line 59 of file interfaceProperties.H.

◆ cAlpha_

scalar cAlpha_
private

Compression coefficient.

Definition at line 62 of file interfaceProperties.H.

Referenced by interfaceProperties::cAlpha().

◆ sigma_

dimensionedScalar sigma_
private

Surface tension.

Definition at line 65 of file interfaceProperties.H.

Referenced by interfaceProperties::sigma(), and interfaceProperties::sigmaK().

◆ deltaN_

const dimensionedScalar deltaN_
private

Stabilisation for normalisation of the interface normal.

Definition at line 68 of file interfaceProperties.H.

Referenced by interfaceProperties::calculateK(), and interfaceProperties::deltaN().

◆ alpha1_

const volScalarField& alpha1_
private

Definition at line 70 of file interfaceProperties.H.

Referenced by interfaceProperties::calculateK().

◆ U_

const volVectorField& U_
private

Definition at line 71 of file interfaceProperties.H.

◆ nHatf_

surfaceScalarField nHatf_
private

◆ K_

volScalarField K_
private

◆ convertToRad

const Foam::scalar convertToRad
static
Initial value:

Conversion factor for degrees into radians.

Definition at line 98 of file interfaceProperties.H.


The documentation for this class was generated from the following files:
Foam::constant::mathematical::pi
const scalar pi(M_PI)