aboutsummaryrefslogtreecommitdiff
path: root/Tools/compute_domain.py
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-26 13:33:03 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-26 13:33:03 -0700
commit619f6e12c6dc782b7465465525dca80eded1cb72 (patch)
tree9b2ca96baab9f5fa7d01b6fc7b377039c9c67f2f /Tools/compute_domain.py
parent4aae9b3616e14e0a2072a9ff3bb6b1e5314958ed (diff)
downloadWarpX-619f6e12c6dc782b7465465525dca80eded1cb72.tar.gz
WarpX-619f6e12c6dc782b7465465525dca80eded1cb72.tar.zst
WarpX-619f6e12c6dc782b7465465525dca80eded1cb72.zip
add script to compute domain size and #cells
Diffstat (limited to 'Tools/compute_domain.py')
-rw-r--r--Tools/compute_domain.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/Tools/compute_domain.py b/Tools/compute_domain.py
index a1ba21979..822d776e8 100644
--- a/Tools/compute_domain.py
+++ b/Tools/compute_domain.py
@@ -3,6 +3,24 @@ import numpy as np
import scipy.constants as scc
import time, copy
+'''
+This Python script helps a user to parallelize a WarpX simulation.
+
+The user specifies the minimal size of the physical domain and the resolution
+in each dimension, and the scripts computes:
+- the number of cells and physical domain to satify the user-specified domain
+ size and resolution AND make sure that the number of cells along each
+ direction is a multiple of max_grid_size.
+- a starting point on how to parallelize on Cori KNL (number of nodes, etc.).
+
+When running in a boosted frame, the script also has the option to
+automatically compute the number of cells in z to satisfy dx>dz in the boosted
+frame.
+
+Note that the script has no notion of blocking_factor. It is assumed that
+blocking_factor = max_grid_size, and that all boxes have the same size.
+'''
+
# Update the lines below for your simulation
# ------------------------------------------
# 2 elements for 2D, 3 elements for 3D