1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
28 Spatial transformation functions for primitive fields.
33 \*---------------------------------------------------------------------------*/
35 #ifndef transformList_H
36 #define transformList_H
38 #include "transform.H"
42 #include "tensorField.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 //- Extend transform to work on list.
56 const tensor& rotTensor,
60 //- Apply transformation to list. Either single transformation tensor
61 // or one tensor per element.
63 void transformList(const tensor&, UList<T>&);
65 void transformList(const tensorField&, UList<T>&);
68 void transformList(const tensor&, Map<T>&);
70 void transformList(const tensorField&, Map<T>&);
73 void transformList(const tensor&, EdgeMap<T>&);
75 void transformList(const tensorField&, EdgeMap<T>&);
79 inline void transformList(const tensor&, labelUList&)
82 inline void transformList(const tensorField&, labelUList&)
85 inline void transformList(const tensor&, Map<label>&)
88 inline void transformList(const tensorField&, Map<label>&)
91 inline void transformList(const tensor&, EdgeMap<label>&)
94 inline void transformList(const tensorField&, EdgeMap<label>&)
99 inline void transformList(const tensor&, UList<scalar>&)
102 inline void transformList(const tensorField&, UList<scalar>&)
105 inline void transformList(const tensor&, Map<scalar>&)
108 inline void transformList(const tensorField&, Map<scalar>&)
111 inline void transformList(const tensor&, EdgeMap<scalar>&)
114 inline void transformList(const tensorField&, EdgeMap<scalar>&)
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 } // End namespace Foam
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 # include "transformList.C"
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 // ************************************************************************* //