jsitaraman / tioga

Tioga is a library for overset grid assembly on parallel distributed systems
GNU Lesser General Public License v3.0
64 stars 36 forks source link

Create iblank array for nodal variables on Cartesian mesh #29

Closed ashesh2512 closed 4 years ago

ashesh2512 commented 4 years ago

Based on iblank_cell this pull request creates an iblank array for nodes. The logic is as follows - If all cells shared by node are field, the node is marked field. If any cell shared by the node is hole, the node is marked hole. Everything else is marked fringe. The interface is changed to accept node iblanks when registering every patch.

I have also fixed a bug in the computation of nnode (not used anywhere currently) as part of this pull request.

Edit: Following the discussion in https://github.com/jsitaraman/tioga/pull/29#discussion_r435960201 I have updated the pull request (687d927) to evaluate the node iblank based on the donorList. Certain variables have been renamed for more clarity.

Below is the iblank_cell and and corresponding iblank (averaged to cells using AMReX) for a multi-patch problem

Screen Shot 2020-06-05 at 12 18 02 AM Screen Shot 2020-06-05 at 12 18 13 AM