Replies: 3 comments
-
|
Related question #4220 |
Beta Was this translation helpful? Give feedback.
-
|
Based on #4907 cell at i=j=k=1 can be "refined" as: amrex::Box domain2{IntVect{2, 2, 2}, IntVect{3, 3, 3}};and data transferred to it using |
Beta Was this translation helpful? Give feedback.
-
|
I know this doesn't answer your specific question directly, but I would highly recommend that you have a look at this repository https://github.com/AMReX-Codes/amrex-tutorials Regarding
This operation does not really refine a region. All you have done is define a new Refining typically involves identifying the specific cells to be refined (tagging), creating a new BoxArray that encompasses those cells, and allocating memory and creating a new MultiFab that maps to the refined region. This explanation provides a basic overview, although several steps have been omitted for brevity. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Given
how do I refine the cell at
i=j=k=1? AMR example of Basics.html doesn't mention any function(s) related to AMR.As I undestand it, after refinement I'd have two separate "grids" where one is the original above and the other is 2x2x2 cell grid with smaller cells.
Do I need to already have several Boxes and/or BoxArrays and/or Geometries and/or DistributionMappings and/or MultiFabs before refining or will I get new ones from refining function(s)?
https://amrex-codes.github.io/amrex/doxygen/namespaceamrex.html has 9 versions of refine function but I'm not sure which ones I should call nor in what order, or whether they're even what I'm after.
Beta Was this translation helpful? Give feedback.
All reactions