reactingEulerHtcModel.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) 2020-2022 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::functionObjects::reactingEulerHtcModel
28 
29 Description
30  A heat transfer coefficient for reactingEuler solvers.
31 
32 Usage
33  Minimal example by using \c system/controlDict.functions:
34  \verbatim
35  reactingEulerHtcModel1
36  {
37  // Mandatory entries
38  type reactingEulerHtcModel;
39  libs (fieldFunctionObjects);
40 
41  field <word>;
42  patches (<wordRes>);
43  htcModel <word>;
44 
45  // Optional entries
46  qr <word>;
47 
48  // Conditional entries based on selected <htcModel>
49  ...
50 
51  // Inherited entries
52  ...
53  }
54  \endverbatim
55 
56  where the entries mean:
57  \table
58  Property | Description | Type | Reqd | Deflt
59  type | Type name: reactingEulerHtcModel | word | yes | -
60  libs | Library name: fieldFunctionObjects | word | yes | -
61  field | Name of operand field | word | yes | -
62  patches | Names of operand patches | wordRes | yes | -
63  htcModel | Heat transfer coefficient model <!--
64  --> - see below | word | yes | -
65  qr | Name of radiative heat flux field | word | no | qr
66  \endtable
67 
68  The inherited entries are elaborated in:
69  - \link functionObject.H \endlink
70  - \link fieldExpression.H \endlink
71  - \link heatTransferCoeffModel.H \endlink
72 
73  Options for the \c htcModel entry:
74  \verbatim
75  ReynoldsAnalogy | Reynold's analogy
76  localReferenceTemperature | Local reference temperature
77  fixedReferenceTemperature | Fixed reference temperature
78  faceZoneReferenceTemperature | Face-zone reference temperature
79  \endverbatim
80 
81 SourceFiles
82  reactingEulerHtcModel.C
83 
84 \*---------------------------------------------------------------------------*/
85 
86 #ifndef Foam_functionObjects_reactingEulerHtcModel_H
87 #define Foam_functionObjects_reactingEulerHtcModel_H
88 
89 #include "fieldExpression.H"
90 
91 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
92 
93 namespace Foam
94 {
95 
96 // Forward Declarations
97 class heatTransferCoeffModel;
98 
99 namespace functionObjects
100 {
101 
102 /*---------------------------------------------------------------------------*\
103  Class reactingEulerHtcModel Declaration
104 \*---------------------------------------------------------------------------*/
105 
106 class reactingEulerHtcModel
107 :
108  public fieldExpression
109 {
110  // Private Data
111 
112  //- Heat transfer coefficient model
113  autoPtr<heatTransferCoeffModel> htcModelPtr_;
114 
115 
116 protected:
117 
118  // Protected Member Functions
119 
120  //- Calculate the heat transfer coefficient field
121  // \return true on success
122  virtual bool calc();
123 
124  //- Calculate heat flux
125  tmp<FieldField<Field, scalar>> q() const;
126 
127  //- No copy construct
129 
130  //- No copy assignment
131  void operator=(const reactingEulerHtcModel&) = delete;
132 
133 
134 public:
135 
136  //- Runtime type information
137  TypeName("reactingEulerHtcModel");
138 
139 
140  // Constructors
141 
142  //- Construct from components
144  (
145  const word& name,
146  const Time& runTime,
147  const dictionary& dict
148  );
149 
150 
151  //- Destructor
152  virtual ~reactingEulerHtcModel() = default;
153 
154 
155  // Member Functions
156 
157  //- Read the heatTransferCoeff data
158  virtual bool read(const dictionary& dict);
159 };
160 
161 
162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 
164 } // End namespace functionObjects
165 } // End namespace Foam
166 
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 
169 #endif
170 
171 // ************************************************************************* //
virtual ~reactingEulerHtcModel()=default
Destructor.
reactingEulerHtcModel(const reactingEulerHtcModel &)=delete
No copy construct.
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
engineTime & runTime
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:69
const word & name() const noexcept
Return the name of this functionObject.
void operator=(const reactingEulerHtcModel &)=delete
No copy assignment.
TypeName("reactingEulerHtcModel")
Runtime type information.
virtual bool calc()
Calculate the heat transfer coefficient field.
virtual bool read(const dictionary &dict)
Read the heatTransferCoeff data.
A class for handling words, derived from Foam::string.
Definition: word.H:63
tmp< FieldField< Field, scalar > > q() const
Calculate heat flux.
Namespace for OpenFOAM.