diff options
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/Tests/averaged_galilean/inputs_avg_2d | 6 | ||||
-rwxr-xr-x | Examples/Tests/galilean/analysis_2d.py | 12 | ||||
-rw-r--r-- | Examples/Tests/galilean/inputs_2d | 6 | ||||
-rw-r--r-- | Examples/Tests/galilean/inputs_rz | 6 |
4 files changed, 15 insertions, 15 deletions
diff --git a/Examples/Tests/averaged_galilean/inputs_avg_2d b/Examples/Tests/averaged_galilean/inputs_avg_2d index cee42c8c5..f553009d3 100644 --- a/Examples/Tests/averaged_galilean/inputs_avg_2d +++ b/Examples/Tests/averaged_galilean/inputs_avg_2d @@ -7,7 +7,7 @@ amr.n_cell = 128 128 amr.max_grid_size = 128 amr.blocking_factor = 128 amr.max_level = 0 -psatd.v_galilean = 0 0 0.99498743710662 +psatd.v_galilean = 0 0 -0.99498743710662 psatd.do_time_averaging = 1 @@ -51,7 +51,7 @@ electrons.num_particles_per_cell_each_dim = 2 2 electrons.profile = constant electrons.density = 282197938148984.7 electrons.momentum_distribution_type = "gaussian" -electrons.uz_m = 9.9498743710661994 +electrons.uz_m = -9.9498743710661994 electrons.xmin = -12.3776 electrons.xmax = 12.3776 electrons.zmin = -49.5104 @@ -67,7 +67,7 @@ ions.num_particles_per_cell_each_dim = 2 2 ions.profile = constant ions.density = 282197938148984.7 ions.momentum_distribution_type = "gaussian" -ions.uz_m = 9.9498743710661994 +ions.uz_m = -9.9498743710661994 ions.xmin = -12.3776 ions.xmax = 12.3776 ions.zmin = -49.5104 diff --git a/Examples/Tests/galilean/analysis_2d.py b/Examples/Tests/galilean/analysis_2d.py index ea423a71d..d6486a4e2 100755 --- a/Examples/Tests/galilean/analysis_2d.py +++ b/Examples/Tests/galilean/analysis_2d.py @@ -37,23 +37,23 @@ Ez= ds.index.grids[0]['boxlib', 'Ez'].squeeze().v if (averaged): # energyE_ref was calculated with Galilean PSATD method (v_galilean = (0,0,0.99498743710662)) - energyE_ref = 26913.546573259937 - tolerance_rel = 1e-5 + energyE_ref = 32532.00882239954 + tolerance_rel = 1e-6 elif (not dims_RZ and not current_correction): # energyE_ref was calculated with standard PSATD method (v_galilean = (0.,0.,0.)) - energyE_ref = 38362.88743899688 + energyE_ref = 35657.99361677053 tolerance_rel = 1e-8 elif (not dims_RZ and current_correction): # energyE_ref was calculated with standard PSATD method (v_galilean = (0.,0.,0.)): - energyE_ref = 33331.13857367177 + energyE_ref = 35024.02751955393 tolerance_rel = 2e-8 elif (dims_RZ and not current_correction): # energyE_ref was calculated with standard PSATD method (v_galilean = (0.,0.,0.)) - energyE_ref = 178013.54481470847 + energyE_ref = 239019.10670780553 tolerance_rel = 1e-8 elif (dims_RZ and current_correction): # energyE_ref was calculated with standard PSATD method (v_galilean = (0.,0.,0.)) - energyE_ref = 455119.0695414118 + energyE_ref = 471730.0524143545 tolerance_rel = 1e-9 energyE = np.sum(scc.epsilon_0/2*(Ex**2+Ey**2+Ez**2)) diff --git a/Examples/Tests/galilean/inputs_2d b/Examples/Tests/galilean/inputs_2d index 19189c0f3..c52471983 100644 --- a/Examples/Tests/galilean/inputs_2d +++ b/Examples/Tests/galilean/inputs_2d @@ -7,7 +7,7 @@ amr.n_cell = 128 128 amr.max_grid_size = 128 amr.blocking_factor = 128 amr.max_level = 0 -psatd.v_galilean = 0. 0. 0.99498743710662 +psatd.v_galilean = 0. 0. -0.99498743710662 geometry.coord_sys = 0 geometry.is_periodic = 1 1 @@ -47,7 +47,7 @@ electrons.num_particles_per_cell_each_dim = 2 2 electrons.profile = constant electrons.density = 282197938148984.7 electrons.momentum_distribution_type = "gaussian" -electrons.uz_m = 9.9498743710661994 +electrons.uz_m = -9.9498743710661994 electrons.xmin = -38.68 electrons.xmax = 38.68 electrons.zmin = -38.68 @@ -62,7 +62,7 @@ ions.num_particles_per_cell_each_dim = 2 2 ions.profile = constant ions.density = 282197938148984.7 ions.momentum_distribution_type = "gaussian" -ions.uz_m = 9.9498743710661994 +ions.uz_m = -9.9498743710661994 ions.xmin = -38.68 ions.xmax = 38.68 ions.zmin = -38.68 diff --git a/Examples/Tests/galilean/inputs_rz b/Examples/Tests/galilean/inputs_rz index 4f94cb643..f2805faf0 100644 --- a/Examples/Tests/galilean/inputs_rz +++ b/Examples/Tests/galilean/inputs_rz @@ -7,7 +7,7 @@ amr.n_cell = 64 128 amr.max_grid_size = 128 amr.blocking_factor = 128 amr.max_level = 0 -psatd.v_galilean = 0. 0. 0.99498743710662 +psatd.v_galilean = 0. 0. -0.99498743710662 geometry.coord_sys = 1 geometry.is_periodic = 0 1 @@ -48,7 +48,7 @@ electrons.num_particles_per_cell_each_dim = 2 2 electrons.profile = constant electrons.density = 282197938148984.7 electrons.momentum_distribution_type = "gaussian" -electrons.uz_m = 9.9498743710661994 +electrons.uz_m = -9.9498743710661994 electrons.xmin = 0. electrons.xmax = 38.68 electrons.zmin = -38.68 @@ -63,7 +63,7 @@ ions.num_particles_per_cell_each_dim = 2 2 ions.profile = constant ions.density = 282197938148984.7 ions.momentum_distribution_type = "gaussian" -ions.uz_m = 9.9498743710661994 +ions.uz_m = -9.9498743710661994 ions.xmin = 0. ions.xmax = 38.68 ions.zmin = -38.68 |