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-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 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 namespace wallBoilingModels
43 {
44 
45 template<class FieldType>
46 struct coefficient;
47 
48 template<class Type>
49 struct coefficient<Field<Type>>
50 {
51  template<class Type2>
52  static const Type2& value(const dimensioned<Type2>& v)
53  {
54  return v.value();
55  }
56 
57  template<class Type2>
58  static const Type2& value(const UniformDimensionedField<Type2>& v)
59  {
60  return v.value();
61  }
62 };
63 
64 template<class Type>
66 {
67  template<class Type2>
69  {
70  return v;
71  }
72 
73  template<class Type2>
74  static const dimensioned<Type2>& value
75  (
77  )
78  {
79  return v;
80  }
81 };
82 
83 template<class Type>
85 {
86  template<class Type2>
88  {
89  return v;
90  }
91 
92  template<class Type2>
93  static const dimensioned<Type2>& value
94  (
96  )
97  {
98  return v;
99  }
100 };
101 
102 } // End namespace wallBoilingModels
103 } // End namespace Foam
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 #endif
108 
109 // ************************************************************************* //
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: fvMesh.H:98
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)