Conditions for a well-formed Octtree-ish mesh #3578
-
In his last response under #2140, @WeiqunZhang wrote:
(I assume the two-argument function So the statement of the requirement is
Is this the right condition, or is this sufficient but not necessary? I tend to think of this as a condition on
For comparison, in Flash-X we typically require both
where |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
As an added note, this question is of practical importance. I am trying to figure out whether in a given test configuration we (Flash-X team) have been violating some requirement. In the problematic configuration we have Results of the test simulation changed noticeably when |
Beta Was this translation helpful? Give feedback.
-
Sorry for the typo. |
Beta Was this translation helpful? Give feedback.
Sorry for the typo.$\ell$ /($\ell + 1$ ) boundary and $\ell$ /($\ell -1$ ) boundary has $\ell$ cells. If level $\ell +1$ has
ceil(nghost,ref_ratio)
should readceil(nghost/ref_ratio)
. Yes,>=
should be sufficient. So the correct condition should beblocking_factor >= (ceil(nghost/ref_ratio)+ninterp)*ref_ratio
. Ifnghost
is even andref_ratio
is 2, that becomesblocking_factor >= nghost + ninterp*2
. It can also be written asblocking_factor/2 > nghost/2 + ninterp
. The way to think about it can like this. If we look at cells on each level, it's either all cells in a block are refined or none, where the block size isblocking_factor
. So the smallest gap between levelblocking_factor/2
levelnghost