Loading...
Searching...
No Matches
convectiveHeatTransferFvPatchScalarField.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) 2011-2017 OpenFOAM Foundation
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::compressible::convectiveHeatTransferFvPatchScalarField
28
29Group
30 grpCmpBoundaryConditions
31
32Description
33 This boundary condition provides a convective heat transfer coefficient
34 condition
35
36 if Re > 500000
37 \f[
38 htc_p = \frac{0.664 Re^{0.5} Pr^{0.333} \kappa_p}{L}
39 \f]
40 else
41 \f[
42 htc_p = \frac{0.037 Re^{0.8} Pr^{0.333} \kappa_p}{L}
43 \f]
44
45 where
46
47 \vartable
48 htc_p | patch convective heat transfer coefficient
49 Re | Reynolds number
50 Pr | Prandtl number
51 \kappa_p | thermal conductivity
52 L | length scale
53 \endvartable
54
55Usage
56 \table
57 Property | Description | Required | Default value
58 L | Length scale [m] | yes |
59 \endtable
60
61 Example of the boundary condition specification:
62 \verbatim
63 <patchName>
64 {
65 type convectiveHeatTransfer;
66 L 0.1;
67 }
68 \endverbatim
69
70See also
71 Foam::fixedValueFvPatchField
72
73SourceFiles
74 convectiveHeatTransferFvPatchScalarField.C
75
76\*---------------------------------------------------------------------------*/
77
78#ifndef convectiveHeatTransferFvPatchScalarField_H
79#define convectiveHeatTransferFvPatchScalarField_H
80
82
83// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
84
85namespace Foam
86{
87namespace compressible
88{
89
90/*---------------------------------------------------------------------------*\
91 Class convectiveHeatTransferFvPatchScalarField Declaration
92\*---------------------------------------------------------------------------*/
93
95:
96 public fixedValueFvPatchScalarField
97{
98protected:
99
100 // Protected data
101
102 //- L Length scale [m]
103 const scalar L_;
104
105
106public:
107
108 //- Runtime type information
109 TypeName("convectiveHeatTransfer");
110
111
112 // Constructors
113
114 //- Construct from patch and internal field
116 (
117 const fvPatch&,
118 const DimensionedField<scalar, volMesh>&
119 );
120
121 //- Construct from patch, internal field and dictionary
123 (
124 const fvPatch&,
126 const dictionary&
127 );
128
129 //- Construct by mapping given
130 // convectiveHeatTransferFvPatchScalarField
131 // onto a new patch
133 (
135 const fvPatch&,
137 const fvPatchFieldMapper&
138 );
139
140 //- Construct as copy
142 (
144 );
145
146 //- Construct as copy setting internal field reference
148 (
151 );
152
153 //- Return a clone
154 virtual tmp<fvPatchField<scalar>> clone() const
155 {
156 return fvPatchField<scalar>::Clone(*this);
157 }
158
159 //- Clone with an internal field reference
161 (
163 ) const
164 {
165 return fvPatchField<scalar>::Clone(*this, iF);
166 }
167
168
169 // Member functions
170
171 // Evaluation functions
172
173 //- Update the coefficients associated with the patch field
174 virtual void updateCoeffs();
175
176
177 // I-O
178
179 //- Write
180 virtual void write(Ostream&) const;
181};
182
183
184// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
185
186} // End namespace compressible
187} // End namespace Foam
188
189// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
190
191#endif
192
193// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition Ostream.H:59
This boundary condition provides a convective heat transfer coefficient condition.
convectiveHeatTransferFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual tmp< fvPatchField< scalar > > clone(const DimensionedField< scalar, volMesh > &iF) const
Clone with an internal field reference.
virtual tmp< fvPatchField< scalar > > clone() const
Return a clone.
TypeName("convectiveHeatTransfer")
Runtime type information.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
A FieldMapper for finite-volume patch fields.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition fvPatch.H:71
A class for managing temporary objects.
Definition tmp.H:75
Namespace for OpenFOAM.
runTime write()
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68