| 59 | \*---------------------------------------------------------------------------*/ |
| 60 | |
| 61 | class meshToMesh |
| 62 | { |
| 63 | public: |
| 64 | |
| 65 | // Public data types |
| 66 | |
| 67 | //- Enumeration specifying interpolation method |
| 68 | enum interpolationMethod |
| 69 | { |
| 70 | imDirect, |
| 71 | imMapNearest, |
| 72 | imCellVolumeWeight |
| 73 | }; |
| 74 | |
| 75 | static const NamedEnum<interpolationMethod, 3> |
| 76 | interpolationMethodNames_; |
| 77 | |
| 78 | private: |
| 79 | |
| 80 | // Private data |
| 81 | |
| 82 | //- Reference to the source mesh |
| 83 | const polyMesh& srcRegion_; |
| 84 | |
| 85 | //- Reference to the target mesh |
| 86 | const polyMesh& tgtRegion_; |
| 87 | |
| 88 | //- List of target patch IDs per source patch (local index) |
| 89 | List<label> srcPatchID_; |
| 90 | |
| 91 | //- List of source patch IDs per target patch (local index) |
| 92 | List<label> tgtPatchID_; |
| 93 | |
| 94 | //- List of AMIs between source and target patches |
| 95 | PtrList<AMIPatchToPatchInterpolation> patchAMIs_; |
| 96 | |
| 97 | //- Cutting patches whose values are set using a zero-gradient condition |
| 98 | List<label> cuttingPatches_; |
| 99 | |
| 100 | //- Source to target cell addressing |
| 101 | labelListList srcToTgtCellAddr_; |
| 102 | |
| 103 | //- Target to source cell addressing |
| 104 | labelListList tgtToSrcCellAddr_; |
| 105 | |
| 106 | //- Source to target cell interplation weights |
| 107 | scalarListList srcToTgtCellWght_; |
| 108 | |
| 109 | //- Target to source cell interpolation weights |
| 110 | scalarListList tgtToSrcCellWght_; |
| 111 | |
| 112 | //- Cell total volume in overlap region [m3] |
| 113 | scalar V_; |
| 114 | |
| 115 | //- Index of processor that holds all of both sides. -1 in all other |
| 116 | // cases |
| 117 | label singleMeshProc_; |
| 118 |
no outgoing calls
no test coverage detected