geometricOneFieldI.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) 2011-2024 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 \*---------------------------------------------------------------------------*/
25 
26 #include "geometricOneField.H"
27 
28 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
29 
31 {
32  return dimless;
33 }
34 
35 
37 {
38  return one();
39 }
40 
41 
43 {
44  return geometricOneField();
45 }
46 
47 
50 {
51  return Internal();
52 }
53 
54 
57 {
58  return oneField();
59 }
60 
61 
64 {
65  return Internal();
66 }
67 
68 
71 {
72  return typename Internal::FieldType();
73 }
74 
75 
78 {
79  return Boundary();
80 }
81 
82 
83 inline const Foam::geometricOneField& Foam::operator*
84 (
85  const geometricOneField& gof,
86  const geometricOneField&
87 )
88 {
89  return gof;
90 }
91 
92 
93 inline const Foam::geometricOneField::Internal& Foam::operator*
94 (
96  const geometricOneField&
97 )
98 {
99  return of;
100 }
101 
102 
103 inline const Foam::geometricOneField::Internal& Foam::operator*
104 (
105  const geometricOneField&,
107 )
108 {
109  return of;
110 }
111 
112 
113 inline const Foam::geometricOneField& Foam::operator/
114 (
115  const geometricOneField& gof,
116  const geometricOneField&
117 )
118 {
119  return gof;
120 }
121 
122 
123 inline const Foam::geometricOneField::Internal& Foam::operator/
124 (
125  const geometricOneField::Internal& of,
126  const geometricOneField&
127 )
128 {
129  return of;
130 }
131 
132 
133 inline const Foam::geometricOneField::Internal& Foam::operator/
134 (
135  const geometricOneField&,
137 )
138 {
139  return of;
140 }
141 
142 
143 // ************************************************************************* //
Dimension set for the base types.
Definition: dimensionSet.H:125
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
Internal operator()() const
one operator[](const label) const
const dimensionSet & dimensions() const
Internal internalField() const
Internal::FieldType primitiveField() const
Boundary boundaryField() const
geometricOneField oldTime() const
A class representing the concept of a field of oneFields used to avoid unnecessary manipulations for ...
Definition: oneFieldField.H:53
A class representing the concept of a field of 1 used to avoid unnecessary manipulations for objects ...
Definition: oneField.H:53
A class representing the concept of 1 (scalar(1)) used to avoid unnecessary manipulations for objects...
Definition: one.H:51
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
const dimensionSet dimless