diff options
author | 2020-01-09 17:17:02 +0100 | |
---|---|---|
committer | 2020-01-09 17:17:02 +0100 | |
commit | a92c4e7625af66f042cdb5c6b52927b629188713 (patch) | |
tree | e5f9e6c7a4d59a55d4126357b3cdda1acbdded26 /Examples/Tests/laser_injection_from_file/analysis.py | |
parent | 42f1237eb5a2beb7d7d7c8133029a126d1c02356 (diff) | |
parent | 95bf72520c3a78d93f22965fe4848f7cd443ed4c (diff) | |
download | WarpX-a92c4e7625af66f042cdb5c6b52927b629188713.tar.gz WarpX-a92c4e7625af66f042cdb5c6b52927b629188713.tar.zst WarpX-a92c4e7625af66f042cdb5c6b52927b629188713.zip |
Merge branch 'add_harmonic_beam' of github.com:lucafedeli88/WarpX into add_harmonic_beam
Diffstat (limited to 'Examples/Tests/laser_injection_from_file/analysis.py')
-rwxr-xr-x | Examples/Tests/laser_injection_from_file/analysis.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Examples/Tests/laser_injection_from_file/analysis.py b/Examples/Tests/laser_injection_from_file/analysis.py index 4a61a6df0..813e4e54b 100755 --- a/Examples/Tests/laser_injection_from_file/analysis.py +++ b/Examples/Tests/laser_injection_from_file/analysis.py @@ -5,10 +5,8 @@ #ADD COMMENT import yt ; yt.funcs.mylog.setLevel(50) import numpy as np -import scipy.constants as scc import matplotlib.pyplot as plt from scipy.signal import hilbert -import sys import glob import os @@ -65,7 +63,6 @@ def gauss_env(T,XX,ZZ): X = np.cos(rot_angle)*XX + np.sin(rot_angle)*ZZ Z = -np.sin(rot_angle)*XX + np.cos(rot_angle)*ZZ - k0 = 2.0*np.pi/wavelength inv_tau2 = 1./tt/tt inv_w_2 = 1.0/(w0*w0) exp_arg = - (X*X)*inv_w_2 - inv_tau2 / c/c * (Z-T*c)*(Z-T*c) |