forked from ECP-WarpX/WarpX
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"Gradient descent" convergence to steady-state (#176)
* Added ArbitraryDistributionVolumeEmitter * Updated particle weight calculation * renamed thermionic_emission test directory to emission * arbitrary seed from uniform distribution * Bug fixes and changes to test * add test for arbitrary seeding * Changed position sampling, added test * Removed unused imports and code * revert traceback printout * Added comments for binning particle positions * increased rtol for test * Allow input of any 2d array, add interpolation of 2d array onto current simulation grid * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Updated changelog * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Updated changelog * update version * created steady_state_descent.py file * Added coarsening algorithm * Added ability to read numpy data and coarsen grid * Added regression function calculation * Solve system of equations rather than curve fit * Use skimage block_reduce * Hard coded inverse exponential solve * take mean if exponential equation can't be solved * Added special cases to use linear regression * Update docstring * Added command line arguments * Modified linear regression logic and added main function * Added entry point * Change output file name * Change output file name * Fixed interpolate grid * updated arbitrary distribution emitter test * Fix interpolation logic * Changed to take in exact prediction timestep rather than a multiple * Added ability to specify save directory * Updated docstrings, removed unneeded files * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Added gradient descent test, refactored code * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Changed test parameters * Increase rtol of arbitrary seed test by 0.01 * Apply shift in BTD for zmax different than 0 (ECP-WarpX#3091) * Include shift in t_lab when `zmax` is different than 0 * Revert "Include shift in t_lab when `zmax` is different than 0" This reverts commit 5f786f2. * Apply shift in BTD for zmax > 0 * Update mewarpx/mewarpx/utils_store/plasma_density_oracle.py Co-authored-by: Roelof Groenewald <[email protected]> * Update changelog * AMReX: Weekly Update (ECP-WarpX#3095) * Update version * Add controller for plasma density oracle * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix miscellaneous issues found with clang tidy (ECP-WarpX#3083) * fix miscellaneous issues found with clang tidy * fix miscellaneous issues found with clang tidy * moved default constructors and destructors to header * fix issue * Use default again * Add a python script to generate timestep duration plots (ECP-WarpX#3036) * add script to generate timestep duration plots * disable transparent background * fix bugs * fix bug in doc * Update plot_timestep_duration.rst * add permissions * using argparse * using if __name__ == __main__: * add page in workflows * Update Docs/source/usage/workflows.rst * added missing file * Formatting * Apply shift for zmax>0 in old BTD (ECP-WarpX#3094) * Apply shift for zmax>0 in old BTD * BTD: also shift t_slice_lab * Use uniform error message formatting for all the amrex::Abort() calls in WarpX.cpp (ECP-WarpX#2952) * use WARPX_ALWAYS_ASSERT_WITH_MESSAGE instead of Abort() * fix bug * Update Source/WarpX.cpp * fixed bug * fixed bug * Update Source/WarpX.cpp * Update Source/WarpX.cpp Co-authored-by: Axel Huebl <[email protected]> * WIP oracle control * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Use queryWithParser to Parse v_particle_pml (ECP-WarpX#3096) Use queryWithParser, instead of query, to parse v_particle_pml, in order to support functions like sin, cos, sqrt, etc. * Allow oracle control bins to be overridden * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix Wrong Abort Message for PSATD w/ Time Averaging (ECP-WarpX#3098) * Doc: Improve Doxygen Links (ECP-WarpX#3099) * Doc: Improve Doxygen Links - download also openPMD-api tag files & link them - improve developer page: clearer links * Update: .gitignore * Added command line arguments * Fix Mirrors for RZ (NullifyMF) (ECP-WarpX#3101) * Fixed bugs, added info logging * added ability to modify run_script * removed unnecessary code * Cleaned up code * Fix Breaking Pip 22.1 Logic (ECP-WarpX#3106) * CI: Fix Windows Pip's `--no-build-isolation` says we have to have build-deps pre-installed. But Pip does offer no option to install those from `pyproject.toml`. * Pip 22.1: in-tree-build default And dropped the old option with a fatal error... classic. * Pip no-build isolation: pre-install build tools not installed in non-isolated builds - we want isolated builds, because they have a derministic path that we can cache with ccache * fix bug (ECP-WarpX#3110) * Fix Laser Injection in RZ (ECP-WarpX#3104) * Add STL files support in pywarpx (ECP-WarpX#3089) * Added STL files support in pywarpx * Add new EB bucket * Added name to file headers * Fixing year in file headers * Checking that stl file and imp function are not both specified * Renamed EB bucket to EB2 * Adding STL documentation * Implement suggestions from code review Co-authored-by: lgiacome <[email protected]> * Stricter Tolerance for 3D Langmuir Tests (ECP-WarpX#3097) * CI: HIP with https (ECP-WarpX#3111) Small update in HIP docs: now supports HTTPS: https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#ubuntu * Add Headers to Input File Written by PICMI (ECP-WarpX#3093) * Add Headers to Input File Written by PICMI * Commit Suggestion by @dpgrote * Add Comment * Add Empty Line * Slightly Better Readable with a newline * Refactored code to be clearer * AMReX/PICSAR: Weekly Update (ECP-WarpX#3112) * AMReX: Weekly Update * PICSAR: Weekly Update * [pre-commit.ci] pre-commit autoupdate (ECP-WarpX#3113) updates: - [github.com/Lucas-C/pre-commit-hooks: v1.1.13 → v1.1.14](Lucas-C/pre-commit-hooks@v1.1.13...v1.1.14) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * Use uniform error message formatting in more source files (ECP-WarpX#2964) * use WARPX_ALWAYS_ASSERT_WITH_MESSAGE instead of Abort() * fix bug * Update Source/WarpX.cpp Co-authored-by: Axel Huebl <[email protected]> * use more uniform text formatting * fixed bug * fixed bug * using Utils::TextMsg in more files * fixed bug * use Utils::TextMsg in more files * fixed bug * use Utils::TextMsg in more files * fixed last merge conflict * fixed bug * fix indentation Co-authored-by: Axel Huebl <[email protected]> * Avoid resizing ParticleBoundaryBuffer allocation to total particle count (ECP-WarpX#3068) * Avoid resizing ParticleBoundaryBuffer allocation to total particle count * Switch atomic increments over to reductions * Lassen (LLNL): ADIOS2, BLAS++ & LAPACK++ (ECP-WarpX#3071) * Lassen (LLNL): ADIOS2, BLAS++ & LAPACK++ Document how to install ADIOS2 (for openPMD `.bp`) and BLAS++/LAPACK++ (for PSATD in RZ) on Lassen at LLNL. * Update: ADIOS2~SST, BLAS++/LAPACK++ w/ ESSL * Add workaround for Libfabric bug on Crusher to job script. (ECP-WarpX#3114) * Add workaround for Libfabric bug on Crusher to job script. * add known issues section for Crusher * Update docstrings * Added test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Added documentation about oracle_control * Updated changelog * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixed TOTAL_TIME calculation * ABLASTR: localIDtoGlobal (ECP-WarpX#3115) * ABLASTR: localIDtoGlobal Move the control of `localIDtoGlobal` to ABLASTR for particle IDs. * WarpX: Use ABLASTR now * update wheel in docker build * build image * change numpy to oldest-supported-numpy for docker * build image * Updated formatting and documentation Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Remi Lehe <[email protected]> Co-authored-by: Roelof Groenewald <[email protected]> Co-authored-by: Axel Huebl <[email protected]> Co-authored-by: Luca Fedeli <[email protected]> Co-authored-by: amadou38 <[email protected]> Co-authored-by: Edoardo Zoni <[email protected]> Co-authored-by: David Grote <[email protected]> Co-authored-by: Lorenzo Giacomel <[email protected]> Co-authored-by: lgiacome <[email protected]> Co-authored-by: Phil Miller <[email protected]> Co-authored-by: Andrew Myers <[email protected]> Co-authored-by: roelof.groenewald <[email protected]>
- Loading branch information
1 parent
50ad568
commit e31338f
Showing
105 changed files
with
1,846 additions
and
699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. _plot-timestep-duration: | ||
|
||
Plot timestep duration | ||
====================== | ||
We provide a simple python script to generate plots of the timestep duration | ||
from the stdandard output of WarpX (provided that ``warpx.verbose`` is set to 1): | ||
`plot_timestep_duration.py <../../../../Tools/PostProcessing/plot_timestep_duration.py>`__ . | ||
|
||
If the standard output of a simulation has been redirected to a file named ``log_file``, | ||
the script can be used as follows: | ||
|
||
:: | ||
|
||
python plot_timestep_duration.py log_file | ||
|
||
The script generates two pictures: ``log_file_ts_duration.png``, which shows the duration | ||
of each timestep in seconds as a function of the timestep number, and ``log_file_ts_cumulative_duration.png``, | ||
which shows the total duration of the simulation as a function of the timestep number. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright 2022 Lorenzo Giacomel | ||
# | ||
# This file is part of WarpX. | ||
# | ||
# License: BSD-3-Clause-LBNL | ||
|
||
from .Bucket import Bucket | ||
|
||
eb2 = Bucket('eb2') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.