Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / src / mesh / cfMesh / utilities / dataConversion / foamToFPMA / fpmaMesh.H
blob12108f62d785680a86982b9a27a4c348049b6f2c
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | cfMesh: A library for mesh generation
4    \\    /   O peration     |
5     \\  /    A nd           | Author: Franjo Juretic (franjo.juretic@c-fields.com)
6      \\/     M anipulation  | Copyright (C) Creative Fields, Ltd.
7 -------------------------------------------------------------------------------
8 License
9     This file is part of cfMesh.
11     cfMesh 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 3 of the License, or (at your
14     option) any later version.
16     cfMesh 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
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with cfMesh.  If not, see <http://www.gnu.org/licenses/>.
24 Class
25     fpmaMesh
27 Description
29 SourceFiles
30     fpmaMesh.C
32 \*---------------------------------------------------------------------------*/
34 #ifndef fpmaMesh_H
35 #define fpmaMesh_H
37 #include "polyMeshGen.H"
38 #include "OFstream.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 namespace Foam
45 /*---------------------------------------------------------------------------*\
46                            Class fpmaMesh Declaration
47 \*---------------------------------------------------------------------------*/
49 class fpmaMesh
51     // Private data
54     // Private Member Functions
56         //- Disallow default bitwise copy construct
57         fpmaMesh(const fpmaMesh&);
59         //- Disallow default bitwise assignment
60         void operator=(const fpmaMesh&);
62         void writePoints(OFstream& fpmaGeometryFile) const;
64         void writeFaces(OFstream& fpmaGeometryFile) const;
66         void writeCells(OFstream& fpmaGeometryFile) const;
68         void writeSubsets(OFstream& fpmaGeometryFile) const;
70 public:
72     // Public data
74         const polyMeshGen& mesh_;
76     // Constructors
78         //- Construct from polyMeshGen
79         fpmaMesh(const polyMeshGen& mesh);
82     // Destructor
84         ~fpmaMesh();
87     // Member Functions
89         // Access
91         // Check
93         // Edit
95         // Write
97             void write(OFstream& fpmaGeometryFile) const;
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 } // End namespace Foam
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 #endif
109 // ************************************************************************* //