/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2018 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 "boundaryCutter.H" #include "polyMesh.H" #include "polyTopoChange.H" #include "polyAddCell.H" #include "polyAddFace.H" #include "polyAddPoint.H" #include "polyModifyFace.H" #include "polyModifyPoint.H" #include "mapPolyMesh.H" #include "meshTools.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam { defineTypeNameAndDebug(boundaryCutter, 0); } // * * * * * * * * * * * * * Private Static Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // void Foam::boundaryCutter::getFaceInfo ( const label facei, label& patchID, label& zoneID, label& zoneFlip ) const { patchID = -1; if (!mesh_.isInternalFace(facei)) { patchID = mesh_.boundaryMesh().whichPatch(facei); } zoneID = mesh_.faceZones().whichZone(facei); zoneFlip = false; if (zoneID >= 0) { const faceZone& fZone = mesh_.faceZones()[zoneID]; zoneFlip = fZone.flipMap()[fZone.whichFace(facei)]; } } // Adds additional vertices (from edge cutting) to face. Used for faces which // are not split but still might use edge that has been cut. Foam::face Foam::boundaryCutter::addEdgeCutsToFace ( const label facei, const Map& edgeToAddedPoints ) const { const edgeList& edges = mesh_.edges(); const face& f = mesh_.faces()[facei]; const labelList& fEdges = mesh_.faceEdges()[facei]; // Storage for face DynamicList