Forward compatibility: flex
[foam-extend-3.2.git] / src / foam / fields / FieldFields / vectorNFieldFields / SphericalTensorNFieldFields.H
blob8ff2fb123ba7e1c87131b7b5b1199ef2ecd5320a
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | foam-extend: Open Source CFD
4    \\    /   O peration     | Version:     3.2
5     \\  /    A nd           | Web:         http://www.foam-extend.org
6      \\/     M anipulation  | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
8 License
9     This file is part of foam-extend.
11     foam-extend is free software: you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by the
13     Free Software Foundation, either version 3 of the License, or (at your
14     option) any later version.
16     foam-extend is distributed in the hope that it will be useful, but
17     WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19     General Public License for more details.
21     You should have received a copy of the GNU General Public License
22     along with foam-extend.  If not, see <http://www.gnu.org/licenses/>.
24 Class
25     SphericalTensorNFieldFields
27 Description
28     Specialisation of FieldField<Field,T> for SphericalTensorN.
30 SourceFiles
31     SphericalTensorNFieldFields.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef SphericalTensorNFieldFields_H
36 #define SphericalTensorNFieldFields_H
38 #include "VectorTensorNFieldFieldsFwd.H"
39 #include "FieldField.H"
41 #define TEMPLATE template<template<class> class Field>
42 #include "FieldFieldFunctionsM.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 #define SphericalTensorN_FieldFunctions(tensorType, diagTensorType,                 \
47     sphericalTensorType, vectorType, CmptType, args...)                             \
48                                                                                     \
49 UNARY_FUNCTION(sphericalTensorType, sphericalTensorType, inv)                       \
50 UNARY_FUNCTION(sphericalTensorType, sphericalTensorType, diag)                      \
51 UNARY_FUNCTION(CmptType, sphericalTensorType, contractLinear)                       \
52 UNARY_FUNCTION(CmptType, sphericalTensorType, contractScalar)                       \
53                                                                                     \
54 BINARY_OPERATOR(sphericalTensorType, CmptType, sphericalTensorType, /, divide)      \
55 BINARY_TYPE_OPERATOR(sphericalTensorType, CmptType, sphericalTensorType, /, divide) \
56                                                                                     \
57 BINARY_OPERATOR(vectorType, vectorType, sphericalTensorType, /, divide)             \
58 BINARY_TYPE_OPERATOR(vectorType, vectorType, sphericalTensorType, /, divide)        \
59                                                                                     \
60 BINARY_OPERATOR(sphericalTensorType, sphericalTensorType, sphericalTensorType, /, divide)           \
61 BINARY_TYPE_OPERATOR(sphericalTensorType, sphericalTensorType, sphericalTensorType, /, divide)      \
62                                                                                     \
63 BINARY_OPERATOR(sphericalTensorType, sphericalTensorType, sphericalTensorType, +, add)             \
64 BINARY_OPERATOR(sphericalTensorType, sphericalTensorType, sphericalTensorType, -, subtract)        \
65                                                                                     \
66 BINARY_TYPE_OPERATOR(sphericalTensorType, sphericalTensorType, sphericalTensorType, +, add)        \
67 BINARY_TYPE_OPERATOR(sphericalTensorType, sphericalTensorType, sphericalTensorType, -, subtract)
69 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
71 namespace Foam
74 forAllVectorTensorNTypes(SphericalTensorN_FieldFunctions)
78 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
80 #undef SphericalTensorN_FieldFunctions
82 #include "undefFieldFunctionsM.H"
84  // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
86 #ifdef NoRepository
87 #   include "SphericalTensorNFieldFields.C"
88 #endif
90 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
92 #endif
94 // ************************************************************************* //