Commit Graph

39 Commits

Author SHA1 Message Date
salman d694f8f49f Show density warning near input 2026-04-14 17:14:27 +02:00
salman 11dd8896fc Improve fallback density estimate 2026-04-14 17:05:15 +02:00
salman 04272a0fc5 Harden fallback density estimate 2026-04-14 17:01:12 +02:00
ext-mcfadd_r 65c13b3697 move the data tables back into the "library" file
modularizing the data/code complicates the web implementation
2025-01-28 11:29:58 -08:00
ext-mcfadd_r 391c25ef93 more stopping power coefficient options
This patch modularizes the code responsible for selecting the stopping power coefficients. Specifically, it:

- moves the data in `elemPars` to seperate JSON files in the `data/` directory. This makes it easier to modify the existing data or add new data sources. Note that this refactoring does not alter the previous functionality - the contents of each file are simply read and deep-merged into an initially empty `elemPars` object.
- adds the original Varelas-Biersack parameters from Anderson & Ziegler (1977).
- updates the "Other Parameters" tab in the GUI for easy toggling between the different stopping power coefficient data sources.
2024-08-12 16:24:42 -07:00
salman 8222bab5ea Fix bug in producing fiels to download on web. 2023-04-21 15:38:53 +02:00
salman b1f3ecd5b0 First working implementation of more than 5 elements. 2023-01-25 16:40:13 +01:00
salman 6cc2ccf353 Fix bug in plotting multiple rge files. 2023-01-25 10:37:14 +01:00
salman f690462446 Ground work for larger number of elements. 2023-01-24 15:43:08 +01:00
salman a584605c6d Final touches for chemical formula feature. 2023-01-23 15:26:51 +01:00
salman b391a15c92 Finished including chemical formula in input file. Bump version. 2023-01-22 10:52:48 +01:00
salman 1fa7f7a27a Include chemical formula in output files from the fortran code and optimize Javascript code to use a const object rather than multiple functions. 2023-01-21 12:51:14 +01:00
salman 837b3e858e Insert chem formula in input/output files of fortran code. 2023-01-20 16:01:58 +01:00
salman daa8be67b3 Prepare for RPMs 2023-01-17 13:49:36 +01:00
salman 74a2668a2e Add new staticly linked binary. 2023-01-17 12:47:51 +01:00
ext-mcfadd_r 109919a18c fix typo in file extension 2023-01-12 10:18:12 -04:00
salman 0bf513a9ad Bug fixes and final modifications. 2023-01-11 23:54:19 +01:00
salman 7fce9c5d12 Unified web and standalone versions done. 2023-01-11 22:40:43 +01:00
salman ac3e1ea0d6 First working version for both web and node.js 2023-01-11 21:53:42 +01:00
salman 274cd54133 More work towards unification of online and standalone versions. 2023-01-10 21:52:34 +01:00
salman 2836b178ba Simplify javascript code, towards unification of online and standalone versions. 2023-01-09 11:41:12 +01:00
salman c7d29781ee Add option to force the use of the old ICRU parameters. 2023-01-04 11:46:40 +01:00
salman db0389de8b Revert to standardarized elemnt naming to allow expanding to any projectile element. Give warning when density is estimated from weighted average to make sure the user is are aware. 2023-01-04 11:29:49 +01:00
ext-mcfadd_r 61084337c7 use updated stopping coefficients for hydrogen-like projectiles
- The stopping coefficients from ICRU Report 49 (published in 1993) are now
  fairly old, with many originating from the even older compilation by
  Anderson & Ziegler (published in 1977). For some target elements, little
  experimental data was available at the time of publication and the tabulated
  values are not necessarily reliable.
- This patch provides revised values for stopping coefficients in select
  elemental targets derived from Varelas-Biersack fits to stopping data
  compiled in the IAEA's database (https://www-nds.iaea.org/stopping/).
  For further details on their determination, see e.g.:
  https://doi.org/10.48550/arXiv.2212.11081
- When creating input files for trimspNL using the GUI, the default behaviour
  is changed to prefer using the revised coefficients. In instances where
  updated values are unavailable (e.g., due to lack of experimental data),
  fall back to using the coefficients from ICRU Report 49.
2023-01-03 12:35:26 -04:00
ext-mcfadd_r e65a0993ec improve handeling of layer densities
- when a layer's composition isn't found in the (internal) dictionary of
  compounds, estimate its density using a weighted average of elemental
  densities.
- this fixes the annoying behaviour of having an "undefined" density passed
  to the generated input file when the user forgets to update the density
  manually.
2022-12-29 22:02:15 -04:00
ext-mcfadd_r 62ae84382c fix "smart" matching of projectile & parameter defaults
- mismatch caused by changes in commit 29da5776af
2022-12-29 19:54:01 -04:00
ext-mcfadd_r 7fc4cb06e7 Merge branch 'master' of https://bitbucket.org/zaher-salman/trimsp 2022-12-29 18:48:15 -04:00
ext-mcfadd_r 29da5776af add better labelling of internals/externals
- use clearer notation for isotope-specific projectiles
- harmonize formatting of GUI labels (consistent naming, add missing units, fix typos, etc.)
- use more verbose/descriptive naming of the function/dictionary handelling the electronic stopping coefficients (for easier extension later).
2022-12-27 17:06:52 -04:00
salman 7ac303a99e Better handeling of working path 2022-12-13 13:29:37 +01:00
salman bea03ac0cf Adjust GUI to accept chemical formulae with floats instead of intigers 2022-09-21 17:11:00 +02:00
salman 630f3b742d Added He projectiles. 2022-09-16 20:06:12 +02:00
ext-mcfadd_r c2d8618bd2 add magnesium-31 as a projectile option
- use its AME2020 mass
2021-09-29 09:28:44 -07:00
ext-mcfadd_r b06395ed89 update the masses of lithium-8 and boron-12
- use results from the new atomic mass evaluation AME2020:
  https://doi.org/10.1088/1674-1137/abddb0
  https://doi.org/10.1088/1674-1137/abddaf
2021-09-29 09:18:52 -07:00
ext-mcfadd_r 1ccbda43b1 update the muon mass
- use the 2018 CODATA recommended value, see:
  https://doi.org/10.1103/RevModPhys.93.025010
  https://physics.nist.gov/cuu/Constants/index.html
2021-09-29 09:07:06 -07:00
Zaher Salman 27fbc380cb Check if trimspNL found. 2021-06-14 23:16:48 +02:00
Zaher Salman 47a135b1ee Use app path to determine where trimspNL binary is. 2021-06-14 22:46:07 +02:00
salman 6ec10e7df3 Take trimspNL from standard path 2021-06-08 16:07:25 +02:00
Zaher Salman 52bd6ec981 Fixed relative path for trimspNL binary. 2021-06-06 22:33:06 +02:00
Zaher Salman 7735c3d78d First upload 2021-06-06 18:34:29 +02:00