symmTransformField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Typedef
25  Foam::symmTransformField
26 
27 Description
28  Spatial transformation functions for primitive fields.
29 
30 SourceFiles
31  symmTransformField.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef symmTransformField_H
36 #define symmTransformField_H
37 
38 #include "symmTransform.H"
39 #include "symmTensorField.H"
40 #include "sphericalTensor.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 template<class Type>
50 void transform(Field<Type>&, const symmTensorField&, const Field<Type>&);
51 
52 template<class Type>
53 tmp<Field<Type>> transform(const symmTensorField&, const Field<Type>&);
54 
55 template<class Type>
56 tmp<Field<Type>> transform(const symmTensorField&, const tmp<Field<Type>>&);
57 
58 template<class Type>
59 tmp<Field<Type>> transform(const tmp<symmTensorField>&, const Field<Type>&);
60 
61 template<class Type>
62 tmp<Field<Type>> transform
63 (
64  const tmp<symmTensorField>&,
65  const tmp<Field<Type>>&
66 );
67 
68 
69 template<class Type>
70 void transform(Field<Type>&, const tensor&, const Field<Type>&);
71 
72 template<class Type>
73 tmp<Field<Type>> transform(const tensor&, const Field<Type>&);
74 
75 template<class Type>
76 tmp<Field<Type>> transform(const tensor&, const tmp<Field<Type>>&);
77 
78 
79 template<>
80 tmp<Field<sphericalTensor>> transformFieldMask<sphericalTensor>
81 (
82  const symmTensorField&
83 );
84 
85 template<>
86 tmp<Field<sphericalTensor>> transformFieldMask<sphericalTensor>
87 (
88  const tmp<symmTensorField>&
89 );
90 
91 
92 template<>
93 tmp<Field<symmTensor>> transformFieldMask<symmTensor>
94 (
95  const symmTensorField&
96 );
97 
98 template<>
99 tmp<Field<symmTensor>> transformFieldMask<symmTensor>
100 (
101  const tmp<symmTensorField>&
102 );
103 
104 
105 template<>
106 tmp<Field<tensor>> transformFieldMask<tensor>
107 (
108  const symmTensorField&
109 );
110 
111 template<>
112 tmp<Field<tensor>> transformFieldMask<tensor>
113 (
114  const tmp<symmTensorField>&
115 );
116 
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #ifdef NoRepository
125  #include "symmTransformField.C"
126 #endif
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 #endif
131 
132 // ************************************************************************* //
3D symmetric tensor transformation operations.
Field< symmTensor > symmTensorField
Specialisation of Field<T> for symmTensor.
tmp< Field< sphericalTensor > > transformFieldMask< sphericalTensor >(const tensorField &tf)
tmp< Field< tensor > > transformFieldMask< tensor >(const symmTensorField &)
Definition: tensorField.C:130
tmp< Field< symmTensor > > transformFieldMask< symmTensor >(const tensorField &tf)
Tensor< scalar > tensor
Tensor of scalars.
Definition: tensor.H:51
Namespace for OpenFOAM.
dimensionSet transform(const dimensionSet &)
Definition: dimensionSet.C:477