Lost particles viewed as red saved in dst  [SOLVED]

https://www.dacm-logiciels.fr/tracewin
Post Reply
FranceEmmanuel
Initiated
Initiated
Posts: 48
Joined: Thu 22 Sep 2022 08:45
Country:
France (fr)
France

Lost particles viewed as red saved in dst

Post by FranceEmmanuel »

Dear Didier,

In the plot of the distribution hereafter, there are lost particles viewed in red color on the border of the distribution.
Particules_rouge_perdues_visibles_ds_dst.png
Particules_rouge_perdues_visibles_ds_dst.png (6.92 KiB) Viewed 75 times
When saving the checked particles in a dst file, these lost particles are also saved in the file. That leads to errors when calculating the beam current and power left from the dst file.

Is there any way to avoid saving these lost particles ?

Thank you in advance for any help.

Emmanuel
User avatar
FranceDidier
Administrator
Administrator
Posts: 1167
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Lost particles viewed as red saved in dst

Post by FranceDidier »

Dear Emmanuel,

I think that adding a drift of zero length after the element causing the losses allows you to obtain a dst without beam losses. No ?

Regards,

Didier
FranceEmmanuel
Initiated
Initiated
Posts: 48
Joined: Thu 22 Sep 2022 08:45
Country:
France (fr)
France

Re: Lost particles viewed as red saved in dst

Post by FranceEmmanuel »

Dear Didier,

Following your advice, the particles lost seem to be really lost, but the number of particles in the dst is still higher than the one given by TraceWin by 1.5 %.

Then the result is closer to what it should be but a significant error remains.

Regards.

Emmanuel
User avatar
FranceDidier
Administrator
Administrator
Posts: 1167
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Lost particles viewed as red saved in dst

Post by FranceDidier »

Dear Emmanuel,

I don't understand this 1.5% difference. I don't see this kind of thing, and I would need an example that I could reproduce in order to understand.

Regards,

Didier
FranceEmmanuel
Initiated
Initiated
Posts: 48
Joined: Thu 22 Sep 2022 08:45
Country:
France (fr)
France

Re: Lost particles viewed as red saved in dst  [SOLVED]

Post by FranceEmmanuel »

Dear Didier,

Last Friday, I have updated TraceWin. Since then, the only discrepancy (about 0,2%) I noticed came from a filtering of particles while reading the file dst.

I consider the update solved the issue.

Emmanuel
Post Reply