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

Analyzing lasy generated file #291

Open
koesterf opened this issue Aug 30, 2024 · 1 comment
Open

Analyzing lasy generated file #291

koesterf opened this issue Aug 30, 2024 · 1 comment

Comments

@koesterf
Copy link

koesterf commented Aug 30, 2024

Hi,

I want to analyze the complicated laser envelope I am trying to prepare with the help of Lasy. It might be helpful to make sure that all is well.

To do so, I am trying to visualize the hdf5 file generated with lasy ('lasy_laser_00000.h5') as follows:

from openpmd_viewer import OpenPMDTimeSeries
from openpmd_viewer.addons import LpaDiagnostics
import numpy as np
import matplotlib.pyplot as plt

TS = OpenPMDTimeSeries('lasy_laser_00000.h5')
TS_2d = LpaDiagnostics('lasy_laser_00000.h5')

Env = TS.get_field(field='laserEnvelope', iteration=0, plot=True, cmap='Blues_r')

Could you let me know what other variables I can plot and check.
I am particularly interested to see how the spectrum of the laser pulse looks like (as done in FBPIC)

Thanks.
Frank

@koesterf
Copy link
Author

koesterf commented Sep 2, 2024

It would be extremely helpful for the user if laser pulse parameters can be checked after constructing it with lasy.

For instance,

1). Laser strength parameter (a0), 
2). pulse duration, 
3). waist or FWHM of transverse size, 
4). 1-D electric field and time or spatial coordinate, so that further analysis can be made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant