ENH: polyMeshInitMesh.C: check on validity
[OpenFOAM-2.0.x.git] / src / conversion / meshWriter / meshWriter.C
blobd354eaebf0cd8780d51d69c13de48c6fc4421131
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2004-2010 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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/>.
24 \*----------------------------------------------------------------------------*/
26 #include "meshWriter.H"
27 #include "cellModeller.H"
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 Foam::string Foam::meshWriter::defaultMeshName = "meshExport";
34 const Foam::cellModel* Foam::meshWriter::unknownModel = Foam::cellModeller::
35 lookup
37     "unknown"
41 const Foam::cellModel* Foam::meshWriter::tetModel = Foam::cellModeller::
42 lookup
44     "tet"
48 const Foam::cellModel* Foam::meshWriter::pyrModel = Foam::cellModeller::
49 lookup
51     "pyr"
55 const Foam::cellModel* Foam::meshWriter::prismModel = Foam::cellModeller::
56 lookup
58     "prism"
62 const Foam::cellModel* Foam::meshWriter::hexModel = Foam::cellModeller::
63 lookup
65     "hex"
69 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
71 Foam::meshWriter::meshWriter(const polyMesh& mesh, const scalar scaleFactor)
73     mesh_(mesh),
74     scaleFactor_(scaleFactor),
75     writeBoundary_(true),
76     boundaryRegion_(),
77     cellTable_(),
78     cellTableId_()
82 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
84 Foam::meshWriter::~meshWriter()
88 // ************************************************************************* //