diff options
author | 2020-01-09 17:43:26 +0100 | |
---|---|---|
committer | 2020-01-09 17:43:26 +0100 | |
commit | f0c3bec71de32a5dd7914da4236e2e2e6a19c5a4 (patch) | |
tree | 07ba27b139ff215260027016a2e5d3133bc0f4a7 /Examples/Modules/laser_injection_from_file/analysis.py | |
parent | fec60330cda231e4ceae6bda110fe7012c1dc298 (diff) | |
download | WarpX-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-x | Examples/Modules/laser_injection_from_file/analysis.py | 10 |
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 |