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