Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
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::multiphaseInterHtcModel
28
29Description
30 A heat transfer coefficient for multiphase inter solvers
31 (e.g. icoReactingMultiphaseFoam).
32
33Usage
34 Minimal example by using \c system/controlDict.functions:
35 \verbatim
36 multiphaseInterHtcModelFO
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 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
81SourceFiles
82 multiphaseInterHtcModel.C
83
84\*---------------------------------------------------------------------------*/
85
86#ifndef Foam_functionObjects_multiphaseInterHtcModel_H
87#define Foam_functionObjects_multiphaseInterHtcModel_H
88
89#include "fieldExpression.H"
90
91// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
92
93namespace Foam
94{
95
96// Forward Declarations
98
99namespace functionObjects
100{
101
102/*---------------------------------------------------------------------------*\
103 Class multiphaseInterHtcModel Declaration
104\*---------------------------------------------------------------------------*/
105
107:
108 public fieldExpression
109{
110 // Private Data
111
112 //- Heat transfer coefficient model
113 autoPtr<heatTransferCoeffModel> htcModelPtr_;
114
115
116protected:
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 multiphaseInterHtcModel&) = delete;
132
133
134public:
135
136 //- Runtime type information
137 TypeName("multiphaseInterHtcModel");
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 ~multiphaseInterHtcModel() = default;
153
154
155 // Member Functions
156
157 //- Read the function-object dictionary
158 virtual bool read(const dictionary& dict);
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 multiphase inter solvers (e.g. icoReactingMultiphaseFoam).
virtual bool calc()
Calculate the heat transfer coefficient field.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
multiphaseInterHtcModel(const multiphaseInterHtcModel &)=delete
No copy construct.
tmp< FieldField< Field, scalar > > q() const
Calculate heat flux.
void operator=(const multiphaseInterHtcModel &)=delete
No copy assignment.
virtual ~multiphaseInterHtcModel()=default
Destructor.
TypeName("multiphaseInterHtcModel")
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