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 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::dummyTransform
29
30Description
31 Dummy transform to be used with syncTools.
32
33\*---------------------------------------------------------------------------*/
34
35#ifndef dummyTransform_H
36#define dummyTransform_H
37
38// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39
40namespace Foam
41{
42
43/*---------------------------------------------------------------------------*\
44 Class dummyTransform Declaration
45\*---------------------------------------------------------------------------*/
46
48{
49public:
50 template<class T>
51 void operator()
52 (
53 const vectorTensorTransform& vt,
54 const bool forward,
56 ) const
57 {}
58
59 template<class T>
60 void operator()(const coupledPolyPatch& cpp, Field<T>& fld) const
61 {}
62
63 template<class T, template<class> class Container>
64 void operator()(const coupledPolyPatch& cpp, Container<T>& map) const
65 {}
66};
67
68
69template<class T>
70class pTraits<List<T>>
71:
72 public List<T>
73{
74public:
75 typedef label cmptType;
76
77 explicit pTraits(Istream& is)
78 :
79 List<T>(is)
80 {}
81};
82
83template<class T>
85:
86 public UList<T>
87{
88public:
89 typedef label cmptType;
90
91 explicit pTraits(Istream& is)
92 :
93 UList<T>(is)
94 {}
95};
96
97template<class T>
99:
100 public Field<T>
101{
102public:
103 typedef label cmptType;
104
105 explicit pTraits(Istream& is)
106 :
107 Field<T>(is)
108 {}
109};
110
111template<>
113:
114 public face
115{
116public:
117 typedef label cmptType;
118
119 explicit pTraits(Istream& is)
120 :
121 face(is)
122 {}
123};
124
125// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126
127} // End namespace Foam
128
129// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130
131#endif
132
133// ************************************************************************* //
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 templated field type.
Definition: Field.H:82
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:64
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: List.H:77
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Definition: UList.H:94
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
void operator()(const coupledPolyPatch &cpp, Container< T > &map) const
void operator()(const coupledPolyPatch &cpp, Field< T > &fld) const
A face is a list of labels corresponding to mesh vertices.
Definition: face.H:75
A traits class, which is primarily used for primitives.
Definition: pTraits.H:59
Vector-tensor class used to perform translations and rotations in 3D space.
const volScalarField & T
Namespace for OpenFOAM.