diff options
author | 2023-06-02 17:50:39 -0700 | |
---|---|---|
committer | 2023-06-02 17:50:39 -0700 | |
commit | f05d05f798931cd73acd7310a9952978863253b0 (patch) | |
tree | 7a75cb567081ae5f934a38d6e0b8a0d6054db739 /Source/Particles/Collision/BinaryCollision/ParticleCreationFunc.cpp | |
parent | 956b9301a2b087246f53292dd53e9c54f831e2de (diff) | |
download | WarpX-f05d05f798931cd73acd7310a9952978863253b0.tar.gz WarpX-f05d05f798931cd73acd7310a9952978863253b0.tar.zst WarpX-f05d05f798931cd73acd7310a9952978863253b0.zip |
Histogram 2D (#3883)
* Histogram 2D
A new functionality has been added. The files ParticleHistogram2D.cpp and ParticleHistogram2D.H allow the user to plot a 2D histogram that computes the number of particles for a given abscissa and ordinate.
* Modification to solve NVCC 11.8.0 GNUmake issue
ParticleHistogram2D.cpp added into Make.package
* Test for using openPMD
Test to activate the plug in for openPMD : #ifdef WARPX_USE_OPENPMD
Error message otherwise.
* Test for using openPMD continued
* New version of the ParticleHistogram2D option
The user can now choose the value of the weight via a value_function.
Another parameter was therefore added : w
The documentation has also been updated and an example (input file + python script for postprocessing) has been added to Examples/Physics_application/laser_ion
* Python script updated
The python script written for postprocessing the ParticleHistogram2D option has been renamed to pass a check test.
The argparse module has also been added to the code instead of the originally implemented command line interaction. Now the user must pass arguments when executing the script.
* Input files of the laser-ion example merged
The input file originally created for the 2D histogram has been merged with the initial input file "inputs" of the example.
* Correction of a display bug
* Help function for openPMD files
A help function has been created to find the correct file type when writing openPMDfiles.
Another update : the file type will be returned in the warpx_used_inputs file after running a simulation.
* Typo fixed in the python script used for 2D histograms visualisation
Typo for the shape of the data
* Typo in the help function file created
* Some typo fixed for checks
Modifications in the input file of the laser-ion example and in the ParticleHistogram2D.cpp file.
* Typo fixed : declaration on the WarpXOpenPMDFileType function outside #ifdef WARPX_USE_OPENPMD
* Typo for failing check NVCC 11.8.0 GNUmake
* Typo for failing check NVCC 11.8.0 GNUmake (continued)
* Typo for failing check NVCC 11.8.0 GNUmake (continued, abort message)
* .cpp file added to Make.package
* Time added to the data
Simulation time is now visible on Hist2D plots
* Update Docs/source/dataanalysis/reduced_diags.rst
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* Update Docs/source/usage/parameters.rst
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* Update Examples/Physics_applications/laser_ion/analysis_histogram_2D.py
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* Update Examples/Physics_applications/laser_ion/analysis_histogram_2D.py
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* Update Docs/source/usage/parameters.rst
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* Update Docs/source/usage/parameters.rst
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* Update Source/Diagnostics/ReducedDiags/ParticleHistogram2D.cpp
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* Update Source/Diagnostics/ReducedDiags/ParticleHistogram2D.H
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* Update Source/Diagnostics/ReducedDiags/ParticleHistogram2D.cpp
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* Update Source/Diagnostics/OpenPMDHelpFunction.cpp
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* Update Source/Diagnostics/OpenPMDHelpFunction.H
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* Multiple hist2D active in the same simulation now possible
The laser-ion example as well as the documentation have been modified accordingly.
* Display enhancement for the laser-ion example
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'Source/Particles/Collision/BinaryCollision/ParticleCreationFunc.cpp')
0 files changed, 0 insertions, 0 deletions