wallBoilingProperty.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2025 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::functionObjects::wallBoilingProperty
26 
27 Description
28  This function looks up the wall boiling model and collects and writes out a
29  field of one of the wall boiling properties.
30 
31  Example of function object specification:
32  \verbatim
33  wallBoilingProperty1
34  {
35  type wallBoilingProperty;
36  libs ("libmultiphaseEulerFunctionObjects.so");
37  writeControl writeTime;
38  field qEvaporative;
39  }
40  \endverbatim
41 
42 Usage
43  \table
44  Property | Description | Required | Default value
45  type | type name: wallBoilingProperty | yes |
46  model | name of the wall boiling fvModel | no | none
47  field | name of the property | yes |
48  \endtable
49 
50 SourceFiles
51  wallBoilingProperty.C
52 
53 \*---------------------------------------------------------------------------*/
54 
55 #ifndef wallBoilingProperty_H
56 #define wallBoilingProperty_H
57 
58 #include "fieldExpression.H"
59 #include "wallBoiling.H"
60 
61 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
62 
63 namespace Foam
64 {
65 namespace functionObjects
66 {
67 
68 /*---------------------------------------------------------------------------*\
69  Class wallBoilingProperty Declaration
70 \*---------------------------------------------------------------------------*/
71 
72 class wallBoilingProperty
73 :
74  public fvMeshFunctionObject
75 {
76 private:
77 
78  //- Private Data
79 
80  //- The name of the wall boiling model
81  word modelName_;
82 
83  //- The name of the property
84  word fieldName_;
85 
86 
87  // Private Member Functions
88 
89  //- Access the wall boiling model
90  const fv::wallBoiling& model() const;
91 
92 
93 public:
94 
95  //- Runtime type information
96  TypeName("wallBoilingProperty");
97 
98 
99  // Constructors
100 
101  //- Construct from Time and dictionary
103  (
104  const word& name,
105  const Time& runTime,
106  const dictionary& dict
107  );
108 
109  //- Disallow default bitwise copy construction
110  wallBoilingProperty(const wallBoilingProperty&) = delete;
111 
112 
113  //- Destructor
114  virtual ~wallBoilingProperty();
115 
116 
117  // Member Functions
118 
119  //- Read the wallBoilingProperty data
120  virtual bool read(const dictionary&);
121 
122  //- Return the list of fields required
123  virtual wordList fields() const
124  {
125  return wordList::null();
126  }
127 
128  //- Calculate the wallBoilingProperty field
129  virtual bool execute();
130 
131  //- Write the wallBoilingProperty field
132  virtual bool write();
133 
134 
135  // Member Operators
136 
137  //- Disallow default bitwise assignment
138  void operator=(const wallBoilingProperty&) = delete;
139 };
140 
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 } // End namespace functionObjects
145 } // End namespace Foam
146 
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 
149 #endif
150 
151 // ************************************************************************* //
static const List< word > & null()
Return a null List.
Definition: ListI.H:118
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:76
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
const word & name() const
Return the name of this functionObject.
This function looks up the wall boiling model and collects and writes out a field of one of the wall ...
wallBoilingProperty(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
void operator=(const wallBoilingProperty &)=delete
Disallow default bitwise assignment.
virtual wordList fields() const
Return the list of fields required.
TypeName("wallBoilingProperty")
Runtime type information.
virtual bool execute()
Calculate the wallBoilingProperty field.
virtual bool write()
Write the wallBoilingProperty field.
virtual bool read(const dictionary &)
Read the wallBoilingProperty data.
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.
dictionary dict