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::NASsurfaceFormat
28 Nastran surface reader.
30 - Uses the Ansa "$ANSA_NAME" or the Hypermesh "$HMNAME COMP" extensions
32 - Handles Nastran short and long formats, but not free format.
33 - Properly handles the Nastran compact floating point notation: \n
35 GRID 28 10.20269-.030265-2.358-8
41 \*---------------------------------------------------------------------------*/
43 #ifndef NASsurfaceFormat_H
44 #define NASsurfaceFormat_H
46 #include "MeshedSurface.H"
47 #include "MeshedSurfaceProxy.H"
48 #include "UnsortedMeshedSurface.H"
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 /*---------------------------------------------------------------------------*\
59 Class NASsurfaceFormat Declaration
60 \*---------------------------------------------------------------------------*/
63 class NASsurfaceFormat
65 public MeshedSurface<Face>,
68 // Private Member Functions
70 //- Disallow default bitwise copy construct
71 NASsurfaceFormat(const NASsurfaceFormat<Face>&);
73 //- Disallow default bitwise assignment
74 void operator=(const NASsurfaceFormat<Face>&);
81 //- Construct from file name
82 NASsurfaceFormat(const fileName&);
87 //- Read file and return surface
88 static autoPtr<MeshedSurface<Face> > New(const fileName& name)
90 return autoPtr<MeshedSurface<Face> >
92 new NASsurfaceFormat<Face>(name)
98 virtual ~NASsurfaceFormat()
105 virtual bool read(const fileName&);
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 } // End namespace fileFormats
112 } // End namespace Foam
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 # include "NASsurfaceFormat.C"
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 // ************************************************************************* //