1 /*---------------------------------------------------------------------------*\
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 -------------------------------------------------------------------------------
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/>.
25 SphericalTensorNFieldFields
28 Specialisation of FieldField<Field,T> for SphericalTensorN.
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...) \
49 UNARY_FUNCTION(sphericalTensorType, sphericalTensorType, inv) \
50 UNARY_FUNCTION(sphericalTensorType, sphericalTensorType, diag) \
51 UNARY_FUNCTION(CmptType, sphericalTensorType, contractLinear) \
52 UNARY_FUNCTION(CmptType, sphericalTensorType, contractScalar) \
54 BINARY_OPERATOR(sphericalTensorType, CmptType, sphericalTensorType, /, divide) \
55 BINARY_TYPE_OPERATOR(sphericalTensorType, CmptType, sphericalTensorType, /, divide) \
57 BINARY_OPERATOR(vectorType, vectorType, sphericalTensorType, /, divide) \
58 BINARY_TYPE_OPERATOR(vectorType, vectorType, sphericalTensorType, /, divide) \
60 BINARY_OPERATOR(sphericalTensorType, sphericalTensorType, sphericalTensorType, /, divide) \
61 BINARY_TYPE_OPERATOR(sphericalTensorType, sphericalTensorType, sphericalTensorType, /, divide) \
63 BINARY_OPERATOR(sphericalTensorType, sphericalTensorType, sphericalTensorType, +, add) \
64 BINARY_OPERATOR(sphericalTensorType, sphericalTensorType, sphericalTensorType, -, subtract) \
66 BINARY_TYPE_OPERATOR(sphericalTensorType, sphericalTensorType, sphericalTensorType, +, add) \
67 BINARY_TYPE_OPERATOR(sphericalTensorType, sphericalTensorType, sphericalTensorType, -, subtract)
69 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74 forAllVectorTensorNTypes(SphericalTensorN_FieldFunctions)
78 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
80 #undef SphericalTensorN_FieldFunctions
82 #include "undefFieldFunctionsM.H"
84 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
87 # include "SphericalTensorNFieldFields.C"
90 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94 // ************************************************************************* //