Skip to content

Commit

Permalink
Update Examples/Tests/gaussian_beam/analysis_focusing_beam.py
Browse files Browse the repository at this point in the history
Co-authored-by: Remi Lehe <[email protected]>
  • Loading branch information
aeriforme and RemiLehe authored Feb 16, 2024
1 parent 0a7f626 commit 22de5b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Examples/Tests/gaussian_beam/analysis_focusing_beam.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def s(z, sigma0, emit):
sx.append(np.sqrt(np.average((x[i]-mux)**2, weights=w[i])))
sy.append(np.sqrt(np.average((y[i]-muy)**2, weights=w[i])))

# Theoretical prediction for the size of the beam in each z slice
sx_theory = s(subgrid, sigmax, emitx/gamma)
sy_theory = s(subgrid, sigmay, emity/gamma)

Expand Down

0 comments on commit 22de5b0

Please sign in to comment.