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