Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
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::functionObjects::reactingEulerHtcModel
28
29Description
30 A heat transfer coefficient for reactingEuler solvers.
31
32Usage
33 Minimal example by using \c system/controlDict.functions:
34 \verbatim
35 reactingEulerHtcModelFO
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 fieldExpression.H \endlink
70 - \link heatTransferCoeffModel.H \endlink
71
72 Options for the \c htcModel entry:
73 \verbatim
74 ReynoldsAnalogy | Reynold's analogy
75 localReferenceTemperature | Local reference temperature
76 fixedReferenceTemperature | Fixed reference temperature
77 faceZoneReferenceTemperature | Face-zone reference temperature
78 \endverbatim
79
80SourceFiles
81 reactingEulerHtcModel.C
82
83\*---------------------------------------------------------------------------*/
84
85#ifndef Foam_functionObjects_reactingEulerHtcModel_H
86#define Foam_functionObjects_reactingEulerHtcModel_H
87
88#include "fieldExpression.H"
89
90// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
91
92namespace Foam
93{
94
95// Forward Declarations
97
98namespace functionObjects
99{
100
101/*---------------------------------------------------------------------------*\
102 Class reactingEulerHtcModel Declaration
103\*---------------------------------------------------------------------------*/
104
106:
107 public fieldExpression
108{
109 // Private Data
110
111 //- Heat transfer coefficient model
112 autoPtr<heatTransferCoeffModel> htcModelPtr_;
113
114
115protected:
116
117 // Protected Member Functions
118
119 //- Calculate the heat transfer coefficient field
120 // \return true on success
121 virtual bool calc();
122
123 //- Calculate heat flux
124 tmp<FieldField<Field, scalar>> q() const;
125
126 //- No copy construct
128
129 //- No copy assignment
130 void operator=(const reactingEulerHtcModel&) = delete;
131
132
133public:
134
135 //- Runtime type information
136 TypeName("reactingEulerHtcModel");
137
138
139 // Constructors
140
141 //- Construct from components
143 (
144 const word& name,
145 const Time& runTime,
146 const dictionary& dict
147 );
148
149
150 //- Destructor
151 virtual ~reactingEulerHtcModel() = default;
152
153
154 // Member Functions
155
156 //- Read the function-object dictionary
157 virtual bool read(const dictionary& dict);
158};
159
160
161// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162
163} // End namespace functionObjects
164} // End namespace Foam
165
166// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
167
168#endif
169
170// ************************************************************************* //
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition Time.H:75
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition autoPtr.H:65
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
Intermediate class for handling field expression function objects (e.g. blendingFactor etc....
fieldExpression(const word &name, const Time &runTime, const dictionary &dict, const word &fieldName=word::null, const word &resultName=word::null)
Construct from name, Time and dictionary.
A heat transfer coefficient for reactingEuler solvers.
reactingEulerHtcModel(const reactingEulerHtcModel &)=delete
No copy construct.
virtual bool calc()
Calculate the heat transfer coefficient field.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
tmp< FieldField< Field, scalar > > q() const
Calculate heat flux.
void operator=(const reactingEulerHtcModel &)=delete
No copy assignment.
virtual ~reactingEulerHtcModel()=default
Destructor.
TypeName("reactingEulerHtcModel")
Runtime type information.
A base class for heat transfer coefficient models.
A class for managing temporary objects.
Definition tmp.H:75
A class for handling words, derived from Foam::string.
Definition word.H:66
engineTime & runTime
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
Namespace for OpenFOAM.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition exprTraits.C:127
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68