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::FTRsurfaceFormat
28 Reading of the (now deprecated and infrequently used)
29 Foam Trisurface Format.
32 Other formats are better. (deprecated Mar 2009)
37 \*---------------------------------------------------------------------------*/
39 #ifndef FTRsurfaceFormat_H
40 #define FTRsurfaceFormat_H
43 #include "MeshedSurface.H"
44 #include "UnsortedMeshedSurface.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 /*---------------------------------------------------------------------------*\
54 Class FTRsurfaceFormat Declaration
55 \*---------------------------------------------------------------------------*/
58 class FTRsurfaceFormat
60 public UnsortedMeshedSurface<Face>
64 //- read compatibility for ftr patch definitions
70 //- Type of patch (ignored since it is usually "empty")
75 const word& name() const
80 friend Istream& operator>>(Istream& is, ftrPatch& p)
82 is >> p.name_ >> p.type_;
88 // Private Member Functions
90 //- Disallow default bitwise copy construct
91 FTRsurfaceFormat(const FTRsurfaceFormat<Face>&);
93 //- Disallow default bitwise assignment
94 void operator=(const FTRsurfaceFormat<Face>&);
101 //- Construct from file name
102 FTRsurfaceFormat(const fileName&);
107 //- Read file and return surface
108 static autoPtr<UnsortedMeshedSurface<Face> > New(const fileName& name)
110 return autoPtr<UnsortedMeshedSurface<Face> >
112 new FTRsurfaceFormat<Face>(name)
118 virtual ~FTRsurfaceFormat()
125 virtual bool read(const fileName&);
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 } // End namespace fileFormats
132 } // End namespace Foam
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 # include "FTRsurfaceFormat.C"
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 // ************************************************************************* //