transformGeometricField.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 Copyright (C) 2018 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27InClass
28 Foam::transformGeometricField
29
30Description
31 Spatial transformation functions for GeometricField
32
33SourceFiles
34 transformGeometricField.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef transformGeometricField_H
39#define transformGeometricField_H
40
41#include "transform.H"
42#include "GeometricField.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48
49// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50
51// transform()
52
53template<class Type, template<class> class PatchField, class GeoMesh>
54void transform
55(
56 GeometricField<Type, PatchField, GeoMesh>& result,
57 const dimensionedTensor& rot,
58 const GeometricField<Type, PatchField, GeoMesh>& fld
59);
60
61template<class Type, template<class> class PatchField, class GeoMesh>
62void transform
63(
64 GeometricField<Type, PatchField, GeoMesh>& result,
65 const GeometricField<tensor, PatchField, GeoMesh>& rot,
66 const GeometricField<Type, PatchField, GeoMesh>& fld
67);
68
69
70template<class Type, template<class> class PatchField, class GeoMesh>
72(
75);
76
77template<class Type, template<class> class PatchField, class GeoMesh>
79(
82);
83
84template<class Type, template<class> class PatchField, class GeoMesh>
86(
89);
90
91template<class Type, template<class> class PatchField, class GeoMesh>
93(
96);
97
98template<class Type, template<class> class PatchField, class GeoMesh>
100(
101 const dimensionedTensor& rot,
103);
104
105template<class Type, template<class> class PatchField, class GeoMesh>
107(
108 const dimensionedTensor& rot,
110);
111
112
113
114// invTransform()
115
116template<class Type, template<class> class PatchField, class GeoMesh>
117void invTransform
118(
120 const dimensionedTensor& rot,
122);
123
124template<class Type, template<class> class PatchField, class GeoMesh>
125void invTransform
126(
130);
131
132template<class Type, template<class> class PatchField, class GeoMesh>
134(
137);
138
139template<class Type, template<class> class PatchField, class GeoMesh>
141(
144);
145
146template<class Type, template<class> class PatchField, class GeoMesh>
148(
151);
152
153template<class Type, template<class> class PatchField, class GeoMesh>
155(
158);
159
160
161template<class Type, template<class> class PatchField, class GeoMesh>
163(
164 const dimensionedTensor& rot,
166);
167
168template<class Type, template<class> class PatchField, class GeoMesh>
170(
171 const dimensionedTensor& rot,
173);
174
175
176// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177
178} // End namespace Foam
179
180// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
181
182#ifdef NoRepository
184#endif
185
186// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
187
188#endif
189
190// ************************************************************************* //
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Definition: GeoMesh.H:49
Generic GeometricField class.
Generic dimensioned Type class.
A class for managing temporary objects.
Definition: tmp.H:65
Namespace for OpenFOAM.
dimensionSet invTransform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
Definition: dimensionSet.C:542
dimensioned< tensor > dimensionedTensor
Dimensioned tensor obtained from generic dimensioned type.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
Definition: dimensionSet.C:536
Spatial transformation functions for FieldFields.
3D tensor transformation operations.