transformFieldField.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
27InNamespace
28 Foam
29
30Description
31 transformFieldField
32 Spatial transformation functions for FieldField.
33
34SourceFiles
35 transformFieldField.C
36
37\*---------------------------------------------------------------------------*/
38
39#ifndef transformFieldField_H
40#define transformFieldField_H
41
42#include "transform.H"
43#include "tensorFieldField.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49
50// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51
52// transform()
53
54template<template<class> class Field, class Type>
55void transform
56(
57 FieldField<Field, Type>& result,
58 const tensor& rot,
59 const FieldField<Field, Type>& fld
60);
61
62template<template<class> class Field, class Type>
63void transform
64(
65 FieldField<Field, Type>& result,
66 const FieldField<Field, tensor>& rot,
67 const FieldField<Field, Type>& fld
68);
69
70template<template<class> class Field, class Type>
72(
75);
76
77template<template<class> class Field, class Type>
79(
81 const tmp<FieldField<Field, Type>>& tfld
82);
83
84template<template<class> class Field, class Type>
86(
87 const tmp<FieldField<Field, tensor>>& trot,
89);
90
91template<template<class> class Field, class Type>
93(
94 const tmp<FieldField<Field, tensor>>& trot,
95 const tmp<FieldField<Field, Type>>& tfld
96);
97
98
99template<template<class> class Field, class Type>
101(
102 const tensor& rot,
104);
105
106template<template<class> class Field, class Type>
108(
109 const tensor& rot,
110 const tmp<FieldField<Field, Type>>& tfld
111);
112
113
114// invTransform()
115
116template<template<class> class Field, class Type>
117void invTransform
118(
120 const tensor& rot,
122);
123
124template<template<class> class Field, class Type>
125void invTransform
126(
128 const FieldField<Field, tensor>& rot,
130);
131
132template<template<class> class Field, class Type>
134(
135 const FieldField<Field, tensor>& rot,
137);
138
139template<template<class> class Field, class Type>
141(
142 const FieldField<Field, tensor>& rot,
143 const tmp<FieldField<Field, Type>>& tfld
144);
145
146template<template<class> class Field, class Type>
148(
149 const tmp<FieldField<Field, tensor>>& trot,
151);
152
153template<template<class> class Field, class Type>
155(
156 const tmp<FieldField<Field, tensor>>& trot,
157 const tmp<FieldField<Field, Type>>& tfld
158);
159
160
161template<template<class> class Field, class Type>
163(
164 const tensor& rot,
166);
167
168template<template<class> class Field, class Type>
170(
171 const tensor& rot,
172 const tmp<FieldField<Field, Type>>& tfld
173);
174
175
176// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177
178} // End namespace Foam
179
180// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
181
182#ifdef NoRepository
183 #include "transformFieldField.C"
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))
A field of fields is a PtrList of fields with reference counting.
Definition: FieldField.H:80
Generic templated field type.
Definition: Field.H:82
Tensor of scalars, i.e. Tensor<scalar>.
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
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
Definition: dimensionSet.C:536
Specialisation of FieldField<T> for tensor.
3D tensor transformation operations.