Commit Graph
92 Commits
Author SHA1 Message Date
csendlinger d17602e1fa Fixed bug with mu=-1; added nan-check in
drawing velocity from density if DO_DEBUG
is true in the config file
2025-03-15 09:09:21 +01:00
csendlinger 5bc545ac99 hotfix: changed a <= b to !(a > b) 2025-03-13 15:20:56 +01:00
csendlinger d62c49a15d Bugfix drawing from density 2025-02-27 11:32:17 +01:00
csendlinger 62e3c27ba4 Added adapted example json script; small bugfix 2025-02-24 15:12:54 +01:00
csendlinger 3396d810a2 Fixed calculation of currents (included particle weights) 2025-02-19 15:53:46 +01:00
csendlinger 154bf41bf0 Bugfix: delta t default value at construction 2025-02-19 09:34:16 +01:00
csendlinger 9cd7db4e05 Bug fixes and formatting 2025-02-18 11:17:24 +01:00
csendlinger 24b2c2f2ed Decoupled timestep from number of beta events 2025-02-13 10:03:15 +01:00
csendlinger 047cfa8491 Decoupled the number of events simulated from
the timestep;
Bug with density drawing present
(if CPU syncs don't line up with the timestep)
2025-02-12 14:07:43 +01:00
csendlinger e205e7469e Adapted changes to compilation of
external libraries (blitz and jansson)
from the karl_paper branch
2025-02-05 16:13:00 +01:00
csendlinger 299dfa6fc4 Updated Boris mover to include gravity fields and
in case B=0 use z-direction for mu calculation;
correction of units in analysis script
2025-02-05 14:17:10 +01:00
csendlinger 57ef99a57b Moved drawing from density to seperate classes 2025-02-05 10:31:56 +01:00
csendlinger b529021149 Some optimizations (mfp: vector instead of recalc,
reduced number of density recalculations);
Default gravity field of 0;
adjusted error output
2025-01-29 16:59:10 +01:00
csendlinger 5dffc0c102 removed the 4d density field 2024-11-04 16:08:40 +01:00
csendlinger b1519cb4ca Included pitch angle binning in the json file;
minor changes to debug output
2024-10-29 14:55:14 +01:00
csendlinger 5fc227e1b1 Implemented pitch angle resolution.
Still includes (and uses) the non-pitch angle
resolved fields as well; have to be either removed
completely or refactored s.t. one of the two options
is chosen.
Pitch angle distribution has a hardcoded number of
bins for now, and exists in 'energy_binning.h'
2024-10-28 15:00:19 +01:00
csendlinger b4cbd8c44c Bugfixes;
Restarts now reproduce longer Sims
2024-09-11 14:56:14 +02:00
csendlinger 75bb2e4d85 small fixes and cosmetic changes 2024-09-05 09:33:12 +02:00
csendlinger 9c45fce644 built restart utilities 2024-09-03 16:02:40 +02:00
csendlinger c33629cb88 Added new reading routines (engine state,
4d double, 4d int); fixed error in RestartInfo
output; added the maximum length of the engine
state string into sim_constants.h
2024-08-27 14:46:48 +02:00
csendlinger c14a5245b1 added failsafe in case the value read by json_string_value is not a string 2024-08-26 11:01:46 +02:00
csendlinger f6aae32288 added basic parallel output for the
string representation of the rng engine state
2024-08-23 16:39:03 +02:00
csendlinger 2e5923ab6f restructured fields for cpu sync;
no longer whole object in species but additional
fields in the corresponding classes
2024-08-13 15:00:13 +02:00
csendlinger 9dda12b60a Fixed to state that drawing from density works.
Some debugging elements not removed.
2024-08-12 14:20:45 +02:00
csendlinger b57f6ff201 Basic neccessities to draw from a density field;
does not yet work correctly since the neccessary
density field is reset after a time resolution
step
2024-08-08 10:10:50 +02:00
csendlinger 4301c4453b Added option for initial weights in the injector 2024-07-31 10:35:14 +02:00
csendlinger 961f1a2a8e updated makefile 2024-07-30 14:24:10 +02:00
csendlinger 21edce8f92 added 1GHz magnetic fieldmap 2024-07-22 09:43:45 +02:00
csendlinger 844c0dfcc3 fix in current calculation 2024-07-12 16:45:12 +02:00
csendlinger 531ace797a Merge branch 'time_resolution' of masterduck.fspanier.de:katrin/karl into time_resolution 2024-07-01 10:12:20 +02:00
csendlinger f529804ee6 corrected units in the magnetic Bottle approximations 2024-07-01 10:05:07 +02:00
csendlinger d08407c773 added function for id of a particle 2024-06-27 10:12:07 +02:00
csendlinger 204b2817da added approximations for the magnetic Bottle in P8 2024-06-27 09:38:52 +02:00
csendlinger 095dd6eb3d Merge branch 'time_resolution' of masterduck.fspanier.de:katrin/karl into time_resolution 2024-06-25 10:49:38 +02:00
csendlinger 03321880d8 inclusion gradB in DriftMover 2024-06-25 10:49:22 +02:00
csendlinger a1444bceaa inclusion gradB field and quickfix reading from array 2024-06-25 10:08:12 +02:00
csendlinger f097f2b7ff small corrections in check if particle died 2024-06-17 09:15:38 +02:00
csendlinger f82cbf4c47 fix in density calculation 2024-05-27 11:00:52 +02:00
csendlinger fea00f9a0a minor corrections, added example json file 2024-05-16 09:43:29 +02:00
csendlinger d6ee7e8be8 optimized queue and backup queue a bit 2024-05-15 09:57:31 +02:00
csendlinger fcbff96f17 Poisson step and resets only after time resolution 2024-05-15 09:12:43 +02:00
csendlinger 77fa8d175a Basic changes for time resolution.
Input from json still suboptimal.
2024-05-14 09:23:52 +02:00
csendlinger cac5e6ff5d added exponential into predefined functions 2024-05-10 14:36:49 +02:00
csendlinger 93a51acbda Added option to reset relevant fields for
output after a poisson solution step
2024-04-13 11:10:18 +02:00
csendlinger 30b0178e5f updated example json files 2024-04-04 16:54:03 +02:00
csendlinger ab7c6f20cc inclusion of gravity field;
minor fix in drift velocity calculation in
mover.cpp
2024-04-03 17:13:46 +02:00
csendlinger 521b12f02e fixed prefactor in eT ionization 2024-03-28 17:22:50 +01:00
csendlinger 52a580ac63 Restructuring of poisson solver offset;
inclusion of stride for poisson solver
2024-03-28 15:57:04 +01:00
csendlinger 26f730ca29 Added potential solution in the empty domain
and usage of the resulting E-field for the
first events
2024-03-27 10:26:23 +01:00
csendlinger b54a5805d7 poisson solver boundary in .json 2024-03-27 10:12:09 +01:00
csendlinger 1b273c8e04 corrected sign error in electric field calculation 2024-03-26 14:39:55 +01:00
csendlinger 29f6087dd9 fixed error in poisson solver meta data output 2024-03-26 11:20:00 +01:00
csendlinger 180cb543fe Included meta data output for poisson solver;
minor formatting changes
2024-03-26 10:41:30 +01:00
csendlinger f0df16263b reduced size of potential and electric field grids 2024-03-26 10:02:23 +01:00
csendlinger 32144c5669 fixed units in Tp + T elastic scattering 2024-03-21 09:09:14 +01:00
csendlinger 53c40b7594 small correction in ionization (slower electron -> ejected) 2024-03-20 10:01:24 +01:00
csendlinger 2fccef7132 Minor changes in debug output, added information
to error messages
2024-03-15 15:49:40 +01:00
csendlinger 55c51f8434 Included redirection in geometry generator 2024-03-15 14:09:00 +01:00
csendlinger 1dbecc86ce fixed drawing iostropic vector 2024-03-13 13:16:47 +01:00
csendlinger 3bd64bee18 fixed guard against very low energies in drift mover 2024-03-13 13:15:12 +01:00
csendlinger be5ab2fbb0 included guard against very large (or inf) timesteps 2024-03-13 13:15:12 +01:00
csendlinger 18ace1d64b bugfix in zero gyro radius guard 2024-03-13 13:14:07 +01:00
csendlinger 2258cadee6 included TpT charge exchange to options for predefined funtions 2024-03-12 14:54:11 +01:00
csendlinger e962f6c461 Merge branch 'atomic_tritium' into poisson_solver_devel 2024-03-11 16:37:11 +01:00
csendlinger 25da47ce0c comments 2024-03-11 16:36:02 +01:00
csendlinger 9e3640210d Included possibility for electron as
target for recombination;
Added energy dependent deletions in recombination
2024-03-11 16:30:52 +01:00
csendlinger dc534dcd9d Included redirection in drift velocity generator 2024-03-07 10:56:01 +01:00
csendlinger 95461433c2 Changed CPU synchronization from averaging to
communicating changes
2024-03-05 17:22:05 +01:00
csendlinger 5d33ea11ff Fixed bug of max Interactions not getting logged,
Added functionality to cluster_formation entry,
added logging of recombination
2024-03-05 16:16:29 +01:00
csendlinger f1d9ccd089 Minor changes in comments 2024-03-05 09:31:36 +01:00
csendlinger e750913b26 small bugfix 2024-03-01 15:59:10 +01:00
csendlinger e83693857a (hopefully) fixed error in drawing decay positions 2024-02-28 11:19:57 +01:00
csendlinger c1e7ed9285 included atomic tritium as an implemented species 2024-02-27 17:47:02 +01:00
csendlinger 1bff4270e8 fixed spelling, included missing cross section 2024-02-27 17:46:14 +01:00
csendlinger 6900bef856 Added new cross section functions and data
for collisions with atomic tritium
2024-02-27 16:08:08 +01:00
csendlinger 95e5f8220e bugfix in cluster velocity 2024-02-27 16:04:14 +01:00
csendlinger 0471363834 formatting adjustments 2024-02-27 16:02:31 +01:00
csendlinger 22cfb97087 made some debug output more descriptive 2024-02-27 09:58:41 +01:00
csendlinger 28e9fcfe09 Fixed bug in drift mover 2024-02-22 15:29:31 +01:00
csendlinger 47e061de47 fixed spelling 2024-02-22 10:42:22 +01:00
csendlinger f5543e5364 reverted changes of deleted_particles
(back from double to long)
2024-02-06 15:53:19 +01:00
csendlinger 6456dab0c4 Revert "averaging instead of summation in syncronization;"
This reverts commit 4dd84ff5fc.
2024-02-06 15:44:30 +01:00
csendlinger 4dd84ff5fc averaging instead of summation in syncronization;
changed deleted_particles from long to double
2024-02-06 13:41:25 +01:00
csendlinger 331e887f04 Changed initializtion of potential-grid, included
a variable for minimum cycles before first poisson solution
2024-01-29 11:21:07 +01:00
csendlinger 3a802d8f8d Adjusted convergence criterion, included
json file with examplary use of the poisson solver
2024-01-26 15:45:02 +01:00
csendlinger ffc65f8ef9 Fixed errors s.t. code runs (on 1 proc) 2024-01-25 11:34:46 +01:00
csendlinger 9d0c7646b3 Included output for the potential calculated by
the poisson solver (however no metadata yet and not tested)
2024-01-24 14:44:43 +01:00
csendlinger 6e05d217a0 added call to the poisson solver in main loop 2024-01-24 10:34:05 +01:00
csendlinger 1f52d850d8 included generator files for the poisson solver
Adjusted binning in poisson_solver.* to fit with
the generator
2024-01-23 17:28:53 +01:00
csendlinger dde76c333f minor corrections, beginning of electric field calc 2024-01-22 16:58:51 +01:00
csendlinger 08e6c17db8 included poissonsolver in makefile 2024-01-19 15:08:54 +01:00
csendlinger 5f7f44b337 fixed errors, included missing memberfunctions 2024-01-19 15:07:02 +01:00