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