dummyTransform.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) 2020-2025 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
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 
27 InClass
28  Foam::dummyTransform
29 
30 Description
31  Dummy transform to be used with syncTools.
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef Foam_dummyTransform_H
36 #define Foam_dummyTransform_H
37 
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 
40 namespace Foam
41 {
42 
43 /*---------------------------------------------------------------------------*\
44  Class dummyTransform Declaration
45 \*---------------------------------------------------------------------------*/
46 
48 {
49 public:
50 
51  template<class T>
52  void operator()
53  (
54  const vectorTensorTransform& vt,
55  const bool forward,
57  ) const
58  {}
59 
60  template<class Type>
61  void operator()
62  (
63  const vectorTensorTransform& vt,
64  const bool forward,
65  List<List<Type>>& flds
66  ) const
67  {}
68 
69  template<class T>
70  void operator()(const coupledPolyPatch& cpp, UList<T>& fld) const
71  {}
72 
73  template<class T, template<class> class Container>
74  void operator()(const coupledPolyPatch& cpp, Container<T>& map) const
75  {}
76 };
77 
78 
79 template<class T>
80 class pTraits<List<T>>
81 :
82  public List<T>
83 {
84 public:
85  typedef label cmptType;
86 
87  explicit pTraits(Istream& is)
88  :
89  List<T>(is)
90  {}
91 };
92 
93 template<class T>
94 class pTraits<UList<T>>
95 :
96  public UList<T>
97 {
98 public:
99  typedef label cmptType;
100 
101  explicit pTraits(Istream& is)
102  :
103  UList<T>(is)
104  {}
105 };
106 
107 template<class T>
108 class pTraits<Field<T>>
109 :
110  public Field<T>
111 {
112 public:
113  typedef label cmptType;
114 
115  explicit pTraits(Istream& is)
116  :
117  Field<T>(is)
118  {}
119 };
120 
121 template<>
122 class pTraits<face>
123 :
124  public face
125 {
126 public:
127  typedef label cmptType;
128 
129  explicit pTraits(Istream& is)
130  :
131  face(is)
132  {}
133 };
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 } // End namespace Foam
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 #endif
142 
143 // ************************************************************************* //
A face is a list of labels corresponding to mesh vertices.
Definition: face.H:68
Vector-tensor class used to perform translations and rotations in 3D space.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: BitOps.H:56
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Definition: Istream.H:57
A traits class, which is primarily used for primitives and vector-space.
Definition: pTraits.H:61
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
pTraits(const Base &obj)
Copy construct from base class.
Definition: pTraits.H:72
Generic templated field type.
Definition: Field.H:63
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Definition: HashTable.H:105
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void operator()(const vectorTensorTransform &vt, const bool forward, UList< T > &fld) const
Namespace for OpenFOAM.