Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accurate read RZ representation from openPMD file to LASY #310

Open
MaxThevenet opened this issue Oct 21, 2024 · 0 comments
Open

Accurate read RZ representation from openPMD file to LASY #310

MaxThevenet opened this issue Oct 21, 2024 · 0 comments
Labels
cleaning Code cleaning

Comments

@MaxThevenet
Copy link
Contributor

MaxThevenet commented Oct 21, 2024

This class

class FromOpenPMDProfile(FromArrayProfile):

can read from an openPMD file. Nevertheless, when using LASY in RT mode the data is assumed axisymmetric although LASY can in principle handle azimuthal mode decomposition. Rather than taking a cut at a given $\theta$, as currently done, I think the correct conversion between the modes of the full electric field in an openPMD file (as written by FBPIC for instance) and those used for the envelope in LASY is
Screenshot 2024-10-21 at 15 20 08
where $p_x=1$ for linear polarization in $x$, $\mathcal{E}^m$ is mode $m$ in LASY and $E_{r/\theta}^m$ is mode $m$ in FBPIC for $E_{r/\theta}$. Here, $i$ is the imaginary number. This should be implemented in the class mentioned above.

Additionally, reading all modes from the openPMD data should be done with openPMD-api instead of openPMD-viewer, so the dependency on openPMD-viewer can be dropped entirely. The operations should be symmetric to what is done in

def write_to_openpmd_file(

@MaxThevenet MaxThevenet added the cleaning Code cleaning label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleaning Code cleaning
Projects
None yet
Development

No branches or pull requests

1 participant