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