regrid2.esmf:EsmfUnstructGrid

EsmfUnstructGrid.setCells(cellIndices, cellTypes, connectivity, cellMask=None, cellAreas=None)[source]

Set Cell connectivity.

Parameters
cellIndicesany 0-based.

cellTypes : any one of ESMF_MESHELEMTYPE_{TRI,QUAD,TETRA,HEX}.

connectivityNode : any connectivity array, see below for node ordering.

cellMask : any cellAreas area (volume) of each cell.

Notes

             3                       4-------------3
             /\                      |             |
            /  \                     |             |
           /    \                    |             |
          /      \                   |             |
         /        \                  |             |
        /          \                 |             |
       1------------2                1-------------2

          3                               8---------------7
         /|\                             /|              /|
        / | \                           / |             / |
       /  |  \                         /  |            /  |
      /   |   \                       /   |           /   |
     /    |    \                     5---------------6    |
    4-----|-----2                    |    |          |    |
     \    |    /                     |    4----------|----3
      \   |   /                      |   /           |   /
       \  |  /                       |  /            |  /
        \ | /                        | /             | /
         \|/                         |/              |/
          1                          1---------------2

ESMF_MESHELEMTYPE_TETRA             ESMF.MESHELEMTYPE_HEX