temperatureDependentContactAngle.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) 2023 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::contactAngleModels::temperatureDependent
26 
27 Description
28  Temperature-dependent contact angle model.
29 
30  The contact angle is evaluated from the specified Foam::Function1 for the
31  temperature field looked-up from the mesh database the name of which
32  may optionally be provided.
33 
34 Usage
35  \table
36  Property | Description | Required | Default value
37  T | Temperature field name | no | T
38  contactAngle | contact angle function | yes |
39  \endtable
40 
41  Example of the contact angle specification:
42  \verbatim
43  contactAngle
44  {
45  type temperatureDependent;
46  contactAngle constant 0.07;
47  }
48  \endverbatim
49 
50 See also
51  Foam::contactAngleModel
52  Foam::Function1
53 
54 SourceFiles
55  temperatureDependentContactAngle.C
56 
57 \*---------------------------------------------------------------------------*/
58 
59 #ifndef temperatureDependentContactAngle_H
60 #define temperatureDependentContactAngle_H
61 
62 #include "contactAngleModel.H"
63 #include "Function1.H"
64 
65 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
66 
67 namespace Foam
68 {
69 
70 namespace contactAngleModels
71 {
72 
73 /*---------------------------------------------------------------------------*\
74  Class temperatureDependent Declaration
75 \*---------------------------------------------------------------------------*/
76 
77 class temperatureDependent
78 :
79  public contactAngleModel
80 {
81  // Private Data
82 
83  //- Name of temperature field, default = "T"
84  word TName_;
85 
86  //- Equilibrium contact angle function
87  autoPtr<Function1<scalar>> theta0_;
88 
89 
90 public:
91 
92  //- Runtime type information
93  TypeName("temperatureDependent");
94 
95 
96  // Constructors
97 
98  //- Construct from dictionary
100 
101  //- Construct and return a clone
102  virtual autoPtr<contactAngleModel> clone() const
103  {
105  }
106 
107 
108  //- Destructor
109  virtual ~temperatureDependent();
110 
111 
112  // Member Functions
113 
114  //- Cosine of the contact angle
115  virtual tmp<scalarField> cosTheta
116  (
117  const fvPatchVectorField& Up,
118  const vectorField& nHat
119  ) const;
120 
121  //- Write data in dictionary format
122  virtual void write(Ostream& os) const;
123 };
124 
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 } // End namespace contactAngleModels
129 } // End namespace Foam
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
virtual autoPtr< contactAngleModel > clone() const
Construct and return a clone.
virtual void write(Ostream &os) const
Write data in dictionary format.
temperatureDependent(const dictionary &dict)
Construct from dictionary.
virtual tmp< scalarField > cosTheta(const fvPatchVectorField &Up, const vectorField &nHat) const
Cosine of the contact angle.
TypeName("temperatureDependent")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:87
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
dictionary dict