distributionContactAngleForce.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::regionModels::surfaceFilmModels::distributionContactAngleForce
28 
29 Description
30  PDF distribution based film contact angle force
31 
32 See also
33  Foam::regionModels::surfaceFilmModels::contactAngleForce
34  Foam::distributionModel
35 
36 SourceFiles
37  distributionContactAngleForce.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef distributionContactAngleForce_H
42 #define distributionContactAngleForce_H
43 
44 #include "contactAngleForce.H"
45 #include "distributionModel.H"
46 #include "Random.H"
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 namespace regionModels
53 {
54 namespace surfaceFilmModels
55 {
56 
57 /*---------------------------------------------------------------------------*\
58  Class distributionContactAngleForce Declaration
59 \*---------------------------------------------------------------------------*/
60 
62 :
63  public contactAngleForce
64 {
65  // Private Data
66 
67  //- Random number generator
68  Random rndGen_;
69 
70  //- Parcel size PDF model
71  const autoPtr<distributionModel> distribution_;
72 
73 
74  // Private member functions
75 
76  //- No copy construct
78  (
80  ) = delete;
81 
82  //- No copy assignment
83  void operator=(const distributionContactAngleForce&) = delete;
84 
85 
86 protected:
87 
88  //- Return the contact angle field
89  virtual tmp<volScalarField> theta() const;
90 
91 
92 public:
93 
94  //- Runtime type information
95  TypeName("distributionContactAngle");
96 
97 
98  // Constructors
99 
100  //- Construct from surface film model
102  (
104  const dictionary& dict
105  );
106 
107 
108  //- Destructor
110 };
111 
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 } // End namespace surfaceFilmModels
116 } // End namespace regionModels
117 } // End namespace Foam
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 #endif
122 
123 // ************************************************************************* //
virtual tmp< volScalarField > theta() const
Return the contact angle field.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:104
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
Random number generator.
Definition: Random.H:55
Base-class for film contact angle force models.
TypeName("distributionContactAngle")
Runtime type information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Definition: HashPtrTable.H:48
A class for managing temporary objects.
Definition: HashPtrTable.H:50
Namespace for OpenFOAM.