correctContactAngle.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2022 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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
19  for more details.
20 
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/>.
23 
24 Class
25  Foam::correctContactAngle
26 
27 Description
28  Correction for the boundary condition on the unit normal nHat on
29  walls to produce the correct contact angle. The dynamic contact angle is
30  calculated from the component of the velocity on the direction of the
31  interface, parallel to the wall.
32 
33 SourceFiles
34  correctContactAngle.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef correctContactAngle_H
39 #define correctContactAngle_H
40 
42 #include "surfaceFields.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 //- Correct the contact angle for the two volume fraction fields
51 (
52  const volScalarField& alpha1,
53  const volScalarField& alpha2,
54  const volVectorField::Boundary& Ubf,
55  const dimensionedScalar& deltaN,
57 );
58 
59 }
60 
61 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
62 
63 #endif
64 
65 // ************************************************************************* //
GeometricBoundaryField< Type, PatchField, GeoMesh > Boundary
Type of the boundary field.
Namespace for OpenFOAM.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
void correctContactAngle(const volScalarField &alpha1, const volScalarField &alpha2, const volVectorField::Boundary &Ubf, const dimensionedScalar &deltaN, surfaceVectorField::Boundary &nHatbf)
Correct the contact angle for the two volume fraction fields.
VolField< scalar > volScalarField
Definition: volFieldsFwd.H:61
Foam::surfaceFields.