geometricOneFieldI.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2016 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 #include "geometricOneField.H"
29 
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 
33 {
34  return dimless;
35 }
36 
37 
39 {
40  return one();
41 }
42 
43 
45 {
46  return oneField();
47 }
48 
49 
51 {
52  return oneField();
53 }
54 
55 
58 {
59  return Internal();
60 }
61 
62 
65 {
66  return Internal();
67 }
68 
69 
72 {
73  return typename Internal::FieldType();
74 }
75 
76 
79 {
80  return Boundary();
81 }
82 
83 
84 inline const Foam::geometricOneField& Foam::operator*
85 (
86  const geometricOneField& gof,
87  const geometricOneField&
88 )
89 {
90  return gof;
91 }
92 
93 
94 inline const Foam::geometricOneField::Internal& Foam::operator*
95 (
97  const geometricOneField&
98 )
99 {
100  return of;
101 }
102 
103 
104 inline const Foam::geometricOneField::Internal& Foam::operator*
105 (
106  const geometricOneField&,
108 )
109 {
110  return of;
111 }
112 
113 
114 inline const Foam::geometricOneField& Foam::operator/
115 (
116  const geometricOneField& gof,
117  const geometricOneField&
118 )
119 {
120  return gof;
121 }
122 
123 
124 inline const Foam::geometricOneField::Internal& Foam::operator/
125 (
126  const geometricOneField::Internal& of,
127  const geometricOneField&
128 )
129 {
130  return of;
131 }
132 
133 
134 inline const Foam::geometricOneField::Internal& Foam::operator/
135 (
136  const geometricOneField&,
138 )
139 {
140  return of;
141 }
142 
143 
144 // ************************************************************************* //
Foam::dimless
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
Definition: dimensionSets.H:50
Foam::oneFieldField
A class representing the concept of a field of oneFields used to avoid unnecessary manipulations for ...
Definition: oneFieldField.H:53
Foam::geometricOneField::boundaryField
Boundary boundaryField() const
Definition: geometricOneFieldI.H:78
Foam::geometricOneField::operator[]
one operator[](const label) const
Definition: geometricOneFieldI.H:38
Foam::geometricOneField
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
Definition: geometricOneField.H:54
Foam::one
A class representing the concept of 1 (one), which can be used to avoid manipulating objects that are...
Definition: one.H:60
Foam::geometricOneField::primitiveField
Internal::FieldType primitiveField() const
Definition: geometricOneFieldI.H:71
Foam::dimensionSet
Dimension set for the base types.
Definition: dimensionSet.H:65
Foam::geometricOneField::dimensions
const dimensionSet & dimensions() const
Definition: geometricOneFieldI.H:32
Foam::geometricOneField::oldTime
oneField oldTime() const
Definition: geometricOneFieldI.H:50
Foam::label
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:62
Foam::geometricOneField::operator()
Internal operator()() const
Definition: geometricOneFieldI.H:57
Foam::geometricOneField::field
oneField field() const
Definition: geometricOneFieldI.H:44
geometricOneField.H
Foam::oneField
A class representing the concept of a field of 1 used to avoid unnecessary manipulations for objects ...
Definition: oneField.H:53
Foam::geometricOneField::v
Internal v() const
Definition: geometricOneFieldI.H:64