wallBoilingModelsCoefficient.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) 2023-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 Namespace
25  Foam::wallBoilingModels
26 
27 \*---------------------------------------------------------------------------*/
28 
29 #ifndef wallBoilingModelsCoefficient_H
30 #define wallBoilingModelsCoefficient_H
31 
32 #include "dimensionedTypes.H"
33 #include "DimensionedFieldFwd.H"
34 #include "DimensionedFieldFwd.H"
36 
37 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
38 
39 namespace Foam
40 {
41 
42 class volMesh;
43 
44 namespace wallBoilingModels
45 {
46 
47 template<class FieldType>
48 struct coefficient;
49 
50 template<class Type>
51 struct coefficient<Field<Type>>
52 {
53  template<class Type2>
54  static const Type2& value(const dimensioned<Type2>& v)
55  {
56  return v.value();
57  }
58 
59  template<class Type2>
60  static const Type2& value(const UniformDimensionedField<Type2>& v)
61  {
62  return v.value();
63  }
64 };
65 
66 template<class Type>
68 {
69  template<class Type2>
71  {
72  return v;
73  }
74 
75  template<class Type2>
76  static const dimensioned<Type2>& value
77  (
79  )
80  {
81  return v;
82  }
83 };
84 
85 template<class Type>
87 {
88  template<class Type2>
90  {
91  return v;
92  }
93 
94  template<class Type2>
95  static const dimensioned<Type2>& value
96  (
98  )
99  {
100  return v;
101  }
102 };
103 
104 } // End namespace wallBoilingModels
105 } // End namespace Foam
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 #endif
110 
111 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Pre-declare SubField and related Field type.
Definition: Field.H:83
Generic GeometricField class.
Dimensioned<Type> registered with the database as a registered IOobject which has the functionality o...
Type & value()
Return a reference to the value.
Generic dimensioned Type class.
const Type & value() const
Return const reference to value.
Mesh data needed to do the Finite Volume discretisation.
Definition: volMesh.H:56
Namespace for OpenFOAM.
static const dimensioned< Type2 > & value(const dimensioned< Type2 > &v)
static const dimensioned< Type2 > & value(const UniformDimensionedField< Type2 > &v)
static const Type2 & value(const UniformDimensionedField< Type2 > &v)
static const Type2 & value(const dimensioned< Type2 > &v)
static const dimensioned< Type2 > & value(const dimensioned< Type2 > &v)
static const dimensioned< Type2 > & value(const UniformDimensionedField< Type2 > &v)