STLsurfaceFormatRunTime.C
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 OpenFOAM Foundation
9  Copyright (C) 2016 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 \*---------------------------------------------------------------------------*/
28 
29 #include "STLsurfaceFormat.H"
30 #include "labelledTri.H"
31 
34 
35 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
36 
37 namespace Foam
38 {
39 namespace fileFormats
40 {
41 
42 // read MeshedSurface (ascii)
44 (
45  MeshedSurface,
46  STLsurfaceFormat,
47  face,
49  stl
50 );
52 (
53  MeshedSurface,
54  STLsurfaceFormat,
55  triFace,
57  stl
58 );
60 (
61  MeshedSurface,
62  STLsurfaceFormat,
63  labelledTri,
65  stl
66 );
67 
68 // read MeshedSurface (binary)
70 (
71  MeshedSurface,
72  STLsurfaceFormat,
73  face,
75  stlb
76 );
78 (
79  MeshedSurface,
80  STLsurfaceFormat,
81  triFace,
83  stlb
84 );
86 (
87  MeshedSurface,
88  STLsurfaceFormat,
89  labelledTri,
91  stlb
92 );
93 
94 
95 // write MeshedSurfaceProxy (ascii)
97 (
98  MeshedSurfaceProxy,
99  STLsurfaceFormat,
100  face,
101  write,
103  stl
104 );
106 (
107  MeshedSurfaceProxy,
108  STLsurfaceFormat,
109  triFace,
110  write,
112  stl
113 );
115 (
116  MeshedSurfaceProxy,
117  STLsurfaceFormat,
118  labelledTri,
119  write,
121  stl
122 );
123 
124 // write MeshedSurfaceProxy (binary)
126 (
127  MeshedSurfaceProxy,
128  STLsurfaceFormat,
129  face,
130  write,
132  stlb
133 );
135 (
136  MeshedSurfaceProxy,
137  STLsurfaceFormat,
138  triFace,
139  write,
141  stlb
142 );
144 (
145  MeshedSurfaceProxy,
146  STLsurfaceFormat,
147  labelledTri,
148  write,
150  stlb
151 );
152 
153 // write UnsortedMeshedSurface (ascii)
155 (
156  UnsortedMeshedSurface,
157  STLsurfaceFormat,
158  face,
159  write,
161  stl
162 );
164 (
165  UnsortedMeshedSurface,
166  STLsurfaceFormat,
167  triFace,
168  write,
170  stl
171 );
173 (
174  UnsortedMeshedSurface,
175  STLsurfaceFormat,
176  labelledTri,
177  write,
179  stl
180 );
181 
182 // write UnsortedMeshedSurface (binary)
184 (
185  UnsortedMeshedSurface,
186  STLsurfaceFormat,
187  face,
188  write,
190  stlb
191 );
193 (
194  UnsortedMeshedSurface,
195  STLsurfaceFormat,
196  triFace,
197  write,
199  stlb
200 );
202 (
203  UnsortedMeshedSurface,
204  STLsurfaceFormat,
205  labelledTri,
206  write,
208  stlb
209 );
210 
211 }
212 }
213 
214 // ************************************************************************* //
Foam::vtk::fileExtension
const Foam::Enum< fileTag > fileExtension
File extension (without ".") for some vtk XML file content types.
Foam::fileFormats::addNamedTemplatedToMemberFunctionSelectionTable
addNamedTemplatedToMemberFunctionSelectionTable(MeshedSurfaceProxy, ABAQUSsurfaceFormat, face, write, fileExtension, abaqus)
addToMemberFunctionSelectionTable.H
Macros for easy insertion into member function selection tables.
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
STLsurfaceFormat.H
Foam::fileFormats::addNamedTemplatedToRunTimeSelectionTable
addNamedTemplatedToRunTimeSelectionTable(MeshedSurface, ABAQUSsurfaceFormat, face, fileExtension, abaqus)
Foam::vtk::write
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Definition: foamVtkOutputTemplates.C:35
labelledTri.H
triFace
face triFace(3)