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-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::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 = "psi"
63  word psiName_;
64 
65  //- Dynamic viscosity field name, default = "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, internal field and dictionary
87  (
88  const fvPatch&,
90  const dictionary&
91  );
92 
93  //- Construct by mapping given smoluchowskiJumpTFvPatchScalarField
94  // onto a new patch
96  (
98  const fvPatch&,
100  const fvPatchFieldMapper&
101  );
102 
103  //- Construct as copy setting internal field reference
105  (
108  );
109 
110  //- Construct and return a clone setting internal field reference
112  (
114  ) const
115  {
117  (
119  );
120  }
121 
122 
123  // Member Functions
124 
125  // Mapping functions
126 
127  //- Map the given fvPatchField onto this fvPatchField
128  virtual void map
129  (
130  const fvPatchScalarField&,
131  const fvPatchFieldMapper&
132  );
133 
134  //- Reset the fvPatchField to the given fvPatchField
135  // Used for mesh to mesh mapping
136  virtual void reset(const fvPatchScalarField&);
137 
138 
139  // Evaluation functions
140 
141  //- Update the coefficients associated with the patch field
142  virtual void updateCoeffs();
143 
144 
145  //- Write
146  virtual void write(Ostream&) const;
147 };
148 
149 
150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 
152 } // End namespace Foam
153 
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 
156 #endif
157 
158 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Foam::fvPatchFieldMapper.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:87
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:64
Smoluchowski temperature jump boundary condition.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
virtual tmp< fvPatchScalarField > clone(const DimensionedField< scalar, volMesh > &iF) const
Construct and return a clone setting internal field reference.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void map(const fvPatchScalarField &, const fvPatchFieldMapper &)
Map the given fvPatchField onto this fvPatchField.
TypeName("smoluchowskiJumpT")
Runtime type information.
smoluchowskiJumpTFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
A class for managing temporary objects.
Definition: tmp.H:55
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.