/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 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 "surfaceToCell.H" #include "polyMesh.H" #include "meshSearch.H" #include "triSurface.H" #include "triSurfaceSearch.H" #include "cellClassification.H" #include "cpuTime.H" #include "addToRunTimeSelectionTable.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam { defineTypeNameAndDebug(surfaceToCell, 0); addToRunTimeSelectionTable(topoSetSource, surfaceToCell, word); addToRunTimeSelectionTable(topoSetSource, surfaceToCell, istream); } Foam::topoSetSource::addToUsageTable Foam::surfaceToCell::usage_ ( surfaceToCell::typeName, "\n Usage: surfaceToCell" " \n\n" " name of triSurface\n" " list of points that define outside\n" " boolean whether to include cells cut by surface\n" " ,, ,, inside surface\n" " ,, ,, outside surface\n" " scalar; include cells with centre <= near to surface\n" " scalar; include cells close to strong curvature" " on surface\n" " (curvature defined as difference in surface normal at nearest" " point on surface for each vertex of cell)\n\n" ); // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // Foam::label Foam::surfaceToCell::getNearest ( const triSurfaceSearch& querySurf, const label pointI, const point& pt, const vector& span, Map