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::STARCDedgeFormat
28 Read/write the lines from pro-STAR vrt/cel files.
31 Uses the extension \a .inp (input) to denote the format.
34 Foam::meshReaders::STARCD
39 \*---------------------------------------------------------------------------*/
41 #ifndef STARCDedgeFormat_H
42 #define STARCDedgeFormat_H
45 #include "STARCDCore.H"
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 /*---------------------------------------------------------------------------*\
59 Class STARCDedgeFormat Declaration
60 \*---------------------------------------------------------------------------*/
62 class STARCDedgeFormat
69 //- STAR-CD identifier for line shapes (1d elements)
70 static const int starcdLineShape_ = 2;
72 //- STAR-CD identifier for line type
73 static const int starcdLineType_ = 5;
76 // Private Member Functions
78 static inline void writeLines
84 //- Disallow default bitwise copy construct
85 STARCDedgeFormat(const STARCDedgeFormat&);
87 //- Disallow default bitwise assignment
88 void operator=(const STARCDedgeFormat&);
93 // Protected Member Functions
106 //- Construct from file name
107 STARCDedgeFormat(const fileName&);
112 //- Read file and return edgeMesh
113 static autoPtr<edgeMesh> New(const fileName& name)
115 return autoPtr<edgeMesh>
117 new STARCDedgeFormat(name)
123 virtual ~STARCDedgeFormat()
130 static void write(const fileName&, const edgeMesh&);
133 virtual bool read(const fileName&);
136 virtual void write(const fileName& name) const
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 } // End namespace fileFormats
146 } // End namespace Foam
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 // ************************************************************************* //