Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
applications
solvers
compressible
rhoCentralFoam
BCs
T
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) 1991-2010 OpenCFD Ltd.
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 <
finiteVolume/mixedFvPatchFields.H
>
39
40
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41
42
namespace
Foam
43
{
44
45
/*---------------------------------------------------------------------------*\
46
Class smoluchowskiJumpTFvPatch Declaration
47
\*---------------------------------------------------------------------------*/
48
49
class
smoluchowskiJumpTFvPatchScalarField
50
:
51
public
mixedFvPatchScalarField
52
{
53
54
// Private data
55
56
// Accommodation coefficient
57
scalar accommodationCoeff_;
58
59
// Wall surface temperature
60
scalarField
Twall_;
61
62
// Heat capacity ratio (default 1.4)
63
scalar gamma_;
64
65
public
:
66
67
//- Runtime type information
68
TypeName
(
"smoluchowskiJumpT"
);
69
70
71
// Constructors
72
73
//- Construct from patch and internal field
74
smoluchowskiJumpTFvPatchScalarField
75
(
76
const
fvPatch
&,
77
const
DimensionedField<scalar, volMesh>
&
78
);
79
80
//- Construct from patch, internal field and dictionary
81
smoluchowskiJumpTFvPatchScalarField
82
(
83
const
fvPatch
&,
84
const
DimensionedField<scalar, volMesh>
&,
85
const
dictionary
&
86
);
87
88
//- Construct by mapping given smoluchowskiJumpTFvPatchScalarField
89
// onto a new patch
90
smoluchowskiJumpTFvPatchScalarField
91
(
92
const
smoluchowskiJumpTFvPatchScalarField
&,
93
const
fvPatch
&,
94
const
DimensionedField<scalar, volMesh>
&,
95
const
fvPatchFieldMapper
&
96
);
97
98
//- Construct and return a clone
99
virtual
tmp<fvPatchScalarField>
clone
()
const
100
{
101
return
tmp<fvPatchScalarField>
102
(
103
new
smoluchowskiJumpTFvPatchScalarField
(*
this
)
104
);
105
}
106
107
//- Construct as copy setting internal field reference
108
smoluchowskiJumpTFvPatchScalarField
109
(
110
const
smoluchowskiJumpTFvPatchScalarField
&,
111
const
DimensionedField<scalar, volMesh>
&
112
);
113
114
//- Construct and return a clone setting internal field reference
115
virtual
tmp<fvPatchScalarField>
clone
116
(
117
const
DimensionedField<scalar, volMesh>
& iF
118
)
const
119
{
120
return
tmp<fvPatchScalarField>
121
(
122
new
smoluchowskiJumpTFvPatchScalarField
(*
this
, iF)
123
);
124
}
125
126
// Mapping functions
127
128
//- Map (and resize as needed) from self given a mapping object
129
virtual
void
autoMap
130
(
131
const
fvPatchFieldMapper
&
132
);
133
134
//- Reverse map the given fvPatchField onto this fvPatchField
135
virtual
void
rmap
136
(
137
const
fvPatchField<scalar>
&,
138
const
labelList
&
139
);
140
141
142
// Evaluation functions
143
144
//- Update the coefficients associated with the patch field
145
virtual
void
updateCoeffs
();
146
147
148
//- Write
149
virtual
void
write
(
Ostream
&)
const
;
150
};
151
152
153
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154
155
}
// End namespace Foam
156
157
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
158
159
#endif
160
161
// ************************ vim: set sw=4 sts=4 et: ************************ //