-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introducing Proton Synchrotron #132
Conversation
Hi @IYNBI, this is a PR, we use this type of thread to discuss new features that are being implemented. Cheers |
@jsitarek would you have time to take a look at @dimaniad6 PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for a late feedback.
I have two main comments:
- synchrotron-self-absorption was introduced also for proton synchrotron radiation, basically by substituting m_e for m_p. The usual formula that is used for SSA is approximate: the slope is derived for the strong absorption boardering case and then crossing of the two boardering cases is used to get the full formula. Maybe it is just my ignorance, but I do not remember ever seeing SSA being considered for protons. The proton-photon interactions have a much smaller cross-section than electron-photon, which should make it much less important process.
- a new equivalency was introduced that changes the frequency to energy conversion depending on the particle mass. It might be fine, but I am afraid that it might also produce problems when user calculates both electron and proton processes and wants to put them in the same plot
Thanks a lot for your work @dimaniad6! Some more things, technicals and theoreticals Technical comments:
Theoretical comments:
|
I'm pretty sure that in the previous post plot the SSA will not change anything at least > 10^10 Hz.
I think this was just a mistake on my side, sorry, it should be fine as it is .
as a quick test you could try to apply finer integration, but probably it will not help.
|
…esnt appear on the PR
…ithub/workflows/test.yml
Codecov Report
@@ Coverage Diff @@
## master #132 +/- ##
==========================================
- Coverage 97.02% 96.95% -0.07%
==========================================
Files 38 40 +2
Lines 3094 3256 +162
==========================================
+ Hits 3002 3157 +155
- Misses 92 99 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Thanks a lot @IlariaViale, @dimaniad6, this is a fantastic new feature of the code! Can one of you open an issue about the comparison with Cerruti, please? |
We introduce the hadronic process of proton synchrotron radiation, after the changes of Cosimo that added the possibility of a proton particle distribution. The code is basically the same as the electron synchrotron, but instead of the electron mass, the proton mass is used. To do that, we introduced the new mass variable, which can take two values, m_e and m_p. With this PR, we also added an additional distribution of a broken power law with an exponential cut-off. The corresponding pytests are included.