perturbedTemperatureDependentContactAngleForce.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::
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. constant, 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::Function1s
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 "Random.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  Random rndGen_;
80 
81  //- Parcel size PDF model
82  const autoPtr<distributionModel> distribution_;
83 
84 
85 protected:
86 
87  //- Return the contact angle field
88  virtual tmp<volScalarField> theta() const;
89 
90 
91 public:
92 
93  //- Runtime type information
94  TypeName("perturbedTemperatureDependentContactAngle");
95 
96 
97  // Constructors
98 
99  //- Construct from surface film model
101  (
103  const dictionary& dict
104  );
105 
106  //- Disallow default bitwise copy construction
108  (
110  ) = delete;
111 
112 
113  //- Destructor
115 
116 
117  // Member Operators
118 
119  //- Disallow default bitwise assignment
120  void operator=
121  (
123  ) = delete;
124 };
125 
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 } // End namespace surfaceFilmModels
130 } // End namespace regionModels
131 } // End namespace Foam
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 #endif
136 
137 // ************************************************************************* //
perturbedTemperatureDependentContactAngleForce(surfaceFilmRegionModel &film, const dictionary &dict)
Construct from surface film model.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
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.
TypeName("perturbedTemperatureDependentContactAngle")
Runtime type information.
Random number generator.
Definition: Random.H:57
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.