perturbedTemperatureDependentContactAngleForce.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) 2017 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::
26  perturbedTemperatureDependentContactAngleForce
27 
28 Description
29  Temperature dependent contact angle force with a stochastic perturbation
30 
31  The contact angle in degrees is specified as a Foam::Function1 type, to
32  enable the use of, e.g. contant, polynomial, table values and the
33  stochastic perturbation obtained from a
34  Foam::distributionModels::distributionModel
35 
36 See also
37  Foam::regionModels::surfaceFilmModels::contactAngleForce
38  Foam::regionModels::surfaceFilmModels::temperatureDependentContactAngleForce
39  Foam::regionModels::surfaceFilmModels::distributionContactAngleForce
40  Foam::Function1Types
41  Foam::distributionModel
42 
43 SourceFiles
44  perturbedTemperatureDependentContactAngleForce.C
45 
46 \*---------------------------------------------------------------------------*/
47 
48 #ifndef perturbedTemperatureDependentContactAngleForce_H
49 #define perturbedTemperatureDependentContactAngleForce_H
50 
51 #include "contactAngleForce.H"
52 #include "Function1.H"
53 #include "distributionModel.H"
54 #include "cachedRandom.H"
55 
56 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
57 
58 namespace Foam
59 {
60 namespace regionModels
61 {
62 namespace surfaceFilmModels
63 {
64 
65 /*---------------------------------------------------------------------------*\
66  Class perturbedTemperatureDependentContactAngleForce Declaration
67 \*---------------------------------------------------------------------------*/
68 
70 :
71  public contactAngleForce
72 {
73  // Private Data
74 
75  //- Contact angle function
76  autoPtr<Function1<scalar>> thetaPtr_;
77 
78  //- Random number generator
79  cachedRandom rndGen_;
80 
81  //- Parcel size PDF model
82  const autoPtr<distributionModel> distribution_;
83 
84 
85  // Private member functions
86 
87  //- Disallow default bitwise copy construct
89  (
91  );
92 
93  //- Disallow default bitwise assignment
95 
96 
97 protected:
98 
99  //- Return the contact angle field
100  virtual tmp<volScalarField> theta() const;
101 
102 
103 public:
104 
105  //- Runtime type information
106  TypeName("perturbedTemperatureDependentContactAngle");
107 
108 
109  // Constructors
110 
111  //- Construct from surface film model
113  (
115  const dictionary& dict
116  );
117 
118 
119  //- Destructor
121 };
122 
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 } // End namespace surfaceFilmModels
127 } // End namespace regionModels
128 } // End namespace Foam
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #endif
133 
134 // ************************************************************************* //
const surfaceFilmModel & film() const
Return const access to the film surface film model.
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
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
TypeName("perturbedTemperatureDependentContactAngle")
Runtime type information.
Base-class for film contact angle force models.
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.