How to get the physical coordinates in the tile-box? #2952
Replies: 2 comments 1 reply
-
The information needed to map between index-space and physical space coordinates, including the cell spacing and global domain offset, is stored in the |
Beta Was this translation helpful? Give feedback.
-
Hi Myers, Thank you for you nice advice! I am not familiar with AMRex, I do not know if I understand the code you point out For example in Fortran codes, I get a tilebox named tbx and it is located in the level named lev First, I announce geom :type(amrex_geometry) :: geomthen get the specific geom for tbxgm = GetInstance().Geom(lev)Finally, I can get the cell spacing and physical lower bounds of tbxdx=gm.CellSize()
|
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I want to use the physical coordinates in the tile-box (mfi%tilebox) to participate the calculation.
However, I don't know how to get the physical coordinates in the tile-box and even the grid-space of the tile-box (dx, dy, dz).
I will be appreciate if someone can give me some help!
Best wishes,
He Yifeng
Beta Was this translation helpful? Give feedback.
All reactions