alphatPhaseChangeWallFunctionFvPatchScalarField.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) 2026 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::alphatPhaseChangeWallFunctionFvPatchScalarField
26 
27 Description
28  This boundary condition provides a thermal wall function or the turbulent
29  thermal diffusivity for walls on which a wall phase change fvModel is in
30  operation. The presence of this condition is used by the phase change
31  fvModel to determine on which walls phase change takes place.
32 
33 Usage
34  Example of the boundary condition specification:
35  \verbatim
36  <patchType>
37  {
38  type alphatPhaseChangeWallFunction;
39  libs ("libmultiphaseEulerFvModels.so");
40  value uniform 0;
41  }
42  \endverbatim
43 
44 See also
45  Foam::fv::wallPhaseChange
46  Foam::fv::wallBoiling
47  Foam::fv::wallCondensation
48 
49 SourceFiles
50  alphatPhaseChangeWallFunctionFvPatchScalarField.C
51 
52 \*---------------------------------------------------------------------------*/
53 
54 #ifndef alphatPhaseChangeWallFunctionFvPatchScalarField_H
55 #define alphatPhaseChangeWallFunctionFvPatchScalarField_H
56 
58 #include "wallPhaseChange.H"
59 
60 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
61 
62 namespace Foam
63 {
64 
65 /*---------------------------------------------------------------------------*\
66  Class alphatPhaseChangeWallFunctionFvPatchScalarField Declaration
67 \*---------------------------------------------------------------------------*/
68 
70 :
71  public fixedValueFvPatchScalarField
72 {
73 private:
74 
75  // Private Data
76 
77  //- List of the corresponding wall phase change models
79 
80 
81  // Private Member Functions
82 
83  //- Access the list of the corresponding wall phase change models
84  const UPtrList<const fv::wallPhaseChange>& models() const;
85 
86 
87 public:
88 
89  //- Runtime type information
90  TypeName("alphatPhaseChangeWallFunction");
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  // alphatPhaseChangeWallFunctionFvPatchScalarField
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  // Member Operators
149 
150  //- Inherit assignment
151  using fixedValueFvPatchScalarField::operator=;
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...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: UPtrList.H:66
This boundary condition provides a thermal wall function or the turbulent thermal diffusivity for wal...
TypeName("alphatPhaseChangeWallFunction")
Runtime type information.
alphatPhaseChangeWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, fvMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual tmp< fvPatchScalarField > clone(const DimensionedField< scalar, fvMesh > &iF) const
Construct and return a clone setting internal field reference.
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:58
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.