|
| 1 | +# stop_time = 1.12966840205e-10 |
| 2 | +amrex.v=1 |
| 3 | +max_step = 2500 |
| 4 | +amr.n_cell = 64 256 |
| 5 | + |
| 6 | +amr.max_grid_size = 4096 |
| 7 | +amr.blocking_factor = 16 |
| 8 | + |
| 9 | +# Maximum level in hierarchy (for now must be 0, i.e., one level in total) |
| 10 | +amr.max_level = 1 |
| 11 | +amr.plot_file = "plotfiles/plt" |
| 12 | +amr.plot_int = 200 |
| 13 | + |
| 14 | +warpx.fine_tag_lo = -2.e-6 -15.e-6 |
| 15 | +warpx.fine_tag_hi = 2.e-6 -7.e-6 |
| 16 | + |
| 17 | + |
| 18 | +# Geometry |
| 19 | +geometry.coord_sys = 0 # 0: Cartesian |
| 20 | +geometry.is_periodic = 0 0 # Is periodic? |
| 21 | +geometry.prob_lo = -30.e-6 -20.e-6 # physical domain |
| 22 | +geometry.prob_hi = 30.e-6 0.e-6 |
| 23 | + |
| 24 | +# Verbosity |
| 25 | +warpx.verbose = 1 |
| 26 | +warpx.plot_raw_fields = 1 |
| 27 | +warpx.do_dive_cleaning = 0 |
| 28 | +warpx.use_filter = 1 |
| 29 | +warpx.do_pml = 1 |
| 30 | +warpx.do_subcycling = 0 |
| 31 | +warpx.refine_plasma = 0 |
| 32 | +warpx.plot_raw_fields = 1 |
| 33 | +warpx.plot_raw_fields_guards = 1 |
| 34 | +warpx.plot_finepatch = 1 |
| 35 | +warpx.plot_crsepatch = 1 |
| 36 | +warpx.n_current_deposition_buffer = 0 |
| 37 | +warpx.n_field_gather_buffer = 0 |
| 38 | + |
| 39 | +# Algorithms |
| 40 | +algo.current_deposition = 0 |
| 41 | +algo.charge_deposition = 0 |
| 42 | +algo.field_gathering = 0 |
| 43 | +algo.particle_pusher = 0 |
| 44 | +algo.maxwell_fdtd_solver = "ckc" |
| 45 | + |
| 46 | +# CFL |
| 47 | +warpx.cfl = .9999 |
| 48 | +particles.nspecies = 4 |
| 49 | +particles.species_names = driver beam plasma_e plasma_p |
| 50 | + |
| 51 | +# interpolation |
| 52 | +interpolation.nox = 3 |
| 53 | +interpolation.noy = 3 |
| 54 | +interpolation.noz = 3 |
| 55 | + |
| 56 | +# |
| 57 | +# The driver species information |
| 58 | +# |
| 59 | + |
| 60 | +driver.charge = -q_e |
| 61 | +driver.mass = m_e |
| 62 | +driver.injection_style = "gaussian_beam" |
| 63 | +driver.x_rms = 3.e-6 |
| 64 | +driver.y_rms = 3.e-6 |
| 65 | +driver.z_rms = .2e-6 |
| 66 | +driver.x_m = 0. |
| 67 | +driver.y_m = 0. |
| 68 | +driver.z_m = -3.e-6 |
| 69 | +driver.npart = 10000 |
| 70 | +driver.q_tot = -1.e-10 |
| 71 | +driver.profile = "constant" |
| 72 | +driver.density = 5.e24 # number of particles per m^3 |
| 73 | +driver.momentum_distribution_type = "gaussian" |
| 74 | +driver.ux_m = 0.0 |
| 75 | +driver.uy_m = 0.0 |
| 76 | +driver.uz_m = 1e6 |
| 77 | +driver.uz_th = 0. |
| 78 | +#driver.ux_th = 2. |
| 79 | +#driver.uy_th = 2. |
| 80 | +#driver.uz_th = 20000. |
| 81 | +driver.zinject_plane = 0. |
| 82 | +driver.rigid_advance = true |
| 83 | +driver.projected = true |
| 84 | +driver.focused = false |
| 85 | + |
| 86 | +# |
| 87 | +# The beam species information |
| 88 | +# |
| 89 | + |
| 90 | +beam.charge = -q_e |
| 91 | +beam.mass = m_e |
| 92 | +beam.injection_style = "gaussian_beam" |
| 93 | +beam.x_rms = .1e-6 |
| 94 | +beam.y_rms = .1e-6 |
| 95 | +beam.z_rms = .2e-6 |
| 96 | +beam.x_m = 0. |
| 97 | +beam.y_m = 0. |
| 98 | +beam.z_m = -11.e-6 |
| 99 | +beam.npart = 10000 |
| 100 | +beam.q_tot = -1.e-12 |
| 101 | +beam.profile = "constant" |
| 102 | +beam.density = 1.e24 |
| 103 | +beam.momentum_distribution_type = "gaussian" |
| 104 | +beam.ux_m = 0.0 |
| 105 | +beam.uy_m = 0.0 |
| 106 | +beam.uz_m = 20. |
| 107 | +beam.u_th = 0. |
| 108 | + |
| 109 | +# |
| 110 | +# The plasma species information |
| 111 | +# |
| 112 | + |
| 113 | +plasma_e.charge = -q_e |
| 114 | +plasma_e.mass = m_e |
| 115 | +plasma_e.injection_style = "NUniformPerCell" |
| 116 | +plasma_e.xmin = -15.e-6 |
| 117 | +plasma_e.xmax = 15.e-6 |
| 118 | +plasma_e.ymin = -15.e-6 |
| 119 | +plasma_e.ymax = 15.e-6 |
| 120 | +plasma_e.zmin = 0.e-6 |
| 121 | +plasma_e.profile = "constant" |
| 122 | +plasma_e.density = 1.e25 |
| 123 | +plasma_e.num_particles_per_cell_each_dim = 2 2 |
| 124 | +plasma_e.momentum_distribution_type = "constant" |
| 125 | +plasma_e.ux = 0.0 |
| 126 | +plasma_e.uy = 0.0 |
| 127 | +plasma_e.uz = 0.0 |
| 128 | + |
| 129 | + |
| 130 | +plasma_p.charge = q_e |
| 131 | +plasma_p.mass = m_p |
| 132 | +plasma_p.injection_style = "NUniformPerCell" |
| 133 | +plasma_p.xmin = -15.e-6 |
| 134 | +plasma_p.xmax = 15.e-6 |
| 135 | +plasma_p.ymin = -15.e-6 |
| 136 | +plasma_p.ymax = 15.e-6 |
| 137 | +plasma_p.zmin = 0.e-6 |
| 138 | +plasma_p.profile = "constant" |
| 139 | +plasma_p.density = 1.e25 |
| 140 | +plasma_p.num_particles_per_cell_each_dim = 2 2 |
| 141 | +plasma_p.momentum_distribution_type = "constant" |
| 142 | +plasma_p.ux = 0.0 |
| 143 | +plasma_p.uy = 0.0 |
| 144 | +plasma_p.uz = 0.0 |
| 145 | + |
| 146 | +# Moving window |
| 147 | +warpx.do_moving_window = 1 |
| 148 | +warpx.moving_window_dir = z |
| 149 | +warpx.moving_window_v = 1. # in units of the speed of light |
| 150 | + |
| 151 | +# Particle Injection |
| 152 | +warpx.do_plasma_injection = 1 |
| 153 | +warpx.num_injected_species = 2 |
| 154 | +warpx.injected_plasma_species = 2 3 |
0 commit comments