-
Notifications
You must be signed in to change notification settings - Fork 24
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
How to use Lasy #209
Comments
Thanks for your question. In addition to the examples that you mentioned, we also have a tutorial on how to create a simple In order to initialize a laser from spectral/temporal profile as well as best focal spot, you would replace the GaussianProfile in the above tutorial by a CombinedLongitudinalTransverseProfile, with a LongitudinalProfileFromData and TransverseProfileFromData. Finally, here is a test that shows the syntax for using a Feel free to let us know if you have questions on the above! |
Hi @RemiLehe, thanks for the clear and precise explanation. It's quite helpful. I will go through as per your suggestions. I hope it will work. If there are any questions, I will ask again to get more help. Best regards, |
Hi @RemiLehe, we encountered an error message when trying the simple Lasy file (Gaussian laser pulse): https://lasydoc.readthedocs.io/en/latest/tutorials/gaussian_laser.html Error: 'Laser' object has no attribute 'show' |
Hi @RemiLehe, another issue is with writing to openpmd format. The error message is the following: Traceback (most recent call last): |
Hi @RemiLehe, writing to openpmd format error disappear when I work on another PC. Now, I can save the file with the command laser.write_to_file(file_prefix, file_format). But "laser.show()" still not working. ( Error: 'Laser' object has no attribute 'show' ). I am closing this issue assuming that you will look later on why laser.show() is throwing an error. I have some minor questions on organizing file for laser laser longitudinal profile, but may be I will ask it in an another thread. |
Thanks again for raising this issue @laxmisubramanyam
This should download version 0.4.0 of |
@laxmisubramanyam thank you for the note!
That might be a bug on our side. Can you help me diagnose it further?
My current guess is that on the system that had the issue, the openPMD-api version might be slightly old and needs an update: openPMD/openPMD-api#1305 python3 -m pip install --upgrade openpmd-api |
Hi @RemiLehe and @ax3l thanks for looking into the issue. Now, laser.show() is working. Below are answers to the questions raised by @ax3l
|
Hi friends, I heard about Lasy from some researchers in a meeting. I am interested in understanding how Lasy can be used to incorporate real laser profile (measured experimentally) into the simulation. For example, in FBPIC code, which we use for simulating LWFA.
We check the two example files given in (https://github.com/LASY-org/lasy/tree/development/examples) but these are not self explanatory. Is there any documentation where the example files are explained ?
More precisely the question is, from experiment one can have spectral and temporal profile of the laser pulse and best focus spot. How these informations can be used in Lasy to make a numerical laser profile, and how this laser profile can be migrated to FBPIC.
Best regards,
Laxmi
The text was updated successfully, but these errors were encountered: