Add proton synchrotron computation
This is a relatively simple modification that would require an additional argument to the Synchrotron class and setting the particle mass to either m_e or m_p in the gyroradius calculation.
Thank you very much for your reply, Zabalza. I modified it, and now I can use the proton synchrotron. Now I can enter the code "radiative.py" from my local path, but I don't know how to put it in the installed Naima path, and enter it from naima. Sorry for your time because of my limit knowledge of python.
Hello,
Thanks for the suggestion. I was looking into the Synchrotron class to modify it for proton synchrotron. Apart from modifying the gyroradius calculation, the Synchrotron class also uses _elec and _gam functions from the base class BaseElectron for _spectrum calculation. In this base class also the electron mass appears. So we have to modify the base electron class as well right ? Or just define mec2 = (m_p * c**2).cgs globally in the proton synchrotron code? Please forgive me if I am wrong.
Regards
@XiaonaS did proton synchrotron work for you by only modifying the Synchrotron class or did you touch the BaseElectron class as well? Your suggestions are much appreciated.
Thank you in advance.
Yes, I have changed all the m_e to m_p in "radiative.py " when I calculate the proton synchrotron.
Best
Thank you!
Regards
@XiaonaS
Hello,
Apart from the change of the mass, what is the "additional argument to the Synchrotron class" that @zblz mentions in the first message?
Kindly Regards