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

modify LaserPulse initialization to conform with a z-based philosophy #66

Open
bnash opened this issue Jun 22, 2023 · 2 comments
Open
Assignees
Labels
1 1st priority

Comments

@bnash
Copy link
Contributor

bnash commented Jun 22, 2023

In the Sirepo App, one can plot the total Intensity and Phase for a laser pulse. This only makes sense in the context of a wavefront sensor measurement where each wavefront has propagated to the same position and the resultant electric field added together.
Thus, one should first apply the wavefront sensor, implemented here

The wavefront sensor should be be tested, and the total phase and intensity computed from the result.

@bnash
Copy link
Contributor Author

bnash commented Jun 22, 2023

Total phase is calculated using
p = lp.extract_total_2d_phase()
which can be found here.

And total intensity is computed with
t = lp.extract_total_2d_elec_fields()
total_intensity=0.5 *const.c *const.epsilon_0 *(t.re**2.0 + t.im**2.0)
which is found here

(via P. Moeller)

@bruhwiler
Copy link
Member

Based on our conversation today, the main difference from what we're doing now will involve the laser pulse initialization.
Whether initializing from a WFS data file or from the paraxial equation, the LaserPulse constructor needs to be changed.

@bruhwiler bruhwiler changed the title Total Intensity and Total Phase should be the result of the wavefront sensor calculation modify LaserPulse initialization to conform with a z-based philosophy Jun 27, 2023
@bruhwiler bruhwiler added the 1 1st priority label Jul 10, 2023
@bruhwiler bruhwiler added 1 1st priority and removed 1 1st priority labels Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 1st priority
Projects
None yet
Development

No branches or pull requests

3 participants