localReferenceTemperature.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 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::heatTransferCoeffModels::localReferenceTemperature
28 
29 Description
30  Heat transfer coefficient calculation that employs the patch internal
31  field as the reference temperature
32 
33  The heat transfer coefficient is specified by:
34 
35  \f[
36  h = \frac{q}{T_c - T_w}
37  \f]
38 
39 Usage
40  Example of function object specification:
41  \verbatim
42  type heatTransferCoeff;
43  libs (fieldFunctionObjects);
44  ...
45  htcModel localReferenceTemperature;
46  ...
47  \endverbatim
48 
49  Where the entries comprise:
50  \table
51  Property | Description | Required | Default value
52  type | type name: heatTransferCoeff | yes |
53  htcModel | selected htc model | yes |
54  \endtable
55 
56 SourceFiles
57  localReferenceTemperature.C
58 
59 SeeAlso
60  Foam::heatTransferCoeffModel
61 
62 \*---------------------------------------------------------------------------*/
63 
64 #ifndef heatTransferCoeffModels_localReferenceTemperature_H
65 #define heatTransferCoeffModels_localReferenceTemperature_H
66 
67 #include "heatTransferCoeffModel.H"
68 
69 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
70 
71 namespace Foam
72 {
73 namespace heatTransferCoeffModels
74 {
75 
76 /*---------------------------------------------------------------------------*\
77  Class localReferenceTemperature Declaration
78 \*---------------------------------------------------------------------------*/
79 
80 class localReferenceTemperature
81 :
82  public heatTransferCoeffModel
83 {
84 protected:
85 
86  // Protected Member Functions
87 
88  //- Set the heat transfer coefficient
89  virtual void htc
90  (
92  const FieldField<Field, scalar>& q
93  );
94 
95  //- No copy construct
97 
98  //- No copy assignment
99  void operator=(const localReferenceTemperature&) = delete;
100 
101 
102 public:
103 
104  //- Runtime type information
105  TypeName("localReferenceTemperature");
106 
107 
108  // Constructors
109 
110  //- Construct from components
112  (
113  const dictionary& dict,
114  const fvMesh& mesh,
115  const word& TName
116  );
117 
118 
119  //- Destructor
120  virtual ~localReferenceTemperature() = default;
121 
122 
123  // Member Functions
124 
125  //- Read from dictionary
126  virtual bool read(const dictionary& dict);
127 };
128 
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 } // End namespace heatTransferCoeffModels
133 } // End namespace Foam
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 #endif
138 
139 // ************************************************************************* //
Foam::heatTransferCoeffModel::mesh
const fvMesh & mesh() const
The mesh reference.
Definition: heatTransferCoeffModel.H:151
Foam::heatTransferCoeffModel
An abstract base class for heat transfer coeffcient models.
Definition: heatTransferCoeffModel.H:63
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
Foam::FieldField
A field of fields is a PtrList of fields with reference counting.
Definition: FieldField.H:53
Foam::heatTransferCoeffModels::localReferenceTemperature::localReferenceTemperature
localReferenceTemperature(const localReferenceTemperature &)=delete
No copy construct.
Foam::heatTransferCoeffModels::localReferenceTemperature
Heat transfer coefficient calculation that employs the patch internal field as the reference temperat...
Definition: localReferenceTemperature.H:94
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
Foam::heatTransferCoeffModel::TName
const word & TName() const
Temperature name.
Definition: heatTransferCoeffModel.H:163
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:84
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::heatTransferCoeffModels::localReferenceTemperature::htc
virtual void htc(volScalarField &htc, const FieldField< Field, scalar > &q)
Set the heat transfer coefficient.
Definition: localReferenceTemperature.C:76
heatTransferCoeffModel.H
Foam::heatTransferCoeffModels::localReferenceTemperature::read
virtual bool read(const dictionary &dict)
Read from dictionary.
Definition: localReferenceTemperature.C:67
Foam::heatTransferCoeffModels::localReferenceTemperature::TypeName
TypeName("localReferenceTemperature")
Runtime type information.
Foam::heatTransferCoeffModels::localReferenceTemperature::operator=
void operator=(const localReferenceTemperature &)=delete
No copy assignment.
Foam::heatTransferCoeffModels::localReferenceTemperature::~localReferenceTemperature
virtual ~localReferenceTemperature()=default
Destructor.
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::heatTransferCoeffModel::q
tmp< FieldField< Field, scalar > > q() const
Return q boundary fields.
Definition: heatTransferCoeffModel.C:46