From f764f01361c5184c28e7e761480529eae1f6faf8 Mon Sep 17 00:00:00 2001 From: Sebastian Grimberg Date: Tue, 19 Sep 2023 20:45:11 -0700 Subject: [PATCH] Rebaseline spheres example due to updated default quadrature rule order --- docs/src/examples/spheres.md | 12 ++++++------ test/ref/spheres/domain-E.csv | 4 ++-- test/ref/spheres/probe-E.csv | 4 ++-- test/ref/spheres/surface-C.csv | 4 ++-- test/ref/spheres/terminal-C.csv | 4 ++-- test/ref/spheres/terminal-Cinv.csv | 4 ++-- test/ref/spheres/terminal-Cm.csv | 4 ++-- test/testcase.jl | 2 +- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/src/examples/spheres.md b/docs/src/examples/spheres.md index 05acbe036..a149a4c81 100644 --- a/docs/src/examples/spheres.md +++ b/docs/src/examples/spheres.md @@ -58,8 +58,8 @@ The resulting extracted Maxwell capacitance matrix is saved to disk in the CSV f ``` i, C[i][1] (F), C[i][2] (F) - 1.000000e+00, +1.237470540e-12, -4.771229894e-13 - 2.000000e+00, -4.771229894e-13, +2.478512490e-12 + 1.000000e+00, +1.237470440e-12, -4.771229193e-13 + 2.000000e+00, -4.771229193e-13, +2.478512278e-12 ``` In this case, the analytic solution yields @@ -81,8 +81,8 @@ The mutual capacitance matrix can be computed from its Maxwell counterpart, and ``` i, C_m[i][1] (F), C_m[i][2] (F) - 1.000000e+00, +7.603475504e-13, +4.771229894e-13 - 2.000000e+00, +4.771229894e-13, +2.001389500e-12 + 1.000000e+00, +7.603475205e-13, +4.771229193e-13 + 2.000000e+00, +4.771229193e-13, +2.001389358e-12 ``` Additionally, while the typical approach used by *Palace* for lumped parameter extraction @@ -95,8 +95,8 @@ capacitances are written to `postpro/surface-C.csv`: ``` i, C[1] (F), C[2] (F) - 1.000000e+00, +1.210962236e-12, -4.677852948e-13 - 2.000000e+00, -4.669431918e-13, +2.425918151e-12 + 1.000000e+00, +1.219433080e-12, -4.711763113e-13 + 2.000000e+00, -4.701805852e-13, +2.443652512e-12 ``` and agree closely with the values computed using the default method above, as expected. diff --git a/test/ref/spheres/domain-E.csv b/test/ref/spheres/domain-E.csv index 3242ff075..56e6af5a7 100644 --- a/test/ref/spheres/domain-E.csv +++ b/test/ref/spheres/domain-E.csv @@ -1,3 +1,3 @@ i, E_elec, E_mag, E_cap, E_ind - 1.000000e+00, +4.658701492e-02, +0.000000000e+00, +0.000000000e+00, +0.000000000e+00 - 2.000000e+00, +9.330848259e-02, +0.000000000e+00, +0.000000000e+00, +0.000000000e+00 + 1.000000e+00, +4.658701115e-02, +0.000000000e+00, +0.000000000e+00, +0.000000000e+00 + 2.000000e+00, +9.330847462e-02, +0.000000000e+00, +0.000000000e+00, +0.000000000e+00 diff --git a/test/ref/spheres/probe-E.csv b/test/ref/spheres/probe-E.csv index 726b3a361..eede21841 100644 --- a/test/ref/spheres/probe-E.csv +++ b/test/ref/spheres/probe-E.csv @@ -1,3 +1,3 @@ i, E_x[1], E_y[1], E_z[1] - 1.000000e+00, +1.818302735e+02, -1.021781177e+00, +1.004988847e-01 - 2.000000e+00, -1.229666327e+02, +6.910014939e-01, -6.796453200e-02 + 1.000000e+00, +1.819934134e+02, -1.022697929e+00, +1.005890533e-01 + 2.000000e+00, -1.230662291e+02, +6.915611682e-01, -6.801957964e-02 diff --git a/test/ref/spheres/surface-C.csv b/test/ref/spheres/surface-C.csv index e10c3677c..e98c6365f 100644 --- a/test/ref/spheres/surface-C.csv +++ b/test/ref/spheres/surface-C.csv @@ -1,3 +1,3 @@ i, C[1] (F), C[2] (F) - 1.000000e+00, +1.218551118e-12, -4.708334253e-13 - 2.000000e+00, -4.698471938e-13, +2.441796020e-12 + 1.000000e+00, +1.219433080e-12, -4.711763113e-13 + 2.000000e+00, -4.701805852e-13, +2.443652512e-12 diff --git a/test/ref/spheres/terminal-C.csv b/test/ref/spheres/terminal-C.csv index c84288268..395ca71cd 100644 --- a/test/ref/spheres/terminal-C.csv +++ b/test/ref/spheres/terminal-C.csv @@ -1,3 +1,3 @@ i, C[i][1] (F), C[i][2] (F) - 1.000000e+00, +1.237470540e-12, -4.771229894e-13 - 2.000000e+00, -4.771229894e-13, +2.478512490e-12 + 1.000000e+00, +1.237470440e-12, -4.771229193e-13 + 2.000000e+00, -4.771229193e-13, +2.478512278e-12 diff --git a/test/ref/spheres/terminal-Cinv.csv b/test/ref/spheres/terminal-Cinv.csv index 12e20e3da..e9cba70ab 100644 --- a/test/ref/spheres/terminal-Cinv.csv +++ b/test/ref/spheres/terminal-Cinv.csv @@ -1,3 +1,3 @@ i, C⁻¹[i][1] (1/F), C⁻¹[i][2] (1/F) - 1.000000e+00, +8.728878328e+11, +1.680341955e+11 - 2.000000e+00, +1.680341955e+11, +4.358150230e+11 + 1.000000e+00, +8.728878944e+11, +1.680341970e+11 + 2.000000e+00, +1.680341970e+11, +4.358150558e+11 diff --git a/test/ref/spheres/terminal-Cm.csv b/test/ref/spheres/terminal-Cm.csv index d21b102bd..698931632 100644 --- a/test/ref/spheres/terminal-Cm.csv +++ b/test/ref/spheres/terminal-Cm.csv @@ -1,3 +1,3 @@ i, C_m[i][1] (F), C_m[i][2] (F) - 1.000000e+00, +7.603475504e-13, +4.771229894e-13 - 2.000000e+00, +4.771229894e-13, +2.001389500e-12 + 1.000000e+00, +7.603475205e-13, +4.771229193e-13 + 2.000000e+00, +4.771229193e-13, +2.001389358e-12 diff --git a/test/testcase.jl b/test/testcase.jl index 32e4e7f1c..2078e3865 100644 --- a/test/testcase.jl +++ b/test/testcase.jl @@ -14,7 +14,7 @@ function testcase( @info "$testdir/ is empty, skipping tests" return end - palacedir = dirname(@__DIR__) + palacedir = dirname(dirname(@__DIR__)) refdir = joinpath(@__DIR__, "ref", testdir) refpostprodir = joinpath(refdir, testpostpro) exampledir = joinpath(palacedir, "examples", testdir)