alphatBoilingWallFunctionFvPatchScalarField.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::alphatBoilingWallFunctionFvPatchScalarField
26 
27 Description
28  This boundary condition provides a thermal wall function or the turbulent
29  thermal diffusivity for walls on which a wall boiling fvModel is in
30  operation. The controls for the boiling model are not specified in this
31  condition; they are provided to the wall boiling fvModel. The presence of
32  this condition is used, however, to determine on which walls boiling takes
33  place.
34 
35 Usage
36  Example of the boundary condition specification:
37  \verbatim
38  <patchType>
39  {
40  type alphatBoilingWallFunction;
41  libs ("libmultiphaseEulerFvModels.so");
42  value uniform 0;
43  }
44  \endverbatim
45 
46 See also
47  Foam::fv::wallBoiling
48 
49 SourceFiles
50  alphatBoilingWallFunctionFvPatchScalarField.C
51 
52 \*---------------------------------------------------------------------------*/
53 
54 #ifndef alphatBoilingWallFunctionFvPatchScalarField_H
55 #define alphatBoilingWallFunctionFvPatchScalarField_H
56 
58 #include "wallBoiling.H"
59 
60 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
61 
62 namespace Foam
63 {
64 
65 /*---------------------------------------------------------------------------*\
66  Class alphatBoilingWallFunctionFvPatchScalarField Declaration
67 \*---------------------------------------------------------------------------*/
68 
70 :
71  public fixedValueFvPatchScalarField
72 {
73 private:
74 
75  // Private Member Data
76 
77  //- The name of the wall boiling model
78  const word modelName_;
79 
80 
81  // Private Member Functions
82 
83  //- Access the wall boiling model
84  const fv::wallBoiling& model() const;
85 
86 
87 public:
88 
89  //- Runtime type information
90  TypeName("alphatBoilingWallFunction");
91 
92 
93  // Constructors
94 
95  //- Construct from patch, internal field and dictionary
97  (
98  const fvPatch&,
100  const dictionary&
101  );
102 
103  //- Construct by mapping given
104  // alphatBoilingWallFunctionFvPatchScalarField
105  // onto a new patch
107  (
109  const fvPatch&,
111  const fieldMapper&
112  );
113 
114  //- Disallow copy without setting internal field reference
116  (
118  ) = delete;
119 
120  //- Copy constructor setting internal field reference
122  (
125  );
126 
127  //- Construct and return a clone setting internal field reference
129  (
131  ) const
132  {
134  (
136  );
137  }
138 
139 
140  // Member Functions
141 
142  // Evaluation functions
143 
144  //- Update the coefficients associated with the patch field
145  virtual void updateCoeffs();
146 
147 
148  // I-O
149 
150  //- Write
151  virtual void write(Ostream&) const;
152 };
153 
154 
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 
157 } // End namespace Foam
158 
159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 
161 #endif
162 
163 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
This boundary condition provides a thermal wall function or the turbulent thermal diffusivity for wal...
virtual tmp< fvPatchScalarField > clone(const DimensionedField< scalar, volMesh > &iF) const
Construct and return a clone setting internal field reference.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
TypeName("alphatBoilingWallFunction")
Runtime type information.
alphatBoilingWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Abstract base class for field mapping.
Definition: fieldMapper.H:48
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:64
Model for nucleate wall boiling between two phases on the surface of a number of wall patches.
Definition: wallBoiling.H:158
A class for managing temporary objects.
Definition: tmp.H:55
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.