aboutsummaryrefslogtreecommitdiff
path: root/Examples/Modules/laser_injection_from_file/analysis.py
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2020-01-09 17:43:26 +0100
committerGravatar Luca Fedeli <luca.fedeli@cea.fr> 2020-01-09 17:43:26 +0100
commitf0c3bec71de32a5dd7914da4236e2e2e6a19c5a4 (patch)
tree07ba27b139ff215260027016a2e5d3133bc0f4a7 /Examples/Modules/laser_injection_from_file/analysis.py
parentfec60330cda231e4ceae6bda110fe7012c1dc298 (diff)
downloadWarpX-f0c3bec71de32a5dd7914da4236e2e2e6a19c5a4.tar.gz
WarpX-f0c3bec71de32a5dd7914da4236e2e2e6a19c5a4.tar.zst
WarpX-f0c3bec71de32a5dd7914da4236e2e2e6a19c5a4.zip
Added comment suggested by MaxThevenet
Diffstat (limited to 'Examples/Modules/laser_injection_from_file/analysis.py')
-rwxr-xr-xExamples/Modules/laser_injection_from_file/analysis.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/Examples/Modules/laser_injection_from_file/analysis.py b/Examples/Modules/laser_injection_from_file/analysis.py
index 257455132..c677014c3 100755
--- a/Examples/Modules/laser_injection_from_file/analysis.py
+++ b/Examples/Modules/laser_injection_from_file/analysis.py
@@ -1,7 +1,13 @@
#!/usr/bin/python3
-#ADD COMMENT
-#ADD COMMENT
+# This file is part of the WarpX automated test suite. It is used to test the
+# injection of a laser pulse from an external binary file.
+#
+# - Generate an input binary file with a gaussian laser pulse.
+# - Run the WarpX simulation for time T, when the pulse is fully injected
+# - Compute the theory for laser envelope at time T
+# - Compare theory and simulation, for both envelope and central frequency
+
import yt ; yt.funcs.mylog.setLevel(50)
import numpy as np
import matplotlib.pyplot as plt