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
src
turbulenceModels
incompressible
RAS
derivedFvPatchFields
turbulentHeatFluxTemperature
turbulentHeatFluxTemperatureFvPatchScalarField.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::turbulentHeatFluxTemperatureFvPatchScalarField
26
27
Description
28
Fixed heat flux boundary condition for temperature.
29
30
SourceFiles
31
turbulentHeatFluxTemperatureFvPatchScalarField.C
32
33
\*---------------------------------------------------------------------------*/
34
35
#ifndef turbulentHeatFluxTemperatureFvPatchScalarFields_H
36
#define turbulentHeatFluxTemperatureFvPatchScalarFields_H
37
38
#include <
finiteVolume/fvPatchFields.H
>
39
#include <
finiteVolume/fixedGradientFvPatchFields.H
>
40
41
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42
43
namespace
Foam
44
{
45
namespace
incompressible
46
{
47
48
/*---------------------------------------------------------------------------*\
49
Class turbulentHeatFluxTemperatureFvPatchScalarField Declaration
50
\*---------------------------------------------------------------------------*/
51
52
class
turbulentHeatFluxTemperatureFvPatchScalarField
53
:
54
public
fixedGradientFvPatchScalarField
55
{
56
// Private data
57
58
//- Heat flux [W/m2]
59
scalarField
q_;
60
61
//- Name of effective thermal diffusivity field
62
word
alphaEffName_;
63
64
//- Name of specific heat capacity field
65
word
CpName_;
66
67
68
public
:
69
70
//- Runtime type information
71
TypeName
(
"turbulentHeatFluxTemperature"
);
72
73
74
// Constructors
75
76
//- Construct from patch and internal field
77
turbulentHeatFluxTemperatureFvPatchScalarField
78
(
79
const
fvPatch
&,
80
const
DimensionedField<scalar, volMesh>
&
81
);
82
83
//- Construct from patch, internal field and dictionary
84
turbulentHeatFluxTemperatureFvPatchScalarField
85
(
86
const
fvPatch
&,
87
const
DimensionedField<scalar, volMesh>
&,
88
const
dictionary
&
89
);
90
91
//- Construct by mapping given
92
// turbulentHeatFluxTemperatureFvPatchScalarField onto
93
// a new patch
94
turbulentHeatFluxTemperatureFvPatchScalarField
95
(
96
const
turbulentHeatFluxTemperatureFvPatchScalarField
&,
97
const
fvPatch
&,
98
const
DimensionedField<scalar, volMesh>
&,
99
const
fvPatchFieldMapper
&
100
);
101
102
//- Construct as copy
103
turbulentHeatFluxTemperatureFvPatchScalarField
104
(
105
const
turbulentHeatFluxTemperatureFvPatchScalarField
&
106
);
107
108
//- Construct and return a clone
109
virtual
tmp<fvPatchScalarField>
clone
()
const
110
{
111
return
tmp<fvPatchScalarField>
112
(
113
new
turbulentHeatFluxTemperatureFvPatchScalarField
(*
this
)
114
);
115
}
116
117
//- Construct as copy setting internal field reference
118
turbulentHeatFluxTemperatureFvPatchScalarField
119
(
120
const
turbulentHeatFluxTemperatureFvPatchScalarField
&,
121
const
DimensionedField<scalar, volMesh>
&
122
);
123
124
//- Construct and return a clone setting internal field reference
125
virtual
tmp<fvPatchScalarField>
clone
126
(
127
const
DimensionedField<scalar, volMesh>
& iF
128
)
const
129
{
130
return
tmp<fvPatchScalarField>
131
(
132
new
turbulentHeatFluxTemperatureFvPatchScalarField
133
(
134
*
this
,
135
iF
136
)
137
);
138
}
139
140
141
// Member functions
142
143
// Mapping functions
144
145
//- Map (and resize as needed) from self given a mapping object
146
virtual
void
autoMap(
const
fvPatchFieldMapper
&);
147
148
//- Reverse map the given fvPatchField onto this fvPatchField
149
virtual
void
rmap
150
(
151
const
fvPatchScalarField
&,
152
const
labelList
&
153
);
154
155
156
// Evaluation functions
157
158
//- Update the coefficients associated with the patch field
159
virtual
void
updateCoeffs();
160
161
162
// I-O
163
164
//- Write
165
virtual
void
write(
Ostream
&)
const
;
166
};
167
168
169
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170
171
}
// End namespace incompressible
172
}
// End namespace Foam
173
174
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
175
176
#endif
177
178
// ************************ vim: set sw=4 sts=4 et: ************************ //