OpenFOAM: API Guide
v2112
The open source CFD toolbox
fieldTypes.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
Copyright (C) 2018 OpenCFD Ltd.
10
-------------------------------------------------------------------------------
11
License
12
This file is part of OpenFOAM.
13
14
OpenFOAM is free software: you can redistribute it and/or modify it
15
under the terms of the GNU General Public License as published by
16
the Free Software Foundation, either version 3 of the License, or
17
(at your option) any later version.
18
19
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22
for more details.
23
24
You should have received a copy of the GNU General Public License
25
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27
Description
28
Header files for all the primitive types that Fields are instantiated for.
29
30
\*---------------------------------------------------------------------------*/
31
32
#ifndef Foam_fieldTypes_H
33
#define Foam_fieldTypes_H
34
35
#include "
label.H
"
36
#include "
scalar.H
"
37
#include "
vector.H
"
38
#include "
sphericalTensor.H
"
39
#include "
symmTensor.H
"
40
#include "
tensor.H
"
41
#include "
triad.H
"
42
#include "
macros.H
"
43
#include "
wordList.H
"
44
45
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47
#define CAPITALIZE_label Label
48
#define CAPITALIZE_scalar Scalar
49
#define CAPITALIZE_vector Vector
50
#define CAPITALIZE_sphericalTensor SphericalTensor
51
#define CAPITALIZE_symmTensor SymmTensor
52
#define CAPITALIZE_tensor Tensor
53
54
#define FOR_ALL_FIELD_TYPES(Macro, ...) \
55
Macro(scalar, __VA_ARGS__) \
56
Macro(vector, __VA_ARGS__) \
57
Macro(sphericalTensor, __VA_ARGS__) \
58
Macro(symmTensor, __VA_ARGS__) \
59
Macro(tensor, __VA_ARGS__)
60
61
62
/*---------------------------------------------------------------------------*\
63
Namespace fieldTypes Declaration
64
\*---------------------------------------------------------------------------*/
65
66
namespace
Foam
67
{
68
namespace
fieldTypes
69
{
70
//- Standard basic field types (label, scalar, vector, tensor, etc)
71
// These also correspond to cloud output fields.
72
extern
const
wordList
basic
;
73
74
}
// End namespace fieldTypes
75
}
// End namespace Foam
76
77
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
78
79
#endif
80
81
// ************************************************************************* //
label.H
macros.H
General C-preprocessor macros.
Foam::fieldTypes::basic
const wordList basic
Standard basic field types (label, scalar, vector, tensor, etc)
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:34
Foam::wordList
List< word > wordList
A List of words.
Definition:
fileName.H:63
scalar.H
sphericalTensor.H
symmTensor.H
tensor.H
triad.H
vector.H
wordList.H
src
OpenFOAM
fields
Fields
fieldTypes.H
Generated by
1.9.5
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.