fixedReferenceTemperature.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 | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2017-2020 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::heatTransferCoeffModels::fixedReferenceTemperature
28
29Description
30 Heat transfer coefficient calculation
31 that employs a fixed reference temperature.
32
33 The heat transfer coefficient is specified by:
34
35 \f[
36 h = \frac{q}{T_{ref} - T_w}
37 \f]
38
39 where
40 \vartable
41 h | Convective heat transfer coefficient of the flow [W/(m2 K)]
42 q | Heat flux [W/m2]
43 T_{ref} | Reference temperature of surrounding fluid [K]
44 T_w | Patch temperature [K]
45 \endvartable
46
47Usage
48 Minimal example by using \c system/controlDict.functions:
49 \verbatim
50 heatTransferCoeff1
51 {
52 // Mandatory and other optional entries
53 ...
54 htcModel fixedReferenceTemperature;
55
56 // Conditional mandatory entries (runtime modifiable)
57 Tref 0;
58 }
59 \endverbatim
60
61 where the entries mean:
62 \table
63 Property | Description | Type | Reqd | Dflt
64 type | Model name: fixedReferenceTemperature | word | yes | -
65 Tref | Reference temperature of surrounding fluid | scalar | yes | -
66 \endtable
67
68See also
69 - Foam::heatTransferCoeffModel
70 - Foam::heatTransferCoeffModels::localReferenceTemperature
71 - Foam::heatTransferCoeffModels::ReynoldsAnalogy
72
73SourceFiles
74 fixedReferenceTemperature.C
75
76\*---------------------------------------------------------------------------*/
77
78#ifndef heatTransferCoeffModels_fixedReferenceTemperature_H
79#define heatTransferCoeffModels_fixedReferenceTemperature_H
80
82
83// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
84
85namespace Foam
86{
87namespace heatTransferCoeffModels
88{
89
90/*---------------------------------------------------------------------------*\
91 Class fixedReferenceTemperature Declaration
92\*---------------------------------------------------------------------------*/
93
94class fixedReferenceTemperature
95:
96 public heatTransferCoeffModel
97{
98protected:
99
100 // Protected Data
101
102 //- Reference temperature
103 scalar TRef_;
104
105
106 // Protected Member Functions
107
108 //- Set the heat transfer coefficient
109 virtual void htc
110 (
112 const FieldField<Field, scalar>& q
113 );
114
115
116public:
117
118 //- Runtime type information
119 TypeName("fixedReferenceTemperature");
120
121
122 // Constructors
123
124 //- Construct from components
126 (
128 const fvMesh& mesh,
129 const word& TName
130 );
131
132 //- No copy construct
134
135 //- No copy assignment
137
138
139 //- Destructor
140 virtual ~fixedReferenceTemperature() = default;
141
142
143 // Member Functions
144
145 //- Read from dictionary
146 virtual bool read(const dictionary& dict);
147};
148
149
150// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151
152} // End namespace heatTransferCoeffModels
153} // End namespace Foam
154
155// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156
157#endif
158
159// ************************************************************************* //
A field of fields is a PtrList of fields with reference counting.
Definition: FieldField.H:80
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
An abstract base class for heat transfer coeffcient models.
tmp< FieldField< Field, scalar > > q() const
Return q boundary fields.
const fvMesh & mesh() const
The mesh reference.
const word & TName() const
Temperature name.
Heat transfer coefficient calculation that employs a fixed reference temperature.
fixedReferenceTemperature(const dictionary &dict, const fvMesh &mesh, const word &TName)
Construct from components.
void operator=(const fixedReferenceTemperature &)=delete
No copy assignment.
fixedReferenceTemperature(const fixedReferenceTemperature &)=delete
No copy construct.
virtual bool read(const dictionary &dict)
Read from dictionary.
TypeName("fixedReferenceTemperature")
Runtime type information.
virtual void htc(volScalarField &htc, const FieldField< Field, scalar > &q)
Set the heat transfer coefficient.
A class for handling words, derived from Foam::string.
Definition: word.H:68
Namespace for OpenFOAM.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:82
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73