temperatureDependentAlphaContactAngleFvPatchScalarField.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) 2015-2016 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::temperatureDependentAlphaContactAngleFvPatchScalarField
26 
27 Description
28  Temperature-dependent constant alphaContactAngle scalar boundary condition.
29 
30  \heading Patch usage
31 
32  \table
33  Property | Description | Required | Default value
34  TName | Temperature field name | no | T
35  theta0 | Contact angle data | yes |
36  \endtable
37 
38  Example of the boundary condition specification:
39  \verbatim
40  myPatch
41  {
42  type temperatureDependentAlphaContactAngle;
43  theta0 constant 60;
44  }
45  \endverbatim
46 
47 SeeAlso
48  Foam::alphaContactAngleFvPatchScalarField
49  Foam::constantAlphaContactAngleFvPatchScalarField
50 
51 SourceFiles
52  temperatureDependentAlphaContactAngleFvPatchScalarField.C
53 
54 \*---------------------------------------------------------------------------*/
55 
56 #ifndef temperatureDependentAlphaContactAngleFvPatchScalarField_H
57 #define temperatureDependentAlphaContactAngleFvPatchScalarField_H
58 
59 #include "alphaContactAngleFvPatchScalarField.H"
60 #include "DataEntry.H"
61 
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
63 
64 namespace Foam
65 {
66 
67 /*---------------------------------------------------------------------------*\
68  Class temperatureDependentAlphaContactAngleFvPatch Declaration
69 \*---------------------------------------------------------------------------*/
70 
71 class temperatureDependentAlphaContactAngleFvPatchScalarField
72 :
73  public alphaContactAngleFvPatchScalarField
74 {
75  // Private data
76 
77  //- Name of temperature field, default = "T"
78  word TName_;
79 
80  //- Equilibrium contact angle table
81  autoPtr<DataEntry<scalar> > theta0_;
82 
83 
84 public:
85 
86  //- Runtime type information
87  TypeName("temperatureDependentAlphaContactAngle");
88 
89 
90  // Constructors
91 
92  //- Construct from patch and internal field
94  (
95  const fvPatch&,
97  );
98 
99  //- Construct from patch, internal field and dictionary
101  (
102  const fvPatch&,
104  const dictionary&
105  );
106 
107  //- Construct by mapping given
108  // temperatureDependentAlphaContactAngleFvPatchScalarField
109  // onto a new patch
111  (
113  const fvPatch&,
115  const fvPatchFieldMapper&
116  );
117 
118  //- Construct as copy
120  (
122  );
123 
124  //- Construct and return a clone
125  virtual tmp<fvPatchScalarField> clone() const
126  {
128  (
130  (
131  *this
132  )
133  );
134  }
135 
136  //- Construct as copy setting internal field reference
138  (
141  );
142 
143  //- Construct and return a clone setting internal field reference
145  (
147  ) const
148  {
150  (
152  (
153  *this,
154  iF
155  )
156  );
157  }
158 
160  // Member functions
161 
162  //- Return the equilibrium contact-angle
163  virtual tmp<scalarField> theta
164  (
165  const fvPatchVectorField& Up,
166  const fvsPatchVectorField& nHat
167  ) const;
168 
169  //- Write
170  virtual void write(Ostream&) const;
171 };
172 
173 
174 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
175 
176 } // End namespace Foam
177 
178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179 
180 #endif
181 
182 // ************************************************************************* //
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
temperatureDependentAlphaContactAngleFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Foam::fvPatchFieldMapper.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
Namespace for OpenFOAM.
Temperature-dependent constant alphaContactAngle scalar boundary condition.
TypeName("temperatureDependentAlphaContactAngle")
Runtime type information.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:65
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
virtual tmp< scalarField > theta(const fvPatchVectorField &Up, const fvsPatchVectorField &nHat) const
Return the equilibrium contact-angle.
A class for managing temporary objects.
Definition: PtrList.H:118
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Definition: fvsPatchField.H:65