smoluchowskiJumpTFvPatchScalarField.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) 2011-2012 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::smoluchowskiJumpTFvPatchScalarField
26 
27 Description
28  Smoluchowski temperature jump boundary condition
29 
30 SourceFiles
31  smoluchowskiJumpTFvPatchScalarField.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef smoluchowskiJumpTFvPatchScalarFields_H
36 #define smoluchowskiJumpTFvPatchScalarFields_H
37 
38 #include "mixedFvPatchFields.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class smoluchowskiJumpTFvPatch Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 :
51  public mixedFvPatchScalarField
52 {
53 
54  // Private data
55 
56  //- Velocity field name, default = "U"
57  word UName_;
58 
59  //- Density field name, default = "rho"
60  word rhoName_;
61 
62  //- Compressibility field name, default = "thermo:psi"
63  word psiName_;
64 
65  //- Dynamic viscosity field name, default = "thermo:mu"
66  word muName_;
67 
68  //- Accommodation coefficient
69  scalar accommodationCoeff_;
70 
71  //- Wall surface temperature
72  scalarField Twall_;
73 
74  //- Heat capacity ratio (default 1.4)
75  scalar gamma_;
76 
77 public:
78 
79  //- Runtime type information
80  TypeName("smoluchowskiJumpT");
81 
82 
83  // Constructors
84 
85  //- Construct from patch and internal field
87  (
88  const fvPatch&,
90  );
91 
92  //- Construct from patch, internal field and dictionary
94  (
95  const fvPatch&,
97  const dictionary&
98  );
99 
100  //- Construct by mapping given smoluchowskiJumpTFvPatchScalarField
101  // onto a new patch
103  (
105  const fvPatch&,
107  const fvPatchFieldMapper&
108  );
109 
110  //- Construct and return a clone
111  virtual tmp<fvPatchScalarField> clone() const
112  {
114  (
116  );
117  }
118 
119  //- Construct as copy setting internal field reference
121  (
124  );
125 
126  //- Construct and return a clone setting internal field reference
128  (
130  ) const
131  {
133  (
135  );
136  }
137 
138  // Mapping functions
139 
140  //- Map (and resize as needed) from self given a mapping object
141  virtual void autoMap
142  (
143  const fvPatchFieldMapper&
144  );
145 
146  //- Reverse map the given fvPatchField onto this fvPatchField
147  virtual void rmap
148  (
149  const fvPatchField<scalar>&,
150  const labelList&
151  );
152 
153 
154  // Evaluation functions
155 
156  //- Update the coefficients associated with the patch field
157  virtual void updateCoeffs();
158 
159 
160  //- Write
161  virtual void write(Ostream&) const;
162 };
163 
164 
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166 
167 } // End namespace Foam
168 
169 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170 
171 #endif
172 
173 // ************************************************************************* //
virtual void write(Ostream &) const
Write.
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:65
virtual void rmap(const fvPatchField< scalar > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A class for handling words, derived from string.
Definition: word.H:59
Foam::fvPatchFieldMapper.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
TypeName("smoluchowskiJumpT")
Runtime type information.
Smoluchowski temperature jump boundary condition.
smoluchowskiJumpTFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for managing temporary objects.
Definition: PtrList.H:54
Namespace for OpenFOAM.