ECP-WarpX / impactx

high-performance modeling of beam dynamics in particle accelerators with collective effects
https://impactx.readthedocs.io
Other
28 stars 20 forks source link

Add error message for overlapping elliptical apertures #757

Closed cemitch99 closed 1 week ago

cemitch99 commented 2 weeks ago

The case of a periodic array of elliptical apertures yields incorrect results when the apertures overlap, which occurs when xmax >= repeat_x/2 or ymax >= repeat_y/2. This case is also unphysical, since the solid material of the aperture plane is not topologically connected in this case.

Check for this condition, and add an error message.

The case of overlapping rectangular apertures simply yields full transmission, and no error message is required.

Pointed out by SchroederSa.

cemitch99 commented 2 weeks ago

EllipticalAperture_Overlapping