Energy overflow in large accelerators
pablocnvs opened this issue ยท 10 comments
When constructing large accelerators, such as the one in the example, particle that have more than 2.1TeV are not allowed. The message about particle energy being too low leads me to the assumption that the energy has exceded the 32-bit integer limit, and is thus a negative number.
I have basic knowlegde about the types of numbers that can be inserted into java and are suported by Minecraft, but i assume that it can be changed to a 64-bit integer, which, in the case of qmd energy, would mean an energy of about 10 ZeV, a value stupidly large.
In the image, the input is a proton from a 5MeV linear accelerator with a focus of 5.35
The accelerator itself works, as when i try with alpha particles coming from a target chamber with 5.125 MeV and a focus of 1.2
I have looked up at the code, with the most basic intuiton, and I see particle mean energy is treated as an 64-bit value, so I don't know what is the issue.
I have redone the math, and it turns out that the energy of the proton should actually be lower than the alpha particle, around 1.355 TeV
Sure, I send you the world. I will also send you the list of mods I have used, which I have reduced to make it easier for you to test. Though I have improved the accelerator
I have used the accelerator and it now works. I am going to modify it to the previus version to check another time.
I have no idea what I did, because i have tried to redo the accelerator using the screenshots I gave you, but i cannot seem to reproduce myself. With higher values, with the accelerator I provided you, or lower, with a downgrade I tried to do to, it works. I will try to reproduce the values and check again, but it is really weird.
I think I can close this issue, as I reproduced the exact same accelerator, but I keep failing at reproducing the bug. Though, to be honest, seeing how powerful can this accelerators get, unless higher energies are required than a few TeV, I might see fitting a restriction on the minimum energy the particles must have to enter the syncroton, like, a 1/500 the maximum energy. Though powering just one of these behemoths is a challenge in its own right.