-
Notifications
You must be signed in to change notification settings - Fork 26
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
Laser phase measurement (wavefront-sensor) and non-Gaussian intensity distribution in the focal spot #153
Comments
Hi @alexanatoly, In a slightly different case: the Gerchberg-Saxton algorithm implemented in #139 reconstructs the intensity and phase profiles from measurement2 of intensity only, at 2 locations. I believe the main ingredients can be recycled from this PR. |
Hi @MaxThevenet , Thank you for your reply and sorry for my very late response. I was too much busy with semester-end examinations and then grade assignments. It was too hectic. Now, I can again focus on research. You understand my question correctly. I have phase-profile and intensity profile both at the same location. Also, the Gerchberg-Saxton algorithm implemented in #139 is quite attractive and useful. Can you suggest me how to use Gerchberg-Saxton algorithm with two intensity distribution images ? So that I can proceed testing/working with it. Thanks and best wishes. |
Hi @MaxThevenet , I used the example = https://github.com/LASY-org/lasy/blob/development/examples/example_modal_decomposition_data.py and got the following error C:\Users\Alex\anaconda3\lib\site-packages\lasy\utils\mode_decomposition.py:140: ComplexWarning: Casting complex values to real discards the imaginary part File "C:\Users\Alex\Desktop\MyWork\sim\Lasy\example_modal_decomposition_data.py", line 59, in File "C:\Users\Alex\anaconda3\lib\site-packages\lasy\profiles\profile.py", line 67, in rmul File "C:\Users\Alex\anaconda3\lib\site-packages\lasy\profiles\profile.py", line 128, in init AssertionError: The factor must be a number. how to fix the above error ? May be this example, although not Gerchberg-Saxton algorithm, but may help to understand how to use two intensity distribution images |
May be @rob-shalloo can help me to figure out what is wrong in the above attempt. I guess he wrote the above example. Hi @rob-shalloo sorry to bring you inside the discussion. If you will have some time (not urgent) please, could you help me to sort out the above error. Thanks. |
Hey @alexanatoly no problem, happy to help. Are you running the example exactly as it's provided or have you made any modifications? Also, to your earlier question. It is not fully correct to say a non-uniform spatial phase tells you how far from gaussian your spot is. The spatial phase can of course inform you about aberrations in your beam, but the spot intensity profile depends on both the amplitude and the phase. For example, a top hat beam focused with a parabola will have an intensity profile at focus which is not a gaussian, even in the case of perfectly flat spatial phase. |
Hi @rob-shalloo , thanks a lot for your kind reply and explanation. I am running the example as it is. I downloaded both examples: (1) example_gerchberg_saxton_algo.py and (this works without any problem) Once again, I downloaded the script file ("example_modal_decomposition_data.py") and run it. The error message was the same: Estimated w0 = 13.20 microns File "C:\Users\Alex\Desktop\MyWork\sim\Lasy\example_modal_decomposition_data.py", line 59, in File "C:\Users\Alex\anaconda3\lib\site-packages\lasy\profiles\profile.py", line 67, in rmul File "C:\Users\Alex\anaconda3\lib\site-packages\lasy\profiles\profile.py", line 128, in init AssertionError: The factor must be a number. Although the final goal is to learn how to implement real intensity and phase profile (measured in the experiment) in the simulation, but I would like to go gradually. Foremost, I would like to use / learn both the above examples script and get some idea about the procedure. Also, thanks for the great work of LASY. Thanks. |
Hi @rob-shalloo any update on why this example cannot be run ? (example_modal_decomposition_data.py) |
Hey @alexanatoly sorry for the delay! I've had a look into this and identified the issue. More details can be found in PR #206 As a workaround for you to get the code running, you simply need to add two Can you let me know if this works for you? |
Hi @rob-shalloo thank you for the fix. Now, the example file can be run without any issue. Thanks. |
Hi everyone,
It is great to know (from slack discussion) that LASY is soon going to be implemented for use in FBPIC. I am very excited about this additional powerful utility.
During the slack discussion with Remi, I mis-understood 'spectral phase' with the 'phase measured with the wave-front sensor'.
Non-uniform 'spectral-phase' tells that the laser pulse is not compressed to Fourier limit, however, it can not give any information about laser spot (please correct me if I am wrong). It is nicely available for use in the code (Paraxial_Approximation_Laser).
On the other hand, the non-uniform phase distribution, measured by wave-front sensor, tells how much the focal spot is deviated from Gaussian one (please correct me if I am wrong).
Do you think that we can load the phase distribution information measured by wave-front sensor in code and calculate the real intensity distribution in the laser spot. If this can be done, it will be extremely powerful and realistic.
Thank you and my best wishes to the entire team.
The text was updated successfully, but these errors were encountered: