/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 OpenFOAM Foundation Copyright (C) 2020 OpenCFD Ltd. ------------------------------------------------------------------------------- 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::patchDataWave Description Takes a set of patches to start MeshWave from. Holds after construction distance at cells and distance at patches (like patchWave), but also additional transported data. It is used, for example, in the y+ calculation. See also The patchWave class. SourceFiles patchDataWave.C \*---------------------------------------------------------------------------*/ #ifndef patchDataWave_H #define patchDataWave_H #include "cellDistFuncs.H" #include "FieldField.H" #include "UPtrList.H" #include "MeshWave.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { // Forward declaration of classes class polyMesh; class wallPoint; /*---------------------------------------------------------------------------*\ Class patchDataWave Declaration \*---------------------------------------------------------------------------*/ template class patchDataWave : public cellDistFuncs { private: typedef typename TransferType::dataType Type; // Private Member Data //- Current patch subset (stored as patchIDs) labelHashSet patchIDs_; //- Reference to initial extra data at patch faces const UPtrList>& initialPatchValuePtrs_; //- Do accurate distance calculation for near-wall cells. bool correctWalls_; //- Additional data to be passed into underlying containers TrackingData& td_; // // After construction: // //- Number of cells/faces unset after MeshWave has finished label nUnset_; //- Distance at cell centres scalarField distance_; //- Distance at patch faces FieldField patchDistance_; //- Extra data at cell centres Field cellData_; //- Extra data at patch faces FieldField patchData_; // Private Member Functions //- Set initial set of changed faces void setChangedFaces ( const labelHashSet& patchIDs, DynamicList