More information about UxDaatset get_dual() #1343
-
I wonder how It would be helpful to add more information to there. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Pinging @aaronzedwick (and @rajeeja ) since he developed the code. I don't believe any interpolation is currently being done. Data that is stored on nodes ends up shading the faces of the dual grid, and vice-versa. |
Beta Was this translation helpful? Give feedback.
-
Maybe there is no any interpolation done in here and just constructing new elements (with node coordinates) on each nodes and directly assign the values since number of nodes in the original data file is same with number of elements when this function is applied. |
Beta Was this translation helpful? Give feedback.
Yes, this is correct. The way the dual works is the nodes become the face centers and vice versa. Any data on the nodes in the primal grid will be automatically on the face centers of the dual.
The way it works: to make the dual we connect all the face centers together, creating a new grid where the face centers are now nodes and the nodes are now face centers.