EB Cell center vs Cell Centroid and Face Center vs Face Centroid #3720
-
Dear AMReX team, What is the difference between EB cell center and cell centroid ? For example, Any answers would be much appreciated! Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Centroid is the integral of coordinate over the non-covered region. If a cell is from -0.5 to 0.5, and the left half of the cell is covered, the centroid is at 0.25. Center is just the center as if there is no EB. Or it can be defined as the integral of coordinate over the whole cell including both covered and non-covered. Since the cells we have are rectangular, the integral is of course trivial. |
Beta Was this translation helpful? Give feedback.
Centroid is the integral of coordinate over the non-covered region. If a cell is from -0.5 to 0.5, and the left half of the cell is covered, the centroid is at 0.25.
Center is just the center as if there is no EB. Or it can be defined as the integral of coordinate over the whole cell including both covered and non-covered. Since the cells we have are rectangular, the integral is of course trivial.