-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Particle Buffer for Backtransformed Diagnostics (#1898)
* move BTD call before Redistribute * define particle buffer, BTD particle functor, particle filter * select particles on the slice * add particle functors * add Lorentz Transform * fix conflict * add call to loretnz operator * storing Particles in buffer * This is WIP. Added particle buffers, filled them, sent them for flush with number already flushed. Does not work for multiple flushes. Crashes for OpenPMD. * trailing endif after rebase * adding print statements and not flushing particles in OPENPMD if numpart is 0 * last timestep flush is ensured at the end of evolve loop * fix bug in declaring uy uy new and computing uzp * set particle Geom, BA, and DMAP for particle flush with plotfile * set Particle BA Geom DMAP for particle buffer and no BTD transform for force flush * separate compute and pack from flush * Fix Typo: resizeable -> resizable Fixes HDF5 BTD particle output. * new class for plotfile particles for BTD * copy particle_H and DATA and Header. some WIP print statements * Merge plotfile * clean print statements * fix warning message * struct declaration in header, fix warning * doxygen comments and copyright * clean print statements * fix eol and override function warning * tile data * fix output species array size bug * fix access for particle buffer size * clean and move time-update * add cur_time update back * remove cur time update which was called twice * dont access particles flushed already for full diagnostics * cur time must be updated for RigidInjection BTD CI test to pass * temporarily move call to BTD * updating time and calling BTD before movewindow * cleanup * reset benchmarks and analysis script * clean and add comments * fix particle box array, geom, dmap * reset benchmarks for multi_J rz and ElectrostaticSphereEB_mixedBC * wip commit * wip commit * add SI conversion * abort for openpmd bp backend if species is selected. Also write particle output for BTD only if write_species is 1 * add documentation for aborting if adios is used with openpmd and add other BTD input parameters * Apply suggestions from code review commit Axel's suggestions from review Co-authored-by: Axel Huebl <[email protected]> * use bool instead of int * fix doxygen format * using h5 as backend in example test to ensure consistency with abort for particle output. * fix doxygen comment * reset benchmark again for comoving_2d_psatd galilean_2d_psatd multi_J_rz_psatd * reset benchmark for background_mcc * self-review suggestions * reset benchmarks. Update with last snapshot full info * Axel's PR suggestions Co-authored-by: Axel Huebl <[email protected]> * Axel's doxygen fix Co-authored-by: Axel Huebl <[email protected]> * add comments * fix eol * improved exception handling for stringsteam * PR suggestions * Axels' suggestions from code review Co-authored-by: Axel Huebl <[email protected]> * Axel's suggestions :) Co-authored-by: Axel Huebl <[email protected]> * simplify logic * suggestions from review (Axel/Reva) Co-authored-by: Axel Huebl <[email protected]> * variable name change for clarity * if num particles in tmp array is 0, return * Use new BTD inputs to set up BTD for particles in the corresponding particle container * unused var * fix logic error * speciesID undefined * separate particle and field buffer calls and initialization for BTD. Data common to both are initialized separately * rename variable so it does not ghost existing varname * add more comments * Assert that fields are on * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * redundant function definition * unused variable * unused variable zp * 1D 2D 3D definition * fix else * Apply suggestions from code review Add Prabhat's suggestion Co-authored-by: Prabhat Kumar <[email protected]> * missing semicolon and ignore xp yp for 1D * resetting benchmarks for boosted sims and mcc sim * temporarily changing tolerance since the relative difference for momentum_z is 3.68e-3 and the current tolerance is 2.5e-3 Co-authored-by: Axel Huebl <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Prabhat Kumar <[email protected]>
- Loading branch information
1 parent
518f18c
commit b673c59
Showing
50 changed files
with
1,801 additions
and
414 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
{ | ||
"electrons": { | ||
"particle_cpu": 190805.0, | ||
"particle_id": 58572159554.0, | ||
"particle_momentum_x": 1.0096555379894353e-18, | ||
"particle_momentum_y": 2.792308861947816e-19, | ||
"particle_momentum_z": 2.7912608371353956e-19, | ||
"particle_position_x": 17158.992965684767, | ||
"particle_position_y": 941.2938975939338, | ||
"particle_weight": 61532370208.74024 | ||
"particle_cpu": 187358.0, | ||
"particle_id": 58199703731.0, | ||
"particle_momentum_x": 1.0141001808730319e-18, | ||
"particle_momentum_y": 2.8070977171592375e-19, | ||
"particle_momentum_z": 2.8029049329565064e-19, | ||
"particle_position_x": 17128.025846186716, | ||
"particle_position_y": 933.6068577115554, | ||
"particle_weight": 61098512084.960945 | ||
}, | ||
"he_ions": { | ||
"particle_cpu": 262726.0, | ||
"particle_id": 206636597294.0, | ||
"particle_momentum_x": 2.8337541918025354e-18, | ||
"particle_momentum_y": 2.194599746445289e-18, | ||
"particle_momentum_z": 2.1971043484994987e-18, | ||
"particle_position_x": 17599.236953657848, | ||
"particle_position_y": 1099.5894721489742, | ||
"particle_weight": 71945924133.3008 | ||
"particle_cpu": 262797.0, | ||
"particle_id": 206713337554.0, | ||
"particle_momentum_x": 2.887261723355975e-18, | ||
"particle_momentum_y": 2.1945524403708785e-18, | ||
"particle_momentum_z": 2.1982471595658953e-18, | ||
"particle_position_x": 17605.41372853014, | ||
"particle_position_y": 1099.8462212522177, | ||
"particle_weight": 71965788177.49025 | ||
}, | ||
"lev=0": { | ||
"rho_electrons": 0.03590777765584312, | ||
"rho_he_ions": 0.041907813459370793 | ||
"rho_electrons": 0.035651817593500675, | ||
"rho_he_ions": 0.04191959356643796 | ||
} | ||
} |
Oops, something went wrong.