makeFunction1s.C
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 Copyright (C) 2020-2021 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
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\*---------------------------------------------------------------------------*/
28
29#include "CodedFunction1.H"
30#include "Constant.H"
31#include "Uniform.H"
32#include "ZeroConstant.H"
33#include "OneConstant.H"
34#include "NoneFunction1.H"
35#include "PolynomialEntry.H"
36#include "Sine.H"
37#include "Cosine.H"
38#include "Square.H"
39#include "CSV.H"
40#include "Table.H"
41#include "TableFile.H"
42#include "Scale.H"
43#include "InputValueMapper.H"
45#include "FunctionObjectValue.H"
46#include "fieldTypes.H"
47
48// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49
50#define makeFunction1s(Type) \
51 makeFunction1(Type); \
52 makeFunction1Type(CodedFunction1, Type); \
53 makeFunction1Type(Constant, Type); \
54 makeFunction1Type(Uniform, Type); \
55 makeFunction1Type(None, Type); \
56 makeFunction1Type(ZeroConstant, Type); \
57 makeFunction1Type(OneConstant, Type); \
58 makeFunction1Type(Polynomial, Type); \
59 makeFunction1Type(Cosine, Type); \
60 makeFunction1Type(Sine, Type); \
61 makeFunction1Type(Square, Type); \
62 makeFunction1Type(CSV, Type); \
63 makeFunction1Type(Table, Type); \
64 makeFunction1Type(TableFile, Type); \
65 makeFunction1Type(Scale, Type); \
66 makeFunction1Type(InputValueMapper, Type); \
67 makeFunction1Type(FunctionObjectValue, Type);
68
69#define makeFieldFunction1s(Type) \
70 makeFunction1(Type); \
71 makeFunction1Type(Constant, Type); \
72 makeFunction1Type(Uniform, Type); \
73 makeFunction1Type(Table, Type); \
74 makeFunction1Type(TableFile, Type); \
75
76namespace Foam
77{
79 makeFunction1Type(Constant, label);
80 makeFunction1Type(None, label);
81
82 makeFunction1Type(FunctionObjectTrigger, label);
83 makeFunction1Type(FunctionObjectTrigger, scalar);
84 // Only (label/scalar) makes sense for triggers
85
91
93}
94
95
96// ************************************************************************* //
#define makeFunction1Type(SS, Type)
Definition: Function1.H:355
#define makeFunction1(Type)
Definition: Function1.H:343
#define makeFieldFunction1s(Type)
#define makeFunction1s(Type)
Header files for all the primitive types that Fields are instantiated for.
Namespace for OpenFOAM.