You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current adaptive time step, Rank r computes step s and calculates (from beam properties at step s) the time step it will use to go from step s+nranks to s+nranks+1. At step s, rank r does not know what the physical time will be at step s+nranks (it will receive when starting step s+nranks), it just calculates the dt it will use then. An easy improvement would be to use the current Ez (at step s) to better estimate what will be the energy at the beginning of step s+nranks. A rough estimate would be min(uz-Ez*nranks*dt). This will not be too accurate because the time step is adaptive, so a better estimate would be obtained by also including adaptive time steps (just analytically calculate how much deceleration occurred after nranks/nt_per_betatron betatron periods or so). Note that, as we do a prediction of the momentum at s+nranks, we should also do a prediction of the position, to evaluate better the density and avoid artifacts, see #884. A soon-to-be-open PR will also store the min_uz (over beams and slices etc.). For now it will contain the min_uz at step s, but should also be updated to contain min_uz at step s+nranks.
The text was updated successfully, but these errors were encountered:
In the current adaptive time step, Rank
r
computes steps
and calculates (from beam properties at steps
) the time step it will use to go from steps+nranks
tos+nranks+1
. At steps
, rankr
does not know what the physical time will be at steps+nranks
(it will receive when starting steps+nranks
), it just calculates thedt
it will use then. An easy improvement would be to use the currentEz
(at steps
) to better estimate what will be the energy at the beginning of steps+nranks
. A rough estimate would bemin(uz-Ez*nranks*dt)
. This will not be too accurate because the time step is adaptive, so a better estimate would be obtained by also including adaptive time steps (just analytically calculate how much deceleration occurred afternranks/nt_per_betatron
betatron periods or so). Note that, as we do a prediction of the momentum ats+nranks
, we should also do a prediction of the position, to evaluate better the density and avoid artifacts, see #884. A soon-to-be-open PR will also store themin_uz
(over beams and slices etc.). For now it will contain themin_uz
at steps
, but should also be updated to containmin_uz
at steps+nranks
.The text was updated successfully, but these errors were encountered: