Closed prkkumar closed 2 years ago
Thank you for reporting this issue, Prabhat. In the past we observed asymmetries when some of the subdomains have odd numbers of cells (odd as opposed to even). Would you be able to double check if that is the case here, by looking at the grids summary in the standard output of the simulation?
I used even number of grids by specifying
amr.blocking_factor = 64
amr.max_grid_size = 64
in the input file. Grid summary from the output file reads:
Grids Summary:
Level 0 188 grids 49283072 cells 100 % of domain
smallest grid: 64 x 64 x 64 biggest grid: 64 x 64 x 64
Update : Using only one box in the transverse direction by specifying
amr.blocking_factor = 128
amr.max_grid_size = 128
I do not see the asymmetry:
Ok, thank you. It would be interesting to see if we are using too few guard cells transversally. I can try to use the Python script in Tools/DevUtils/Stencil.py to get a rough estimate quickly. Could you write down for me the values of dx
, dy
, dz
, and dt
?
dt = 2.605969494e-15 ; dx = 7.8125e-07 ; dy = 7.8125e-07 ; dz = 2.948399295e-06
Ok, thank you. One thing you could try is using 20 guard cells in x and y, instead of 12. This is one estimate I'm getting from the script. The asymmetry issue seems quite significant, so I'm not sure if this will make any difference, but maybe it is worth trying. This will work only provided that each subdomain is larger than 20 cells in x and y, otherwise the code will abort saying that the number of guard cells exceeds the number of valid cells.
I tried 20 guard cells instead of 12 and the results are perfectly symmetric - identical to the image I posted using single box in x. Thank you so much! I will familiarize myself with Python script in Tools/DevUtils/Stencil.py and use that to specify number of guard cells when using PSATD solver. This issue may be closed.
LWFA simulation with PSATD solver produces asymmetry. The following input script results in