QMD

QMD

109k Downloads

Energy overflow in large accelerators

pablocnvs opened this issue ยท 10 comments

commented

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.

2020-05-03_10 33 45

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

2020-05-03_11 02 48

commented

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.

commented

Can you show a picture of the set up and of the linear accelerators GUI?

commented

Here are the screenshots for the entire set-up:

The alpha particle source (collision of p with Be)

2020-05-04_14 02 25
2020-05-04_14 02 27
2020-05-04_14 02 39
2020-05-04_14 02 41
2020-05-04_14 02 44
2020-05-04_14 02 56
2020-05-04_14 02 58
2020-05-04_14 03 10
2020-05-04_14 04 34

The proton source

2020-05-04_14 04 08
2020-05-04_14 04 10
2020-05-04_14 04 41

The set-up as a whole

2020-05-04_14 05 35

I have included all the GUIs, as well as the information about each particle at each stage

commented

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

commented

Hmmm weird. Can I have the world to do some testing?

commented

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

NC overhaul test.zip
Mod List.txt

commented

I have used the accelerator and it now works. I am going to modify it to the previus version to check another time.

commented

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.

commented

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.

commented

Yeah I was thinking of having the minimum energy be proportional to its energy. Haven't done it for some reasons might inn the future. Well I suppose I close this issue for now.