dummyTransform.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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
19  for more details.
20 
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/>.
23 
24 InClass
25  Foam::dummyTransform
26 
27 Description
28  Dummy transform to be used with syncTools.
29 
30 \*---------------------------------------------------------------------------*/
31 
32 #ifndef dummyTransform_H
33 #define dummyTransform_H
34 
35 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
36 
37 namespace Foam
38 {
39 
40 /*---------------------------------------------------------------------------*\
41  Class dummyTransform Declaration
42 \*---------------------------------------------------------------------------*/
43 
45 {
46 public:
47  template<class T>
48  void operator()
49  (
50  const transformer& vt,
51  const bool forward,
52  List<T>& fld
53  ) const
54  {};
55  template<class T>
56  void operator()(const coupledPolyPatch& cpp, Field<T>& fld) const
57  {}
58  template<class T, template<class> class Container>
59  void operator()(const coupledPolyPatch& cpp, Container<T>& map) const
60  {}
61 };
62 
63 
64 template<class T>
65 class pTraits<List<T>>
66 :
67  public List<T>
68 {
69 public:
70  typedef label cmptType;
71 
73  :
74  List<T>(is)
75  {}
76 };
77 
78 template<class T>
79 class pTraits<UList<T>>
80 :
81  public UList<T>
82 {
83 public:
84  typedef label cmptType;
85 
87  :
88  UList<T>(is)
89  {}
90 };
91 
92 template<class T>
93 class pTraits<Field<T>>
94 :
95  public Field<T>
96 {
97 public:
98  typedef label cmptType;
99 
101  :
102  Field<T>(is)
103  {}
104 };
105 
106 template<>
107 class pTraits<face>
108 :
109  public face
110 {
111 public:
112  typedef label cmptType;
113 
115  :
116  face(is)
117  {}
118 };
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #endif
127 
128 // ************************************************************************* //
void operator()(const coupledPolyPatch &cpp, Field< T > &fld) const
Vector-tensor class used to perform translations, rotations and scaling operations in 3D space...
Definition: transformer.H:83
A face is a list of labels corresponding to mesh vertices.
Definition: face.H:75
void operator()(const coupledPolyPatch &cpp, Container< T > &map) const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Definition: Istream.H:57
Traits class for primitives.
Definition: pTraits.H:50
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
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:60
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Namespace for OpenFOAM.