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-2018 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 oneField();
45 }
46 
47 
49 {
50  return oneField();
51 }
52 
53 
56 {
57  return Internal();
58 }
59 
60 
63 {
64  return Internal();
65 }
66 
67 
70 {
71  return typename Internal::FieldType();
72 }
73 
74 
77 {
78  return Boundary();
79 }
80 
81 
82 inline const Foam::geometricOneField& Foam::operator*
83 (
84  const geometricOneField& gof,
85  const geometricOneField&
86 )
87 {
88  return gof;
89 }
90 
91 
92 inline const Foam::geometricOneField::Internal& Foam::operator*
93 (
95  const geometricOneField&
96 )
97 {
98  return of;
99 }
100 
101 
102 inline const Foam::geometricOneField::Internal& Foam::operator*
103 (
104  const geometricOneField&,
106 )
107 {
108  return of;
109 }
110 
111 
112 inline const Foam::geometricOneField& Foam::operator/
113 (
114  const geometricOneField& gof,
115  const geometricOneField&
116 )
117 {
118  return gof;
119 }
120 
121 
122 inline const Foam::geometricOneField::Internal& Foam::operator/
123 (
124  const geometricOneField::Internal& of,
125  const geometricOneField&
126 )
127 {
128  return of;
129 }
130 
131 
132 inline const Foam::geometricOneField::Internal& Foam::operator/
133 (
134  const geometricOneField&,
136 )
137 {
138  return of;
139 }
140 
141 
142 // ************************************************************************* //
Internal operator()() const
oneField FieldType
Definition: oneField.H:59
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
A class representing the concept of a field of oneFields used to avoid unnecessary manipulations for ...
Definition: oneFieldField.H:50
Dimension set for the base types.
Definition: dimensionSet.H:120
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
const dimensionSet & dimensions() const
one operator[](const label) const
Internal::FieldType primitiveField() const
A class representing the concept of a field of 1 used to avoid unnecessary manipulations for objects ...
Definition: oneField.H:50
Boundary boundaryField() const
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:47
A class representing the concept of 1 (scalar(1)) used to avoid unnecessary manipulations for objects...
Definition: one.H:50
one()
Construct null.
Definition: one.H:59