distributionContactAngleForce.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) 2017-2019 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::regionModels::surfaceFilmModels::distributionContactAngleForce
26 
27 Description
28  PDF distribution based film contact angle force
29 
30 See also
31  Foam::regionModels::surfaceFilmModels::contactAngleForce
32  Foam::distributionModel
33 
34 SourceFiles
35  distributionContactAngleForce.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef distributionContactAngleForce_H
40 #define distributionContactAngleForce_H
41 
42 #include "contactAngleForce.H"
43 #include "distributionModel.H"
44 #include "Random.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 namespace regionModels
51 {
52 namespace surfaceFilmModels
53 {
54 
55 /*---------------------------------------------------------------------------*\
56  Class distributionContactAngleForce Declaration
57 \*---------------------------------------------------------------------------*/
58 
60 :
61  public contactAngleForce
62 {
63  // Private Data
64 
65  //- Random number generator
66  Random rndGen_;
67 
68  //- Parcel size PDF model
69  const autoPtr<distributionModel> distribution_;
70 
71  //- Cached contact angle field
72  mutable volScalarField theta_;
73 
74  //- Current time index (used for updating)
75  mutable label curTimeIndex_;
76 
77 
78 protected:
79 
80  //- Return the contact angle field
81  virtual tmp<volScalarField> theta() const;
82 
83 
84 public:
85 
86  //- Runtime type information
87  TypeName("distributionContactAngle");
88 
89 
90  // Constructors
91 
92  //- Construct from surface film model
94  (
96  const dictionary& dict
97  );
98 
99  //- Disallow default bitwise copy construction
101  (
103  ) = delete;
104 
105 
106  //- Destructor
108 
109 
110  // Member Operators
111 
112  //- Disallow default bitwise assignment
113  void operator=(const distributionContactAngleForce&) = delete;
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace surfaceFilmModels
120 } // End namespace regionModels
121 } // End namespace Foam
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #endif
126 
127 // ************************************************************************* //
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
distributionContactAngleForce(surfaceFilmRegionModel &film, const dictionary &dict)
Construct from surface film model.
virtual tmp< volScalarField > theta() const
Return the contact angle field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
void operator=(const distributionContactAngleForce &)=delete
Disallow default bitwise assignment.
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
Random number generator.
Definition: Random.H:57
Base-class for film contact angle force models.
TypeName("distributionContactAngle")
Runtime type information.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.