| 55 | \*---------------------------------------------------------------------------*/ |
| 56 | |
| 57 | class patchWave |
| 58 | : |
| 59 | public cellDistFuncs |
| 60 | { |
| 61 | // Private Data |
| 62 | |
| 63 | //- Current patch subset (stored as patchIDs) |
| 64 | labelHashSet patchIDs_; |
| 65 | |
| 66 | //- Do accurate distance calculation for near-wall cells. |
| 67 | bool correctWalls_; |
| 68 | |
| 69 | //- Number of cells/faces unset after MeshWave has finished |
| 70 | label nUnset_; |
| 71 | |
| 72 | //- Distance at cell centres |
| 73 | scalarField distance_; |
| 74 | |
| 75 | //- Distance at patch faces |
| 76 | FieldField<Field, scalar> patchDistance_; |
| 77 | |
| 78 | |
| 79 | // Private Member Functions |
| 80 | |
| 81 | //- Set initial set of changed faces (= all faces of patches in |
| 82 | // patchIDs). Set changedFaces to labels of changed faces, |
| 83 | // changedInfo to face centres. |
| 84 | void setChangedFaces |
| 85 | ( |
| 86 | const labelHashSet& patchIDs, |
| 87 | labelList& changedFaces, |
| 88 | List<wallPoint>& changedInfo |
| 89 | ) const; |
| 90 | |
| 91 | //- Copy MeshWave cell values. Return number of illegal/unset |
| 92 | // cells. |
| 93 | label getValues(const MeshWave<wallPoint>&); |
| 94 | |
| 95 | |
| 96 | public: |
| 97 | |
| 98 | // Constructors |
| 99 | |
| 100 | //- Construct from mesh and patches to initialize to 0 and flag |
| 101 | // whether or not to correct wall. |
| 102 | // Calculate for all cells. correctWalls : correct wall (face&point) |
| 103 | // cells for correct distance, searching neighbours. |
| 104 | patchWave |
| 105 | ( |
| 106 | const polyMesh& mesh, |
| 107 | const labelHashSet& patchIDs, |
| 108 | bool correctWalls = true |
| 109 | ); |
| 110 | |
| 111 | //- Destructor |
| 112 | virtual ~patchWave(); |
| 113 | |
| 114 |
no outgoing calls
no test coverage detected