Open SchroederSa opened 12 months ago
cc @dpgrote @RemiLehe
Thanks a lot @SchroederSa for reporting the issue! I have just rerun your script with the latest dev
branch and I do not observe discrepancy between x
and y
polarizations with RZ Yee solver. As @RemiLehe suggested this has been fixed by the following PR: https://github.com/ECP-WarpX/WarpX/pull/4464. Please see attached below the corresponding plots of a
and the waist:
@SchroederSa Could you confirm that this issues is resolved? If so, you can click the Close
button on this page.
Thank you, @oshapoval, for looking into it. Unfortunately, with WarpX version 24.01-16-g4ab88c5909ac (which I pulled after your comment 3 weeks ago), I still have the same issue. How do you extract a?
Hi @SchroederSa
I ran two simulations using dev branch with x
- and y
-polarized lasers. For example,
1)
laser.polarization = 1 0 0
diag1.file_prefix = pol_x/openPMD
2)
laser.polarization = 0 1 0
diag1.file_prefix = pol_y/openPMD
Then, I used .get_a0()
(or .get_laser_waist()
) with pol='x'
or pol=‘y’
to extract the data, respectively.
from openpmd_viewer.addons import LpaDiagnostics
ts_x = LpaDiagnostics(path + '/pol_x/openPMD/')
ts_y = LpaDiagnostics(path + '/pol_y/openPMD/')
a0_x = ts_x.iterate(ts_x.get_a0, pol='x')
a0_y = ts_y.iterate(ts_y.get_a0, pol='y')
When simulating the laser propagation in vacuum using the Yee solver in RZ geometry, I observe:
By using different a0 retrieval methods, I intended to rule out a diagnostic-related problem to the best of my knowledge.
Best Sarah
input script
VacuumSimulations-compressed.pdf