1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
25 Foam::fileFormats::GTSsurfaceFormat
28 Provide a means of reading/writing GTS format.
29 The output is never sorted by zone and is only written if it consists
30 entirely of triangles.
35 \*---------------------------------------------------------------------------*/
37 #ifndef GTSsurfaceFormat_H
38 #define GTSsurfaceFormat_H
40 #include "MeshedSurface.H"
41 #include "MeshedSurfaceProxy.H"
42 #include "UnsortedMeshedSurface.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 /*---------------------------------------------------------------------------*\
52 Class GTSsurfaceFormat Declaration
53 \*---------------------------------------------------------------------------*/
56 class GTSsurfaceFormat
58 public UnsortedMeshedSurface<Face>
60 // Private Member Functions
62 //- Disallow default bitwise copy construct
63 GTSsurfaceFormat(const GTSsurfaceFormat<Face>&);
65 //- Disallow default bitwise assignment
66 void operator=(const GTSsurfaceFormat<Face>&);
73 //- Construct from file name
74 GTSsurfaceFormat(const fileName&);
79 //- Read file and return surface
80 static autoPtr<UnsortedMeshedSurface<Face> > New(const fileName& name)
82 return autoPtr<UnsortedMeshedSurface<Face> >
84 new GTSsurfaceFormat<Face>(name)
90 virtual ~GTSsurfaceFormat()
96 //- Write MeshedSurface
97 static void write(const fileName&, const MeshedSurface<Face>&);
99 //- Write UnsortedMeshedSurface, the output remains unsorted
100 static void write(const fileName&, const UnsortedMeshedSurface<Face>&);
103 virtual bool read(const fileName&);
106 virtual void write(const fileName& name) const
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 } // End namespace fileFormats
116 } // End namespace Foam
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 # include "GTSsurfaceFormat.C"
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 // ************************************************************************* //