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 
72 protected:
73 
74  //- Return the contact angle field
75  virtual tmp<volScalarField> theta() const;
76 
77 
78 public:
79 
80  //- Runtime type information
81  TypeName("distributionContactAngle");
82 
83 
84  // Constructors
85 
86  //- Construct from surface film model
88  (
90  const dictionary& dict
91  );
92 
93  //- Disallow default bitwise copy construction
95  (
97  ) = delete;
98 
99 
100  //- Destructor
102 
103 
104  // Member Operators
105 
106  //- Disallow default bitwise assignment
107  void operator=(const distributionContactAngleForce&) = delete;
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace surfaceFilmModels
114 } // End namespace regionModels
115 } // End namespace Foam
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #endif
120 
121 // ************************************************************************* //
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:158
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.