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
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 // ************************************************************************* //
Foam::fvPatchField< scalar >
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::smoluchowskiJumpTFvPatchScalarField::accommodationCoeff_
scalar accommodationCoeff_
Accommodation coefficient.
Definition: smoluchowskiJumpTFvPatchScalarField.H:68
Foam::smoluchowskiJumpTFvPatchScalarField::updateCoeffs
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Foam::smoluchowskiJumpTFvPatchScalarField::clone
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
Definition: smoluchowskiJumpTFvPatchScalarField.H:110
Foam::smoluchowskiJumpTFvPatchScalarField::autoMap
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Foam::Field
Pre-declare SubField and related Field type.
Definition: Field.H:57
Foam::smoluchowskiJumpTFvPatchScalarField::smoluchowskiJumpTFvPatchScalarField
smoluchowskiJumpTFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Foam::smoluchowskiJumpTFvPatchScalarField::rhoName_
word rhoName_
Density field name, default = "rho".
Definition: smoluchowskiJumpTFvPatchScalarField.H:59
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
Foam::smoluchowskiJumpTFvPatchScalarField::write
virtual void write(Ostream &) const
Write.
Foam::smoluchowskiJumpTFvPatchScalarField::TypeName
TypeName("smoluchowskiJumpT")
Runtime type information.
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
mixedFvPatchFields.H
Foam::smoluchowskiJumpTFvPatchScalarField::gamma_
scalar gamma_
Heat capacity ratio (default 1.4)
Definition: smoluchowskiJumpTFvPatchScalarField.H:74
Foam::smoluchowskiJumpTFvPatchScalarField::rmap
virtual void rmap(const fvPatchField< scalar > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
Foam::smoluchowskiJumpTFvPatchScalarField::Twall_
scalarField Twall_
Wall surface temperature.
Definition: smoluchowskiJumpTFvPatchScalarField.H:71
Foam::smoluchowskiJumpTFvPatchScalarField
Smoluchowski temperature jump boundary condition.
Definition: smoluchowskiJumpTFvPatchScalarField.H:48
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59
Foam::smoluchowskiJumpTFvPatchScalarField::muName_
word muName_
Dynamic viscosity field name, default = "thermo:mu".
Definition: smoluchowskiJumpTFvPatchScalarField.H:65
Foam::fvPatchFieldMapper
Foam::fvPatchFieldMapper.
Definition: fvPatchFieldMapper.H:45
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53
Foam::smoluchowskiJumpTFvPatchScalarField::psiName_
word psiName_
Compressibility field name, default = "thermo:psi".
Definition: smoluchowskiJumpTFvPatchScalarField.H:62
Foam::smoluchowskiJumpTFvPatchScalarField::UName_
word UName_
Velocity field name, default = "U".
Definition: smoluchowskiJumpTFvPatchScalarField.H:56
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:51