diff options
-rwxr-xr-x | Examples/Tests/galilean/analysis_2d.py | 4 | ||||
-rwxr-xr-x | Examples/Tests/galilean/analysis_3d.py | 4 | ||||
-rw-r--r-- | Regression/Checksum/benchmarks_json/galilean_3d_psatd.json | 50 | ||||
-rw-r--r-- | Regression/WarpX-tests.ini | 2 |
4 files changed, 31 insertions, 29 deletions
diff --git a/Examples/Tests/galilean/analysis_2d.py b/Examples/Tests/galilean/analysis_2d.py index b1bc5d0a3..e2b0b0e23 100755 --- a/Examples/Tests/galilean/analysis_2d.py +++ b/Examples/Tests/galilean/analysis_2d.py @@ -26,10 +26,10 @@ Ez= ds.index.grids[0]['boxlib', 'Ez'].squeeze().v energyE_gal_psatd = np.sum(scc.epsilon_0/2*(Ex**2+Ey**2+Ez**2)) #E field energy precalculated with standard PSATD (v_galilean = (0,0,0)) -energyE_psatd = 30719.555920 +energyE_psatd = 38362.88743899688 error_rel = energyE_gal_psatd / energyE_psatd -tolerance_rel = 1e-7 +tolerance_rel = 1e-8 print("error_rel : " + str(error_rel)) print("tolerance_rel: " + str(tolerance_rel)) diff --git a/Examples/Tests/galilean/analysis_3d.py b/Examples/Tests/galilean/analysis_3d.py index 7a08beaac..8af25214d 100755 --- a/Examples/Tests/galilean/analysis_3d.py +++ b/Examples/Tests/galilean/analysis_3d.py @@ -26,10 +26,10 @@ Ez= ds.index.grids[0]['boxlib', 'Ez'].squeeze().v energyE_gal_psatd = np.sum(scc.epsilon_0/2*(Ex**2+Ey**2+Ez**2)) #E field energy precalculated with standard PSATD (v_galilean = (0,0,0)) -energyE_psatd = 154618.93650990006 +energyE_psatd = 8218.678808709019 error_rel = energyE_gal_psatd / energyE_psatd -tolerance_rel = 1e-7 +tolerance_rel = 1e-6 print("error_rel : " + str(error_rel)) print("tolerance_rel: " + str(tolerance_rel)) diff --git a/Regression/Checksum/benchmarks_json/galilean_3d_psatd.json b/Regression/Checksum/benchmarks_json/galilean_3d_psatd.json index d422efd30..ac08a6013 100644 --- a/Regression/Checksum/benchmarks_json/galilean_3d_psatd.json +++ b/Regression/Checksum/benchmarks_json/galilean_3d_psatd.json @@ -1,33 +1,35 @@ { "electrons": { "particle_cpu": 0.0, - "particle_id": 524800.0, - "particle_momentum_x": 2.7514767750837127e-23, - "particle_momentum_y": 2.3100769516972307e-23, - "particle_momentum_z": 2.7824488315769355e-18, - "particle_position_x": 4951.068658383481, - "particle_position_y": 184114.46819780796, - "particle_weight": 1.0555207511431835e+17 + "particle_id": 536887296.0, + "particle_momentum_x": 7.711091333291208e-22, + "particle_momentum_y": 7.766279763773898e-22, + "particle_momentum_z": 8.90383750986444e-17, + "particle_position_x": 158433.3238610291, + "particle_position_y": 158432.84317865185, + "particle_position_z": 5891662.954892859, + "particle_weight": 2.041377132710917e+18 }, "ions": { "particle_cpu": 0.0, - "particle_id": 1573376.0, - "particle_momentum_x": 4.033320884535886e-20, - "particle_momentum_y": 3.93869961640813e-20, - "particle_momentum_z": 5.109003432590069e-15, - "particle_position_x": 4951.081914414071, - "particle_position_y": 184114.4681538281, - "particle_weight": 1.0555207511431835e+17 + "particle_id": 1610629120.0, + "particle_momentum_x": 1.3137706814337926e-18, + "particle_momentum_y": 1.3110285210773798e-18, + "particle_momentum_z": 1.6348803844369067e-13, + "particle_position_x": 158433.31297718664, + "particle_position_y": 158432.84897274867, + "particle_position_z": 5891662.9550994225, + "particle_weight": 2.041377132710917e+18 }, "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 + "Bx": 0.006046070460082905, + "By": 0.006003081974407402, + "Bz": 0.0006155823087616802, + "Ex": 1810472.0469424776, + "Ey": 1827154.1703772473, + "Ez": 135573.18383823402, + "jx": 491.54340916488076, + "jy": 499.1716515141262, + "jz": 16657.23345333249 } -}
\ No newline at end of file +} diff --git a/Regression/WarpX-tests.ini b/Regression/WarpX-tests.ini index 11556c04c..df4d64bd2 100644 --- a/Regression/WarpX-tests.ini +++ b/Regression/WarpX-tests.ini @@ -1445,7 +1445,7 @@ tolerance = 1.e-14 [galilean_3d_psatd] buildDir = . inputFile = Examples/Tests/galilean/inputs_3d -dim = 2 +dim = 3 addToCompileString = USE_PSATD=TRUE restartTest = 0 useMPI = 1 |