diff options
author | 2021-09-22 08:40:10 -0700 | |
---|---|---|
committer | 2021-09-22 08:40:10 -0700 | |
commit | 0f4b2e9fd02bf7b94bf533b310e6947f88d8aba5 (patch) | |
tree | e4ea227fecbdbc723e350eb1d38873e9015cf0ce /Examples/Physics_applications/capacitive_discharge/analysis.py | |
parent | 39f32c01c580a149ef9f6df39c6bdb0825e59ee3 (diff) | |
download | WarpX-0f4b2e9fd02bf7b94bf533b310e6947f88d8aba5.tar.gz WarpX-0f4b2e9fd02bf7b94bf533b310e6947f88d8aba5.tar.zst WarpX-0f4b2e9fd02bf7b94bf533b310e6947f88d8aba5.zip |
External Poisson solver: wrappers to copy the full domain rho and phi between C++ and Python (#2285)
* added missing parts to allow an external Poisson solver to be used instead of the MLMG solver
* added rho and phi wrappers to fields.py
* added an example of using an external Poisson solver
* need to run PICMI test on 2 processors same as non-PICMI version in order to compare plotfiles
* changes requested during PR review
* pass dictionary to eval statement when calculating boundary potential
Diffstat (limited to 'Examples/Physics_applications/capacitive_discharge/analysis.py')
-rwxr-xr-x | Examples/Physics_applications/capacitive_discharge/analysis.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Examples/Physics_applications/capacitive_discharge/analysis.py b/Examples/Physics_applications/capacitive_discharge/analysis.py index f37baf912..22d1c725a 100755 --- a/Examples/Physics_applications/capacitive_discharge/analysis.py +++ b/Examples/Physics_applications/capacitive_discharge/analysis.py @@ -2,11 +2,17 @@ # Copyright 2021 Modern Electron -# This script simply checks that the PICMI_inputs_2d.py run output -# diagnostics, which confirms that the PICMI MCC interface works otherwise -# the run would've crashed. +# This script checks that the PICMI_inputs_2d.py run more-or-less matches the +# results from the non-PICMI run. The PICMI run is using an external Poisson +# solver that directly solves the Poisson equation using matrix inversion +# rather than the iterative approach from the MLMG solver. -import glob +import sys +sys.path.append('../../../../warpx/Regression/Checksum/') -files = sorted(glob.glob('Python_background_mcc_plt*'))[1:] -assert len(files) > 0 +import checksumAPI + +my_check = checksumAPI.evaluate_checksum( + 'background_mcc', 'Python_background_mcc_plt00050', + do_particles=True, rtol=7.5e-2 +) |