AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
553 stars 352 forks source link

quadtree and octree structure #4203

Open Maccchiatooo opened 3 weeks ago

Maccchiatooo commented 3 weeks ago

I am trying to use quadtree and octree geometry. 'geometry' means Level is in a hierarchy. Level 3 can only be contiguous to Level 2 and Level 4 but not Level 1. Can I do that by using AMREX?

I learned from other issues that AMREX is not a tree structure. That is fine for me, I am only concerned about the physical geometry contiguous level but not the code structure.

Thanks.

WeiqunZhang commented 3 weeks ago

I think you are talking about what we call properly nested grids. Yes, it's guaranteed. See https://amrex-codes.github.io/amrex/docs_html/RuntimeParameters.html?highlight=nesting#amr.n_proper Unless you change that parameter to zero, or your stencil needs lots of ghost cells, you should be fine.