[Go to BBS]
All articles in a thread
SubjectSAD Update. V1.0.10.4.16a TrackParticles, WriteBeamLine, PrintBeamLine, etc/
Article No931
Date: 2011/07/09(Sat) 05:06:21
ContributorK. Oide
Dear Users,

1. TrackParticles is modified to perform multiple turns of tracking:

TrackParticles[beam, destination-component, nth, nturn]

returns a beam after the tracking at the entrance of the destination-
component. The destination can be specified by the name of the component
or by a number obtained by LINE["POSITION", component].
If destination is omitted, the end of the line is assumed.

The argument nturn is the number of turns to be tracked. The default is 1.

The argument nth is a parameter to be passed to tracking to indicate it is in
the n-th turn. The number is increased by 1 when it passes the end of beam line.
If nth is omitted, 1 is assumed.

The variable beam and also the result of TrackParticles are lists of the
form

{location, coordinates}

where location is the position-number of the starting point. If location is
same as or in the downstream of destination, the tracking is done by
folding across the beginning of the beam line. The coordinates are in a list of {7, np}
form, where np is the number of particles. The first 6 elements of
coordinates specifies

{x, px/p0, y, py/p0, z, dp/p0}

in this order. The {7, i} is the flag which is True(==1) when the
particle is alive, and False(==0) when lost.

When a flag RADLIGHT is on, TrackParticles returns the trajectories of
particles which are used to calculate the radiation fields. See
RadiationField and RadiationSpectrum.

When PHOTONS is ON (default is OFF), TrackParticles generates a list of all
photons radiated through the tracking. The list is assigned to a symbol PhotonList.

See also:
components LINE PHOTONS PhotonList RADLIGHT TouschekLifetime
WakeFunction

2. WriteBeamLine and PrintBeamLine uses ExtrackBeamLine[] if the beam line is omitted:

SubjectRe: SAD Update. V1.0.10.4.16a TrackParticles, WriteBeamLine, PrintBeamLine, etc/
Article No932
Date: 2011/07/09(Sat) 14:38:42
ContributorAkio Morita
> 1. TrackParticles is modified to perform multiple turns of tracking:
>
> TrackParticles[beam, destination-component, nth, nturn]
>
> returns a beam after the tracking at the entrance of the destination-
> component. The destination can be specified by the name of the component
> or by a number obtained by LINE["POSITION", component].
> If destination is omitted, the end of the line is assumed.
>
> The argument nturn is the number of turns to be tracked. The default is 1.
>
> The argument nth is a parameter to be passed to tracking to indicate it is in
> the n-th turn. The number is increased by 1 when it passes the end of beam line.
> If nth is omitted, 1 is assumed.
>
3rd/4th-argumentですが、Range[]やDo[], Table[]構文を考えると
nBegin, nEndの組合せの方がよくありませんか?

SubjectRe^2: SAD Update. V1.0.10.4.16a TrackParticles, WriteBeamLine, PrintBeamLine, etc/
Article No933
Date: 2011/07/12(Tue) 10:44:32
ContributorK. Oide
> > 1. TrackParticles is modified to perform multiple turns of tracking:
> >
> > TrackParticles[beam, destination-component, nth, nturn]
> >
> > returns a beam after the tracking at the entrance of the destination-
> > component. The destination can be specified by the name of the component
> > or by a number obtained by LINE["POSITION", component].
> > If destination is omitted, the end of the line is assumed.
> >
> > The argument nturn is the number of turns to be tracked. The default is 1.
> >
> > The argument nth is a parameter to be passed to tracking to indicate it is in
> > the n-th turn. The number is increased by 1 when it passes the end of beam line.
> > If nth is omitted, 1 is assumed.
> >
> 3rd/4th-argumentですが、Range[]やDo[], Table[]構文を考えると
> nBegin, nEndの組合せの方がよくありませんか?

森田様、

 そうかもしれません。たぶん2時間以内に直します。

  生出

SubjectRe: SAD Update. V1.0.10.4.16a10 TrackParticles, WriteBeamLine, PrintBeamLine, etc/
Article No934
Date: 2011/07/12(Tue) 10:58:16
ContributorK. Oide
Dear Users,

1. The 3rd and 4th arguments of TrackParticles are modified as:


TrackParticles[beam, destination-component, nbegin, nend]

returns a beam after the tracking at the entrance of the destination-
component. The destination can be specified by the name of the component
or by a number obtained by LINE["POSITION", component].
If destination is omitted, the end of the line is assumed.

The argument nbegin is the initial turn number to be passed to tracking to indicate
it is in the n-th turn. The number is increased by 1 when it passes the end of beam line.
If nbegin is omitted, 1 is assumed.

The argument nend is the last turn number. The default is nbegin.

The variable beam and also the result of TrackParticles are lists of the
form

{location, coordinates}

where location is the position-number of the starting point. If location is
same as or in the downstream of destination, the tracking is done by
folding across the beginning of the beam line. The coordinates are in a list of {7, np}
form, where np is the number of particles. The first 6 elements of
coordinates specifies

{x, px/p0, y, py/p0, z, dp/p0}

in this order. The {7, i} is the flag which is True(==1) when the
particle is alive, and False(==0) when lost.

When a flag RADLIGHT is on, TrackParticles returns the trajectories of
particles which are used to calculate the radiation fields. See
RadiationField and RadiationSpectrum.

When PHOTONS is ON (default is OFF), TrackParticles generates a list of all
photons radiated through the tracking. The list is assigned to a symbol PhotonList.

See also:
components LINE PHOTONS PhotonList RADLIGHT TouschekLifetime
WakeFunction

SubjectRe: SAD Update. V1.0.10.4.16a20 TrackParticles, WriteBeamLine, PrintBeamLine, etc/
Article No935
Date: 2011/07/13(Wed) 11:16:42
ContributorK. Oide
Dear Users,

1. A new function SurvivedParticles is introduced:

SurvivedParticeles[x]

returns the list of 6 coordinates and the flag of the survivied particles in x.
The form of x is {x, px/p0, y, py/p0, z, dp/p0, flag}, where each is a list of
length of the number of particlse. If all particles are lost, it is a list of
seven null lists.