aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/PEC/analysis_pec_mr.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/Tests/PEC/analysis_pec_mr.py')
-rwxr-xr-xExamples/Tests/PEC/analysis_pec_mr.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/Examples/Tests/PEC/analysis_pec_mr.py b/Examples/Tests/PEC/analysis_pec_mr.py
index 9d7d6656e..1f9e5276c 100755
--- a/Examples/Tests/PEC/analysis_pec_mr.py
+++ b/Examples/Tests/PEC/analysis_pec_mr.py
@@ -5,22 +5,26 @@
# This file is part of WarpX.
#
# License: BSD-3-Clause-LBNL
-
-
+#
# This is a script that analyses the simulation results from
# the script `inputs_field_PEC_mr_3d`. This simulates a sinusoindal wave.
# The electric field (Ey) is a standing wave due to the PEC boundary condition,
# and as a result, the minimum and maximum value after reflection would be two times the value at initialization due to constructive interference.
# Additionally, the value of Ey at the boundary must be equal to zero.
-import sys
+import os
import re
+import sys
+
import matplotlib
+
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import yt
+
yt.funcs.mylog.setLevel(50)
+
import numpy as np
-import os
+
sys.path.insert(1, '../../../../warpx/Regression/Checksum/')
import checksumAPI