contactAngleForce.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2011-2013 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::contactAngleForce
26 
27 Description
28  Film contact angle force
29 
30  The effect of the contact angle force can be ignored over a specified
31  distance from patches.
32 
33 SourceFiles
34  contactAngleForce.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef contactAngleForce_H
39 #define contactAngleForce_H
40 
41 #include "force.H"
42 #include "distributionModel.H"
43 #include "cachedRandom.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace regionModels
50 {
51 namespace surfaceFilmModels
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class contactAngleForce Declaration
56 \*---------------------------------------------------------------------------*/
57 
59 :
60  public force
61 {
62 private:
63 
64  // Private Data
65 
66  //- Coefficient applied to the contact angle force
67  scalar Ccf_;
68 
69  //- Random number generator
70  cachedRandom rndGen_;
71 
72  //- Parcel size PDF model
74 
75  //- Mask over which force is applied
76  volScalarField mask_;
77 
78 
79  // Private member functions
80 
81  //- Initialise
82  void initialise();
83 
84  //- Disallow default bitwise copy construct
86 
87  //- Disallow default bitwise assignment
88  void operator=(const contactAngleForce&);
89 
90 
91 public:
92 
93  //- Runtime type information
94  TypeName("contactAngle");
95 
96 
97  // Constructors
98 
99  //- Construct from surface film model
101  (
103  const dictionary& dict
104  );
105 
106 
107  //- Destructor
108  virtual ~contactAngleForce();
109 
110 
111  // Member Functions
112 
113  // Evolution
114 
115  //- Correct
117 };
118 
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 } // End namespace surfaceFilmModels
123 } // End namespace regionModels
124 } // End namespace Foam
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
U
Definition: pEqn.H:83
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
TypeName("contactAngle")
Runtime type information.
Base class for film (stress-based) force models.
Definition: force.H:55
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
Random number generator.
Definition: cachedRandom.H:63
virtual tmp< fvVectorMatrix > correct(volVectorField &U)
Correct.
const surfaceFilmModel & owner() const
Return const access to the owner surface film model.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:53
A class for managing temporary objects.
Definition: PtrList.H:54
Namespace for OpenFOAM.