Two independent grids with interpolation every X iterations, same domain, different grid size #500
Replies: 1 comment
-
If, as in your figure, the coarse grid is uniform and aligned with the PeleLMeX grid with an integer coarsening factor (ideally a power of 2, but any integer can probably work), this should be quite straightforward to achieve with the AMR machinery/data structures within AMReX.
If you want to be able to have an arbitrary coarse grid (unaligned, stretched, etc), you can probably still do this using AMReX data structures, but things might get a bit more complicated and you might have to write some custom functions. AMReX has a ton of capability for communicating data between grids in parallel simulations, but it can be complex to use and not always well documented, so continue the discussion here if is anything needs clarification. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to compute with two fixed grids (without AMR):
Grid 2 would only be used to interpolate its values on grid 1 every X iterations (for example a species source term added to the RHS of PeleLMeX's transport equations). I might also need to bring values from PeleLMeX (running on grid 1) to grid 2. The attached diagram illustrates the two grids for a square box with periodic conditions.
Do you think that this is easily achievable with the data structure that amrex provides? Do you have any suggestions for managing this? Maybe it's already been done somewhere in the suite of Pele codes and I can base my work on that?
Thank you very much for your inputs
Beta Was this translation helpful? Give feedback.
All reactions