fsciortino / Aurora

Modern toolbox for impurity transport, neutrals and radiation modeling in magnetically-confined plasmas
https://aurora-fusion.readthedocs.io
MIT License
41 stars 24 forks source link

Replace numerical integral by analytical in bremsstrahlung formula #81

Closed odstrcilt closed 1 year ago

odstrcilt commented 1 year ago

Original numerical integral was very slow, and it took several minutes to evaluate for larger Aurora simulations. SOmetimes it even crashed due to large memory requirements.
Replacing it with a trivial analytical solution made it several orders of magnitude faster.