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 -------------------------------------------------------------------------------
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 \*---------------------------------------------------------------------------*/
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"
44 #include "FunctionObjectTrigger.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 
76 namespace Foam
77 {
78  makeFunction1(label);
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 
86  makeFunction1s(scalar);
91 
93 }
94 
95 
96 // ************************************************************************* //
Foam::scalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Definition: primitiveFieldsFwd.H:52
Table.H
Foam::sphericalTensor
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
Definition: sphericalTensor.H:54
TableFile.H
makeFunction1s
#define makeFunction1s(Type)
Definition: makeFunction1s.C:50
Sine.H
InputValueMapper.H
FunctionObjectTrigger.H
NoneFunction1.H
Uniform.H
Scale.H
Square.H
makeFieldFunction1s
#define makeFieldFunction1s(Type)
Definition: makeFunction1s.C:69
Foam::symmTensor
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
Definition: symmTensor.H:59
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
PolynomialEntry.H
Foam::vector
Vector< scalar > vector
A scalar version of the templated Vector.
Definition: vector.H:51
Foam::makeFunction1Type
makeFunction1Type(Function1Expression, scalar)
CodedFunction1.H
Cosine.H
CSV.H
OneConstant.H
FunctionObjectValue.H
Foam::makeFunction1
makeFunction1(label)
Constant.H
fieldTypes.H
Header files for all the primitive types that Fields are instantiated for.
Foam::tensor
Tensor< scalar > tensor
Tensor of scalars, i.e. Tensor<scalar>.
Definition: symmTensor.H:61
ZeroConstant.H