aboutsummaryrefslogtreecommitdiff
path: root/Examples/Modules/space_charge_initialization/analysis.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-12-02Clean up examples folders (#3545)Gravatar Edoardo Zoni 1-114/+0
* Clean up examples folders * Use `snake_case` names * Rename `nci_corrector` as `nci_fdtd_stability`
2021-12-21pre-commit: Python imports (#2686)Gravatar Axel Huebl 1-2/+5
* pre-commit: Python imports Add two new Python rules to: - remove unused imports - sort imports according to PEP8 * pre-commit: Python imports Add two new Python rules to: - remove unused imports - sort imports according to PEP8 `.editorconfig`: isort options https://github.com/PyCQA/isort/wiki/isort-Settings * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * move import os (mpl) * move import yt (mpl) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Cleanup around matplotlib.use * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Cleaning: double np and lib Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-16Generalize Analysis Scripts: Number of Digits (plt) (#2683)Gravatar Axel Huebl 1-1/+2
* Update Scripts to Handle New File Names * Use glob in Analysis of Collision Tests * Use rstrip in Analysis of Collision Tests * Regex: Match ends-in-digits Thanks Phil! :) Co-authored-by: Edoardo Zoni <ezoni@lbl.gov> Co-authored-by: Phil Miller <unmobile+gh@gmail.com>
2021-12-15Examples: Python ShellBang & Executable (#2673)Gravatar Axel Huebl 1-1/+1
* Examples: Python ShellBang & Executable Make sure that all PICMI scripts and all analysis Python scripts in `Examples/` are: - executable (`chmod a+x`) - start with a shell-bang to `python3` Now, all scripts can be run directly without a `python3 ...` prefix and also default to the only right executable of Python on older systems. (New systems always have a `python3` alias, too.) * Revert a moved numpy
2021-11-09Fix #2522: Gaussian beam positions do not change with warpx.random_seed (#2523)Gravatar Remi Lehe 1-1/+1
* Draw Gaussian beam position with amrex random engine * Update benchmarks * Update tolerance in space-charge tests * Update benchmark for space charge initialization test * Update benchmarks * Update benchmark * Clean-up code * Update benchmarks
2021-11-02Introduce AMReX change of stencil for Poisson solver (#2496)Gravatar Remi Lehe 1-1/+1
* AMReX/PICSAR: Weekly Update (#2478) Weekly update to latest AMReX. Weekly update to latest PICSAR (no changes). ``` ./Tools/Release/updatePICSAR.py ./Tools/Release/updateAMReX.py ``` * Update benchmarks * Update benchmarks for 3D tests * Update benchmarks * Update benchmark * Update benchmark Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
2021-07-20ChecksumAPI: yt 4+ ds.force_periodicity() (#2117)Gravatar Axel Huebl 1-4/+9
* ChecksumAPI: yt 4+ ds.force_periodicity() Mitigate issues of the form ``` RuntimeError: yt attempted to read outside the boundaries of a non-periodic domain along dimension 0. Region left edge = -7.5e-06 code_length, Region right edge = 7.500000000000002e-06 code_length Dataset left edge = -7.5e-06 code_length, Dataset right edge = 7.5e-06 code_length This commonly happens when trying to compute ghost cells up to the domain boundary. Two possible solutions are to select a smaller region that does not border domain edge (see https://yt-project.org/docs/analyzing/objects.html?highlight=region) or override the periodicity with ds.force_periodicity() ``` * make yt3 compatible
2020-06-03Add checksum regression tests (#1065)Gravatar MaxThevenet 1-0/+5
* add a checksum module for regtests * All capabilities to checksum tests * update tests to generate a clean benchmark * call checksum tests from analysis scripts * Add checksum json benchmarks * add missing script, better printing and increase tol * eol * fix permission, and bump tolerance * chmod +x checksumAPI.py * update benchmarks, probably old ones were wrong due to parallelization * remove unused variable, thanks lgtm * special handling when the benchmark is 0 * non-zero but very small CFL for 1 step for init tests * reset erroneous Python benchmarks * slightly bump tolerance for initial distribution test * too small dr results in nans * improve prints, tolerance handling, and fix tests * typo * enable tolerance and fields/particles optional comparison to fix tests * more minor cleaning in space charge initialization tests * update Python benchmarks for serial runs * Run Python tests with 1 rank instead of 2 * fields that are zero should not be in reg tests * Add developer documentation on checksum regression tests Co-authored-by: Tools <warpx@lbl.gov>
2020-05-01Most fun PR ever: print error and tolerance before ASSERT in CI (#967)Gravatar MaxThevenet 1-1/+3
* always print error and tolerance before ASSERT in CI tests * eol * fix typos * more typo * typo
2020-01-27Automatically add copyright header with update_copyright.shGravatar Tools 1-0/+7
2020-01-16Fix ShellBang Python AnalysisGravatar Axel Huebl 1-1/+1
Do not assume a location of the python interpreter.
2019-12-04Avoid matplotlib errors in space charge regression testsGravatar Remi Lehe 1-1/+3
2019-11-14Update parametersGravatar Remi Lehe 1-1/+1
2019-11-13Update analysis scriptGravatar Remi Lehe 1-4/+8
2019-11-07Implement space-charge initialization (non-relativistic, single-level)Gravatar Remi Lehe 1-0/+85