OpenFOAM: API Guide
v2006
The open source CFD toolbox
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
32
inline
const
Foam::dimensionSet
&
Foam::geometricOneField::dimensions
()
const
33
{
34
return
dimless
;
35
}
36
37
38
inline
Foam::one
Foam::geometricOneField::operator[]
(
const
label)
const
39
{
40
return
one
();
41
}
42
43
44
inline
Foam::oneField
Foam::geometricOneField::field
()
const
45
{
46
return
oneField
();
47
}
48
49
50
inline
Foam::oneField
Foam::geometricOneField::oldTime
()
const
51
{
52
return
oneField
();
53
}
54
55
56
inline
Foam::geometricOneField::Internal
57
Foam::geometricOneField::operator()
()
const
58
{
59
return
Internal
();
60
}
61
62
63
inline
Foam::geometricOneField::Internal
64
Foam::geometricOneField::v
()
const
65
{
66
return
Internal
();
67
}
68
69
70
inline
typename
Foam::geometricOneField::Internal::FieldType
71
Foam::geometricOneField::primitiveField
()
const
72
{
73
return
typename
Internal::FieldType
();
74
}
75
76
77
inline
Foam::geometricOneField::Boundary
78
Foam::geometricOneField::boundaryField
()
const
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
(
96
const
geometricOneField::Internal
& of,
97
const
geometricOneField
&
98
)
99
{
100
return
of;
101
}
102
103
104
inline
const
Foam::geometricOneField::Internal
& Foam::operator*
105
(
106
const
geometricOneField
&,
107
const
geometricOneField::Internal
& of
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
&,
137
const
geometricOneField::Internal
& of
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) that can be used to avoid manipulating objects known to b...
Definition:
one.H:61
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::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
src
OpenFOAM
fields
GeometricFields
geometricOneField
geometricOneFieldI.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.