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-2022 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 as copy setting internal field reference
112  (
115  );
116 
117  //- Construct and return a clone setting internal field reference
119  (
121  ) const
122  {
124  (
126  );
127  }
128 
129 
130  // Member Functions
131 
132  // Mapping functions
133 
134  //- Map (and resize as needed) from self given a mapping object
135  // Used to update fields following mesh topology change
136  virtual void autoMap(const fvPatchFieldMapper&);
137 
138  //- Reverse map the given fvPatchField onto this fvPatchField
139  // Used to reconstruct fields
140  virtual void rmap(const fvPatchScalarField&, const labelList&);
141 
142  //- Reset the fvPatchField to the given fvPatchField
143  // Used for mesh to mesh mapping
144  virtual void reset(const fvPatchScalarField&);
145 
146 
147  // Evaluation functions
148 
149  //- Update the coefficients associated with the patch field
150  virtual void updateCoeffs();
151 
152 
153  //- Write
154  virtual void write(Ostream&) const;
155 };
156 
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 } // End namespace Foam
161 
162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 
164 #endif
165 
166 // ************************************************************************* //
virtual void write(Ostream &) const
Write.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:63
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.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
A class for handling words, derived from string.
Definition: word.H:59
virtual tmp< fvPatchScalarField > clone(const DimensionedField< scalar, volMesh > &iF) const
Construct and return a clone setting internal field reference.
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.