Problem with generating betatron radiation and followed by visualization (analysis and plotting) of the radiation spectra #4724
Replies: 1 comment 1 reply
-
Thanks for the question. In order to obtain betatron radiation, you could try to use the quantum synchrotron module in the WarpX simulation (see |
Beta Was this translation helpful? Give feedback.
-
I am trying to calculate betatron radiation produced by an electron beam and further to plot the radiation spectra for visualization. But the plot in the end looks weird. I tried the both option as Intensity Vs energy and frequency.
Instead of pasting the code here directly, I attached the two files. The ".py" extension won't be possible to attach, hence I made them as a txt file. Please pardon me for that.
pywarpx_e_test_BR.txt
betatronspectra_plotting.txt
The 1st attachment (i.e. pywarpx_e_test_BR.txt) is the pywarpx code(below) that I am using to generate betatron radiation.
Then, the 2nd attachment (i.e. betatronspectra_plotting.txt) is regarding the analysis and visualization of the spectra.
In the end, I need to use the betatron radiation dataset to predict beam spot size with the ML model. But, the plotted betatron radiation spectra (I tried both in terms of energy and frequency) looks weird. Can anyone please help me pointing out the mistakes I might be doing? or help me modifying the code if necessary? I'm definitely missing something!
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions