Hi-PACE / hipace

Highly efficient Plasma Accelerator Emulation, quasistatic particle-in-cell code
https://hipace.readthedocs.io
Other
51 stars 14 forks source link

Separate grid for Laser #1106

Closed AlexanderSinn closed 3 months ago

AlexanderSinn commented 4 months ago

In this PR, the grid of the laser is decoupled from the field's grid. To facilitate this, this PR...

Test of getting chi outside the field: Chi on the laser grid (changed diagnostic) with a slightly wrong box to transition between chi inside and outside the fields grid. image Chi on the laser grid with the correct box image Chi on the fields grid image

AlexanderSinn commented 3 months ago

This would be non-backwards compatible only because of the changes to diagnostic.base_geometry. The laser should work the same if the laser box is the same as level 0 (which is the default).