.. _program_listing_file_cellFinders_CrawlingCellFinder_CrawlingCellFinder.C: Program Listing for File CrawlingCellFinder.C ============================================= |exhale_lsh| :ref:`Return to documentation for file ` (``cellFinders/CrawlingCellFinder/CrawlingCellFinder.C``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /*---------------------------------------------------------------------------* \ License This file is part of libWallModelledLES. libWallModelledLES 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. libWallModelledLES 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 libWallModelledLES. If not, see . \*---------------------------------------------------------------------------*/ #include "CrawlingCellFinder.H" #include "volFields.H" #include "surfaceFields.H" #include "codeRules.H" #include // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #if !defined(DOXYGEN_SHOULD_SKIP_THIS) namespace Foam { defineTypeNameAndDebug(CrawlingCellFinder, 0); addToRunTimeSelectionTable(CellFinder, CrawlingCellFinder, Patch); } #endif // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // Foam::CrawlingCellFinder::CrawlingCellFinder ( const fvPatch & p ) : CellFinder(p) { if (debug) { Info << "CrawlingCellFinder: Constructing from patch" << nl; } createFields(); } Foam::CrawlingCellFinder::CrawlingCellFinder ( const word & cellFinderName, const fvPatch & p ) : CellFinder(p) { } // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // void Foam::CrawlingCellFinder::findCellIndices ( labelList & indexList, const scalarField & h, const bool hIsIndex ) const { const labelList & owner = mesh_.faceOwner(); const labelList & neighbour = mesh_.faceNeighbour(); const vectorField & faceCentres = mesh().Cf().primitiveField(); const List & cells = mesh().cells(); const vectorField & patchFaceCentres = patch().Cf(); const volVectorField & C = mesh_.C(); const UList