1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. 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,
89 surfaceVectorField::GeometricBoundaryField& gradAlphaf
92 //- Re-calculate the interface curvature
98 //- Conversion factor for degrees into radians
99 static const scalar convertToRad;
104 //- Construct from volume fraction field gamma and IOdictionary
107 const volScalarField& alpha1,
108 const volVectorField& U,
115 scalar cAlpha() const
120 const dimensionedScalar& deltaN() const
125 const surfaceScalarField& nHatf() const
130 const volScalarField& K() const
135 const dimensionedScalar& sigma() const
140 tmp<volScalarField> sigmaK() const
152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 } // End namespace Foam
156 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 // ************************************************************************* //