Forward compatibility: flex
[foam-extend-3.2.git] / src / conversion / meshWriter / meshWriter.C
blob2a2692846f95e711e828a4966372c6bf2e862f51
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | foam-extend: Open Source CFD
4    \\    /   O peration     | Version:     3.2
5     \\  /    A nd           | Web:         http://www.foam-extend.org
6      \\/     M anipulation  | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
8 License
9     This file is part of foam-extend.
11     foam-extend 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     foam-extend is distributed in the hope that it will be useful, but
17     WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19     General Public License for more details.
21     You should have received a copy of the GNU General Public License
22     along with foam-extend.  If not, see <http://www.gnu.org/licenses/>.
24 \*----------------------------------------------------------------------------*/
26 #include "meshWriter.H"
27 #include "cellModeller.H"
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 const Foam::cellModel* Foam::meshWriter::unknownModel = Foam::cellModeller::
32 lookup
34     "unknown"
38 const Foam::cellModel* Foam::meshWriter::tetModel = Foam::cellModeller::
39 lookup
41     "tet"
45 const Foam::cellModel* Foam::meshWriter::pyrModel = Foam::cellModeller::
46 lookup
48     "pyr"
52 const Foam::cellModel* Foam::meshWriter::prismModel = Foam::cellModeller::
53 lookup
55     "prism"
59 const Foam::cellModel* Foam::meshWriter::hexModel = Foam::cellModeller::
60 lookup
62     "hex"
66 Foam::string Foam::meshWriter::defaultMeshName = "meshExport";
67 Foam::string Foam::meshWriter::defaultSurfaceName = "surfExport";
70 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
72 Foam::meshWriter::meshWriter(const polyMesh& mesh, const scalar scaleFactor)
74     mesh_(mesh),
75     scaleFactor_(scaleFactor),
76     writeBoundary_(true),
77     boundaryRegion_(),
78     cellTable_(),
79     cellTableId_()
83 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
85 Foam::meshWriter::~meshWriter()
89 // ************************************************************************* //