OpenFOAM: API Guide
v2006
The open source CFD toolbox
geometricZeroFieldI.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-2017 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 "
geometricZeroField.H
"
29
30
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31
32
inline
const
Foam::dimensionSet
&
Foam::geometricZeroField::dimensions
()
const
33
{
34
return
dimless
;
35
}
36
37
inline
Foam::scalar
Foam::geometricZeroField::operator[]
(
const
label)
const
38
{
39
return
scalar(0);
40
}
41
42
inline
Foam::zeroField
Foam::geometricZeroField::field
()
const
43
{
44
return
zeroField
();
45
}
46
47
inline
Foam::zeroField
Foam::geometricZeroField::operator()
()
const
48
{
49
return
zeroField
();
50
}
51
52
inline
Foam::zeroField
Foam::geometricZeroField::oldTime
()
const
53
{
54
return
zeroField
();
55
}
56
57
inline
Foam::zeroFieldField
Foam::geometricZeroField::boundaryField
()
const
58
{
59
return
zeroFieldField
();
60
}
61
62
63
// ************************************************************************* //
Foam::dimless
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
Definition:
dimensionSets.H:50
Foam::zeroField
A class representing the concept of a field of 0 used to avoid unnecessary manipulations for objects ...
Definition:
zeroField.H:53
Foam::vtk::Tools::zeroField
vtkSmartPointer< vtkFloatArray > zeroField(const word &name, const label size)
Create named field initialized to zero.
Definition:
foamVtkToolsTemplates.C:327
Foam::dimensionSet
Dimension set for the base types.
Definition:
dimensionSet.H:65
Foam::geometricZeroField::field
zeroField field() const
Definition:
geometricZeroFieldI.H:42
Foam::geometricZeroField::operator()
zeroField operator()() const
Definition:
geometricZeroFieldI.H:47
Foam::geometricZeroField::dimensions
const dimensionSet & dimensions() const
Definition:
geometricZeroFieldI.H:32
Foam::zeroFieldField
A class representing the concept of a field of zeroFields used to avoid unnecessary manipulations for...
Definition:
zeroFieldField.H:53
Foam::geometricZeroField::operator[]
scalar operator[](const label) const
Definition:
geometricZeroFieldI.H:37
Foam::geometricZeroField::oldTime
zeroField oldTime() const
Definition:
geometricZeroFieldI.H:52
Foam::geometricZeroField::boundaryField
zeroFieldField boundaryField() const
Definition:
geometricZeroFieldI.H:57
geometricZeroField.H
src
OpenFOAM
fields
GeometricFields
geometricZeroField
geometricZeroFieldI.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.