.. _program_listing_file_cellFinders_CellFinder_CellFinder.H: Program Listing for File CellFinder.H ===================================== |exhale_lsh| :ref:`Return to documentation for file ` (``cellFinders/CellFinder/CellFinder.H``) .. |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 . Class Foam::CellFinder @brief Class for searching for sampling cells. Contributors/Copyright: 2019 Timofey Mukha SourceFiles CellFinder.C \*---------------------------------------------------------------------------*/ #ifndef CellFinder_H #define CellFinder_H #include "tmp.H" #include "fvMesh.H" #include "runTimeSelectionTables.H" #include "addToRunTimeSelectionTable.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { /*---------------------------------------------------------------------------*\ Class CellFinder Declaration \*---------------------------------------------------------------------------*/ class CellFinder { protected: // Protected data //- The patch to build the list for const fvPatch & patch_; //- The global object registry const fvMesh & mesh_; // Protected Member Functions void createFields() const; public: #if !defined(DOXYGEN_SHOULD_SKIP_THIS) //- Runtime type information TypeName("CellFinder"); #endif // Constructors //- Construct from patch and averaging time CellFinder ( const fvPatch & ); //- Construct from type, patch and averaging time CellFinder ( const word & cellFinderName, const fvPatch & ); //- Copy constructor CellFinder(const CellFinder &); //- Destructor virtual ~CellFinder(); // Selectors static autoPtr New ( const word & CellFinderName, const fvPatch & ); static autoPtr New ( const dictionary &, const fvPatch & ); // Member functions //- Return the patch const fvPatch & patch() const { return patch_; } //- Get the mesh const fvMesh & mesh() const { return mesh_; } #if !defined(DOXYGEN_SHOULD_SKIP_THIS) // RTS tables // RTS table "Patch" declareRunTimeSelectionTable ( autoPtr, CellFinder, Patch, ( const word& CellFinderName, const fvPatch& p ), (CellFinderName, p) ); #endif }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif