/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA \*---------------------------------------------------------------------------*/ #include "STARCDMeshWriter.H" #include "Time.H" #include "SortableList.H" #include "OFstream.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // const char* Foam::meshWriters::STARCD::defaultBoundaryName = "Default_Boundary_Region"; const Foam::label Foam::meshWriters::STARCD::foamToStarFaceAddr[4][6] = { { 4, 5, 2, 3, 0, 1 }, // 11 = pro-STAR hex { 0, 1, 4, 5, 2, -1 }, // 12 = pro-STAR prism { 5, 4, 2, 0, -1, -1 }, // 13 = pro-STAR tetra { 0, 4, 3, 5, 2, -1 } // 14 = pro-STAR pyramid }; // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // Foam::label Foam::meshWriters::STARCD::findDefaultBoundary() const { const polyBoundaryMesh& patches = mesh_.boundaryMesh(); label id = -1; // find Default_Boundary_Region if it exists forAll(patches, patchI) { if (defaultBoundaryName == patches[patchI].name()) { id = patchI; break; } } return id; } void Foam::meshWriters::STARCD::getCellTable() { // read constant/polyMesh/propertyName IOList