-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into update_python_multifab_interface
- Loading branch information
Showing
15 changed files
with
235 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
Examples/Tests/laser_injection/inputs_test_1d_laser_injection_implicit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Maximum number of time steps | ||
max_step = 240 | ||
|
||
# number of grid points | ||
amr.n_cell = 352 | ||
|
||
# Maximum allowable size of each subdomain in the problem domain; | ||
# this is used to decompose the domain for parallel calculations. | ||
amr.max_grid_size = 32 | ||
|
||
# Maximum level in hierarchy (for now must be 0, i.e., one level in total) | ||
amr.max_level = 0 | ||
|
||
# Geometry | ||
geometry.dims = 1 | ||
geometry.prob_lo = -15.e-6 # physical domain | ||
geometry.prob_hi = 15.e-6 | ||
|
||
boundary.field_lo = pec | ||
boundary.field_hi = pec | ||
|
||
warpx.serialize_initial_conditions = 1 | ||
|
||
# Verbosity | ||
warpx.verbose = 1 | ||
|
||
# Algorithms | ||
algo.current_deposition = esirkepov | ||
warpx.use_filter = 0 | ||
|
||
# implicit evolve scheme | ||
algo.evolve_scheme = "semi_implicit_em" | ||
# | ||
implicit_evolve.nonlinear_solver = "newton" | ||
newton.verbose = true | ||
newton.max_iterations = 21 | ||
newton.relative_tolerance = 1.0e-8 | ||
newton.require_convergence = true | ||
# | ||
gmres.verbose_int = 2 | ||
gmres.max_iterations = 1000 | ||
gmres.relative_tolerance = 1.0e-4 | ||
|
||
# CFL | ||
warpx.cfl = 0.9 | ||
|
||
# Order of particle shape factors | ||
algo.particle_shape = 1 | ||
|
||
# Laser | ||
lasers.names = laser1 | ||
laser1.profile = Gaussian | ||
laser1.position = 0.e-6 0.e-6 0.e-6 # This point is on the laser plane | ||
laser1.direction = 0. 0. 1. # The plane normal direction | ||
laser1.polarization = 1. 1. 0. # The main polarization vector | ||
laser1.e_max = 4.e12 # Maximum amplitude of the laser field (in V/m) | ||
laser1.wavelength = 1.0e-6 # The wavelength of the laser (in meters) | ||
laser1.profile_waist = 5.e-6 # The waist of the laser (in meters) | ||
laser1.profile_duration = 10.e-15 # The duration of the laser (in seconds) | ||
laser1.profile_t_peak = 24.e-15 # The time at which the laser reaches its peak (in seconds) | ||
laser1.profile_focal_distance = 13.109e-6 # Focal distance from the antenna (in meters) | ||
# With this focal distance the laser is at focus | ||
# at the end of the simulation. | ||
|
||
# Diagnostics | ||
diagnostics.diags_names = diag1 openpmd | ||
diag1.intervals = 20 | ||
diag1.diag_type = Full | ||
|
||
openpmd.intervals = 20 | ||
openpmd.diag_type = Full | ||
openpmd.format = openpmd | ||
|
||
# Moving window | ||
warpx.do_moving_window = 1 | ||
warpx.moving_window_dir = z | ||
warpx.moving_window_v = 1.0 # in units of the speed of light | ||
warpx.start_moving_window_step = 20 | ||
warpx.end_moving_window_step = 200 |
75 changes: 75 additions & 0 deletions
75
Examples/Tests/laser_injection/inputs_test_2d_laser_injection_implicit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Maximum number of time steps | ||
max_step = 240 | ||
|
||
# number of grid points | ||
amr.n_cell = 480 352 | ||
|
||
# Maximum allowable size of each subdomain in the problem domain; | ||
# this is used to decompose the domain for parallel calculations. | ||
amr.max_grid_size = 32 | ||
|
||
# Maximum level in hierarchy (for now must be 0, i.e., one level in total) | ||
amr.max_level = 0 | ||
|
||
# Geometry | ||
geometry.dims = 2 | ||
geometry.prob_lo = -20.e-6 -15.e-6 # physical domain | ||
geometry.prob_hi = 20.e-6 15.e-6 | ||
|
||
boundary.field_lo = pec periodic | ||
boundary.field_hi = pec periodic | ||
|
||
warpx.serialize_initial_conditions = 1 | ||
|
||
# Verbosity | ||
warpx.verbose = 1 | ||
|
||
# Algorithms | ||
algo.current_deposition = esirkepov | ||
warpx.use_filter = 0 | ||
|
||
# implicit evolve scheme | ||
algo.evolve_scheme = "semi_implicit_em" | ||
# | ||
implicit_evolve.nonlinear_solver = "newton" | ||
newton.verbose = true | ||
newton.max_iterations = 21 | ||
newton.relative_tolerance = 1.0e-8 | ||
newton.require_convergence = true | ||
# | ||
gmres.verbose_int = 2 | ||
gmres.max_iterations = 1000 | ||
gmres.relative_tolerance = 1.0e-4 | ||
|
||
# CFL | ||
warpx.cfl = 1.0 | ||
|
||
# Order of particle shape factors | ||
algo.particle_shape = 1 | ||
|
||
# Laser | ||
lasers.names = laser1 | ||
laser1.profile = Gaussian | ||
laser1.position = 10.e-6 0.e-6 0.e-6 # This point is on the laser plane | ||
laser1.direction = 2. 0. 1. # The plane normal direction | ||
laser1.polarization = 1. 1. -2. # The main polarization vector | ||
laser1.e_max = 4.e12 # Maximum amplitude of the laser field (in V/m) | ||
laser1.wavelength = 1.0e-6 # The wavelength of the laser (in meters) | ||
laser1.profile_waist = 5.e-6 # The waist of the laser (in meters) | ||
laser1.profile_duration = 10.e-15 # The duration of the laser (in seconds) | ||
laser1.profile_t_peak = 24.e-15 # The time at which the laser reaches its peak (in seconds) | ||
laser1.profile_focal_distance = 13.109e-6 # Focal distance from the antenna (in meters) | ||
# With this focal distance the laser is at focus | ||
# at the end of the simulation. | ||
|
||
# Diagnostics | ||
diagnostics.diags_names = diag1 | ||
diag1.intervals = 240 | ||
diag1.diag_type = Full | ||
|
||
# Moving window | ||
warpx.do_moving_window = 1 | ||
warpx.moving_window_dir = x | ||
warpx.moving_window_v = 1.0 # in units of the speed of light | ||
warpx.start_moving_window_step = 20 | ||
warpx.end_moving_window_step = 200 |
13 changes: 13 additions & 0 deletions
13
Regression/Checksum/benchmarks_json/test_1d_laser_injection_implicit.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"lev=0": { | ||
"Bx": 374596.7817425552, | ||
"By": 374596.7817425552, | ||
"Bz": 0.0, | ||
"Ex": 111502789524279.0, | ||
"Ey": 111502789524279.0, | ||
"Ez": 0.0, | ||
"jx": 73098054407.2772, | ||
"jy": 73098054407.2772, | ||
"jz": 0.0 | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
Regression/Checksum/benchmarks_json/test_1d_semi_implicit_picard.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
Regression/Checksum/benchmarks_json/test_2d_laser_injection_implicit.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"lev=0": { | ||
"Bx": 19699314.38858362, | ||
"By": 101297372.8536657, | ||
"Bz": 39796093.072294116, | ||
"Ex": 1.3881256464656438e+16, | ||
"Ey": 1.322100107139857e+16, | ||
"Ez": 2.6833518029118908e+16, | ||
"jx": 3.669364941403736e+16, | ||
"jy": 3.669364586262695e+16, | ||
"jz": 7.338729883115621e+16 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.