From 6ddc1657757b36f39ab11e2fd6ecf660eb9d10a5 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Tue, 2 May 2023 00:42:01 -0700 Subject: [PATCH] Update ES EB RZ Tests - slightly relaxed Phi - better selection of r outside cutcells --- Examples/Tests/electrostatic_sphere_eb/analysis_rz.py | 6 ++++-- .../benchmarks_json/ElectrostaticSphereEB_RZ.json | 6 +++--- .../benchmarks_json/ElectrostaticSphereEB_RZ_MR.json | 10 +++++----- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Examples/Tests/electrostatic_sphere_eb/analysis_rz.py b/Examples/Tests/electrostatic_sphere_eb/analysis_rz.py index 11c04d5c7a0..5d807a2dbd3 100755 --- a/Examples/Tests/electrostatic_sphere_eb/analysis_rz.py +++ b/Examples/Tests/electrostatic_sphere_eb/analysis_rz.py @@ -20,12 +20,13 @@ import sys import numpy as np +from unyt import m import yt sys.path.insert(1, '../../../../warpx/Regression/Checksum/') import checksumAPI -tolerance = 0.004 +tolerance = 0.0041 fn = sys.argv[1] ds = yt.load( fn ) @@ -47,7 +48,8 @@ errmax_phi = 0.0 errmax_Er = 0.0 for i in range(len(r)): - if r[i]>=0.1: + # outside EB and last cutcell + if r[i] > 0.1*m + dr: phi_theory = A+B*np.log(r[i]) Er_theory = -B/float(r[i]) err = abs( phi_theory - phi[i,:] ).max() / phi_theory diff --git a/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ.json b/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ.json index ac137cb3783..0d6e3cd058d 100644 --- a/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ.json +++ b/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ.json @@ -1,6 +1,6 @@ { "lev=0": { - "Er": 8497.669853722688, - "phi": 2035.6618484435153 + "Er": 8487.661571728835, + "phi": 2036.0428085209824 } -} \ No newline at end of file +} diff --git a/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ_MR.json b/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ_MR.json index 74996f211b0..ffa8d68f9d9 100644 --- a/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ_MR.json +++ b/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ_MR.json @@ -1,10 +1,10 @@ { "lev=0": { - "Er": 8497.669853733625, - "phi": 2035.6618484451055 + "Er": 8487.661571739109, + "phi": 2036.0428085225362 }, "lev=1": { - "Er": 19546.08010855407, - "phi": 3290.7266050322164 + "Er": 19519.172334977942, + "phi": 3291.0262856782897 } -} \ No newline at end of file +}