aboutsummaryrefslogtreecommitdiff
path: root/Examples/Physics_applications
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/Physics_applications')
-rw-r--r--Examples/Physics_applications/laser_acceleration/README.md1
-rw-r--r--Examples/Physics_applications/laser_acceleration/laser_acceleration_PICMI.py16
-rw-r--r--Examples/Physics_applications/plasma_acceleration/inputs.2d4
-rw-r--r--Examples/Physics_applications/plasma_acceleration/inputs.2d.boost2
-rw-r--r--Examples/Physics_applications/plasma_acceleration/inputs.3d.boost4
5 files changed, 13 insertions, 14 deletions
diff --git a/Examples/Physics_applications/laser_acceleration/README.md b/Examples/Physics_applications/laser_acceleration/README.md
index c556a1d9e..914eda74e 100644
--- a/Examples/Physics_applications/laser_acceleration/README.md
+++ b/Examples/Physics_applications/laser_acceleration/README.md
@@ -11,4 +11,3 @@ Examples are provided using the executable or Python-driven version of WarpX.
## Using the python-driven version:
- laser_acceleration_PICMI.py
- \ No newline at end of file
diff --git a/Examples/Physics_applications/laser_acceleration/laser_acceleration_PICMI.py b/Examples/Physics_applications/laser_acceleration/laser_acceleration_PICMI.py
index 4dca7151e..24d23310e 100644
--- a/Examples/Physics_applications/laser_acceleration/laser_acceleration_PICMI.py
+++ b/Examples/Physics_applications/laser_acceleration/laser_acceleration_PICMI.py
@@ -15,11 +15,11 @@ laser_duration = 15e-15 # Duration of the laser (in seconds)
laser_polarization = np.pi/2. # Polarization angle (in rad)
laser_injection_loc = 9.e-6 # Position of injection (in meters, along z)
laser_focal_distance = 100.e-6 # Focal distance from the injection (in meters)
-laser_t_peak = 30.e-15 # The time at which the laser reaches its peak
+laser_t_peak = 30.e-15 # The time at which the laser reaches its peak
# at the antenna injection location (in seconds)
# --- plasma
-plasma_density = 1.e24
+plasma_density = 1.e24
plasma_min = [-20.e-6, -20.e-6, 0.0e-6]
plasma_max = [ 20.e-6, 20.e-6, 1.e-3]
@@ -55,12 +55,12 @@ number_per_cell_each_dim = [2, 2, 1]
# --- laser
-laser = picmi.GaussianLaser(wavelength = laser_wavelength,
- waist = laser_waist,
- duration = laser_duration,
- focal_position = [0., 0., laser_focal_distance + laser_injection_loc],
- centroid_position = [0., 0., laser_injection_loc - picmi.c*laser_t_peak],
- polarization_angle = laser_polarization,
+laser = picmi.GaussianLaser(wavelength = laser_wavelength,
+ waist = laser_waist,
+ duration = laser_duration,
+ focal_position = [0., 0., laser_focal_distance + laser_injection_loc],
+ centroid_position = [0., 0., laser_injection_loc - picmi.c*laser_t_peak],
+ polarization_angle = laser_polarization,
propagation_direction = [0,0,1],
E0 = laser_a0*2.*np.pi*picmi.m_e*picmi.c**2/(picmi.q_e*laser_wavelength)) # Maximum amplitude of the laser field (in V/m)
diff --git a/Examples/Physics_applications/plasma_acceleration/inputs.2d b/Examples/Physics_applications/plasma_acceleration/inputs.2d
index 58f517308..fb67dd448 100644
--- a/Examples/Physics_applications/plasma_acceleration/inputs.2d
+++ b/Examples/Physics_applications/plasma_acceleration/inputs.2d
@@ -10,8 +10,8 @@ amr.plot_file = "plotfiles/plt"
amr.plot_int = 100
geometry.coord_sys = 0 # 0: Cartesian
geometry.is_periodic = 0 0 # Is periodic?
-geometry.prob_lo = -125.e-6 -149.e-6
-geometry.prob_hi = 125.e-6 1.e-6
+geometry.prob_lo = -125.e-6 -149.e-6
+geometry.prob_hi = 125.e-6 1.e-6
warpx.fine_tag_lo = -12.e-6 -110.e-6
warpx.fine_tag_hi = 12.e-6 -100.e-6
diff --git a/Examples/Physics_applications/plasma_acceleration/inputs.2d.boost b/Examples/Physics_applications/plasma_acceleration/inputs.2d.boost
index ba9166dee..d711815eb 100644
--- a/Examples/Physics_applications/plasma_acceleration/inputs.2d.boost
+++ b/Examples/Physics_applications/plasma_acceleration/inputs.2d.boost
@@ -10,7 +10,7 @@ amr.plot_file = "plotfiles/plt"
amr.plot_int = 500
geometry.coord_sys = 0 # 0: Cartesian
geometry.is_periodic = 0 0 # Is periodic?
-geometry.prob_lo = -125.e-6 -149.e-6
+geometry.prob_lo = -125.e-6 -149.e-6
geometry.prob_hi = 125.e-6 1.e-6
#################################
diff --git a/Examples/Physics_applications/plasma_acceleration/inputs.3d.boost b/Examples/Physics_applications/plasma_acceleration/inputs.3d.boost
index 1af4fac86..42446a9ac 100644
--- a/Examples/Physics_applications/plasma_acceleration/inputs.3d.boost
+++ b/Examples/Physics_applications/plasma_acceleration/inputs.3d.boost
@@ -10,8 +10,8 @@ amr.plot_file = "plotfiles/plt"
amr.plot_int = 50
geometry.coord_sys = 0 # 0: Cartesian
geometry.is_periodic = 1 1 0 # Is periodic?
-geometry.prob_lo = -0.00015 -0.00015 -0.00012
-geometry.prob_hi = 0.00015 0.00015 1.e-06
+geometry.prob_lo = -0.00015 -0.00015 -0.00012
+geometry.prob_hi = 0.00015 0.00015 1.e-06
#################################
############ NUMERICS ###########