displacementGapHeatTransferCoefficient_DimensionedFieldFunction.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::DimensionedFieldFunctions::displacementGapHeatTransferCoefficient
26 
27 Description
28  Runtime selectable DimensionedFieldFunction providing the heat transfer
29  coefficient for a gap caused by surface displacement.
30 
31  Typically used to provide thermal resistance between regions with the
32  Foam::coupledTemperatureFvPatchScalarField boundary condition where
33  one region is deforming.
34 
35 Usage
36  \table
37  Property | Description | Required | Default value
38  kappa | Thermal conductivity of the gap [W/m/K] | yes |
39  \endtable
40 
41  Example of the boundary condition specification:
42  \verbatim
43  <patchName>
44  {
45  type coupledTemperature;
46 
47  h
48  {
49  type displacementGapHeatTransferCoefficient;
50  kappa 0.025;
51  }
52 
53  value $internalField;
54  }
55  \endverbatim
56 
57 SourceFiles
58  displacementGapHeatTransferCoefficient_DimensionedFieldFunction.C
59 
60 \*---------------------------------------------------------------------------*/
61 
62 #ifndef displacementGapHeatTransferCoefficient_DimensionedFieldFunction_H
63 #define displacementGapHeatTransferCoefficient_DimensionedFieldFunction_H
64 
66 #include "fvPatch.H"
67 
68 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
69 
70 namespace Foam
71 {
72 namespace DimensionedFieldFunctions
73 {
74 
75 /*---------------------------------------------------------------------------*\
76  Class displacementGapHeatTransferCoefficient Declaration
77 \*---------------------------------------------------------------------------*/
78 
79 class displacementGapHeatTransferCoefficient
80 :
81  public DimensionedFieldFunction<DimensionedField<scalar, fvPatch>>
82 {
83  // Private Data
84 
85  //- Conductivity of wall layers
86  dimensionedScalar kappa_;
87 
88 
89 public:
90 
91  //- Runtime type information
92  TypeName("displacementGapHeatTransferCoefficient");
93 
94 
95  // Constructors
96 
97  //- Construct with dictionary to initialise given field
99  (
100  const dictionary& dict,
102  );
103 
104  //- Construct a copy for the given field
106  (
109  );
110 
111  //- Construct and return a clone for the specified field
112  virtual
115 
116 
117  //- Destructor
119  {}
120 
121 
122  // Member Functions
123 
124  //- Evaluate the function and set the field
125  virtual void evaluate();
126 
127  //- Update the function and set the field
128  virtual bool update();
129 
130  //- Write data to dictionary stream
131  virtual void write(Ostream& os) const;
132 };
133 
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 } // End namespace DimensionedFieldFunctions
138 } // End namespace Foam
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 #endif
143 
144 // ************************************************************************* //
virtual autoPtr< DimensionedFieldFunction< DimensionedField< scalar, fvPatch > > > clone() const
Construct and return a clone for the specified field.
Runtime selectable DimensionedFieldFunction providing the heat transfer coefficient for a gap caused ...
displacementGapHeatTransferCoefficient(const dictionary &dict, DimensionedField< scalar, fvPatch > &field)
Construct with dictionary to initialise given field.
TypeName("displacementGapHeatTransferCoefficient")
Runtime type information.
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
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Namespace for OpenFOAM.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dictionary dict