/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2013 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 . Class Foam::meshToMeshMethod Description Base class for mesh-to-mesh calculation methods SourceFiles meshToMeshMethod.C \*---------------------------------------------------------------------------*/ #ifndef meshToMeshMethod_H #define meshToMeshMethod_H #include "polyMesh.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { /*---------------------------------------------------------------------------*\ Class meshToMeshMethod Declaration \*---------------------------------------------------------------------------*/ class meshToMeshMethod { protected: // Protected data //- Reference to the source mesh const polyMesh& src_; //- Reference to the target mesh const polyMesh& tgt_; //- Cell total volume in overlap region [m3] scalar V_; //- Tolerance used in volume overlap calculations static scalar tolerance_; // Protected Member Functions //- Return src cell IDs for the overlap region labelList maskCells() const; //- Return the true if cells intersect bool intersect(const label srcCellI, const label tgtCellI) const; //- Return the intersection volume between two cells scalar interVol(const label srcCellI, const label tgtCellI) const; //- Append target cell neihgbour cells to cellIDs list void appendNbrCells ( const label tgtCellI, const polyMesh& mesh, const DynamicList