1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 Foam::interfaceProperties
28 Contains the interface properties.
30 Properties to aid interFoam:
31 -# Correct the alpha boundary condition for dynamic contact angle.
32 -# Calculate interface curvature.
37 \*---------------------------------------------------------------------------*/
39 #ifndef interfaceProperties_H
40 #define interfaceProperties_H
42 #include "IOdictionary.H"
43 #include "volFields.H"
44 #include "surfaceFields.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 /*---------------------------------------------------------------------------*\
52 Class interfaceProperties Declaration
53 \*---------------------------------------------------------------------------*/
55 class interfaceProperties
59 //- Keep a reference to the transportProperties dictionary
60 const dictionary& transportPropertiesDict_;
62 //- Compression coefficient
66 dimensionedScalar sigma_;
68 //- Stabilisation for normalisation of the interface normal
69 const dimensionedScalar deltaN_;
71 const volScalarField& alpha1_;
72 const volVectorField& U_;
73 surfaceScalarField nHatf_;
77 // Private Member Functions
79 //- Disallow default bitwise copy construct and assignment
80 interfaceProperties(const interfaceProperties&);
81 void operator=(const interfaceProperties&);
83 //- Correction for the boundary condition on the unit normal nHat on
84 // walls to produce the correct contact dynamic angle
85 // calculated from the component of U parallel to the wall
86 void correctContactAngle
88 surfaceVectorField::GeometricBoundaryField& nHat
91 //- Re-calculate the interface curvature
97 //- Conversion factor for degrees into radians
98 static const scalar convertToRad;
103 //- Construct from volume fraction field gamma and IOdictionary
106 const volScalarField& alpha1,
107 const volVectorField& U,
114 scalar cAlpha() const
119 const dimensionedScalar& deltaN() const
124 const surfaceScalarField& nHatf() const
129 const volScalarField& K() const
134 const dimensionedScalar& sigma() const
139 tmp<volScalarField> sigmaK() const
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 } // End namespace Foam
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 // ************************************************************************* //