/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Copyright (C) 2011-2026 OpenFOAM Foundation \\/ 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 3 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, see . \*---------------------------------------------------------------------------*/ #include "STARCDMeshWriter.H" #include "Time.H" #include "OFstream.H" #include "OSspecific.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_.boundary(); 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