1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::fileFormats::NASsurfaceFormat
29 Nastran surface reader.
31 - Uses the Ansa "$ANSA_NAME" or the Hypermesh "$HMNAME COMP" extensions
33 - Handles Nastran short and long formats, but not free format.
34 - Properly handles the Nastran compact floating point notation: \n
36 GRID 28 10.20269-.030265-2.358-8
42 \*---------------------------------------------------------------------------*/
44 #ifndef NASsurfaceFormat_H
45 #define NASsurfaceFormat_H
47 #include "MeshedSurface.H"
48 #include "MeshedSurfaceProxy.H"
49 #include "UnsortedMeshedSurface.H"
50 #include "NASsurfaceFormatCore.H"
52 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
59 /*---------------------------------------------------------------------------*\
60 Class NASsurfaceFormat Declaration
61 \*---------------------------------------------------------------------------*/
64 class NASsurfaceFormat
66 public MeshedSurface<Face>,
67 public NASsurfaceFormatCore
69 // Private Member Functions
71 //- Disallow default bitwise copy construct
72 NASsurfaceFormat(const NASsurfaceFormat<Face>&);
74 //- Disallow default bitwise assignment
75 void operator=(const NASsurfaceFormat<Face>&);
82 //- Construct from file name
83 NASsurfaceFormat(const fileName&);
88 //- Read file and return surface
89 static autoPtr<MeshedSurface<Face> > New(const fileName& name)
91 return autoPtr<MeshedSurface<Face> >
93 new NASsurfaceFormat<Face>(name)
100 virtual ~NASsurfaceFormat()
107 virtual bool read(const fileName&);
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace fileFormats
114 } // End namespace Foam
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 # include "NASsurfaceFormat.C"
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 // ************************************************************************* //