All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
smoluchowskiJumpTFvPatchScalarField.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) 2011-2020 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 smoluchowskiJumpTFvPatchScalarField_H
36 #define smoluchowskiJumpTFvPatchScalarField_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 
139  // Member Functions
140 
141  // Mapping functions
142 
143  //- Map (and resize as needed) from self given a mapping object
144  // Used to update fields following mesh topology change
145  virtual void autoMap(const fvPatchFieldMapper&);
146 
147  //- Reverse map the given fvPatchField onto this fvPatchField
148  // Used to reconstruct fields
149  virtual void rmap(const fvPatchScalarField&, const labelList&);
150 
151 
152  // Evaluation functions
153 
154  //- Update the coefficients associated with the patch field
155  virtual void updateCoeffs();
156 
157 
158  //- Write
159  virtual void write(Ostream&) const;
160 };
161 
162 
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164 
165 } // End namespace Foam
166 
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 
169 #endif
170 
171 // ************************************************************************* //
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:158
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:66
virtual void rmap(const fvPatchScalarField &, 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:54
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:53
Namespace for OpenFOAM.