patchDistWave.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::patchDistWave
26 
27 Description
28  Takes a set of patches to start FaceCellWave from and computed the distance
29  at patches and possibly additional transported data.
30 
31 SourceFiles
32  patchDistWave.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef patchDistWave_H
37 #define patchDistWave_H
38 
39 #include "polyMesh.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace patchDistWave
46 {
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 //- Get initial set of changed faces
52 (
53  const polyMesh& mesh,
54  const labelHashSet& patchIDs
55 );
56 
57 //- Wave distance data from faces
58 label wave
59 (
60  const polyMesh& mesh,
61  const labelList& changedFaces,
62  scalarField& cellDistance
63 );
64 
65 //- Calculate distance data from patches
67 (
68  const polyMesh& mesh,
69  const labelHashSet& patchIDs,
70  scalarField& cellDistance
71 );
72 
73 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74 
75 } // End namespace patchDistWave
76 } // End namespace Foam
77 
78 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
79 
80 #endif
81 
82 // ************************************************************************* //
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59
fvMesh & mesh
Takes a set of patches to start FaceCellWave from and computed the distance at patches and possibly a...
labelList getChangedFaces(const polyMesh &mesh, const labelHashSet &patchIDs)
Get initial set of changed faces.
label calculate(const polyMesh &mesh, const labelHashSet &patchIDs, scalarField &cellDistance)
Calculate distance data from patches.
label wave(const polyMesh &mesh, const labelList &changedFaces, scalarField &cellDistance)
Wave distance data from faces.
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:76
Namespace for OpenFOAM.