From 22de5b0e1ffa2e9ebd9fbd7df0c60d9092504669 Mon Sep 17 00:00:00 2001 From: Arianna Formenti Date: Fri, 16 Feb 2024 14:35:09 -0800 Subject: [PATCH] Update Examples/Tests/gaussian_beam/analysis_focusing_beam.py Co-authored-by: Remi Lehe --- Examples/Tests/gaussian_beam/analysis_focusing_beam.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Examples/Tests/gaussian_beam/analysis_focusing_beam.py b/Examples/Tests/gaussian_beam/analysis_focusing_beam.py index c97c9d42658..e570e84e5fc 100755 --- a/Examples/Tests/gaussian_beam/analysis_focusing_beam.py +++ b/Examples/Tests/gaussian_beam/analysis_focusing_beam.py @@ -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)