Replies: 3 comments 3 replies
-
There are a few differences. The binning diag will count particles that are already there, while the screen will only count the passing ones. The screen diag might count several times particles passing and coming back. And you should not have a "x" axis for screen, I think. |
Beta Was this translation helpful? Give feedback.
-
Is it just a problem of units? What if you scale it by some factor? |
Beta Was this translation helpful? Give feedback.
-
Are there no particles beyond the limit already there from the start? Are there periodic boundary conditions? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have some doubts regarding the Screen diagnostic. As far I understand, it counts all particle crossing in the 'direction' the surface of the screen identified by point and the normal direction to point. Then these two diagnostics:
#1
DiagScreen(
shape = "plane",
point = [Lsim[0]/2, Lsim[1]/2],
vector = [1., 0.],
direction = "forward",
deposited_quantity = "weight",
species = ["proton"],
axes = [ ["x", Lsim[0]/2, Lsim[0], 1], # I know this is redundant but I use it for normalization purposes, i.e.
["ekin", 0.0, 200., 1000] # to be equal to the Binning norm.
],
every = 100
)
#2
DiagParticleBinning(
deposited_quantity = "weight",
every = 100,
species = ["proton"],
axes = [ ["x", Lsim[0]/2, Lsim[0], 1],
["ekin", 0.0, 200., 1000]]
)
should give the same spectrum, but that is not the case (yellow spectrum vs blue one(s)). What I am missing here? Are only the particles with strictly px!=0 and py==0 counted maybe?
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions