"select particles" function improvement

https://www.dacm-logiciels.fr/tracewin
Post Reply
Chinashliu
Skilled
Skilled
Posts: 100
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

"select particles" function improvement

Post by Chinashliu »

Hi Didier,

For beam distribution, right-clicking for "select particles" is a powerful function. I think some improvement could be added if possible.

1. Rescale the coordinate range to a required region, e.g. from 10 to 100, and "select particles", the selected region is a little larger than what we defined (about from 9.5 to 100+, zoom in to check the distribution edge). Maybe it could be fixed?

2. Invert selection?

3. Only rectangular area could be selected. Is it possible to add other shapes? Like circle, triangle or ellipse?

Kinds,
shliu
User avatar
FranceDidier
Administrator
Administrator
Posts: 982
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: "select particles" function improvement

Post by FranceDidier »

Dear shliu,

1: You're rigth, it's fixed
2: Invert selection option has been added
3: Clearly not possible

Regards,

Didier
Chinashliu
Skilled
Skilled
Posts: 100
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Re: "select particles" function improvement

Post by Chinashliu »

Didier,

Thank you!

About the ellipse selection, how about cutting it according to the edge defined in "Charts - Output - Options - Emittance ellipses"?
Ellipse.png
Ellipse.png (108.85 KiB) Viewed 3396 times
Kinds,
shliu
User avatar
FranceDidier
Administrator
Administrator
Posts: 982
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: "select particles" function improvement

Post by FranceDidier »

Hi,

Yes, very good idea and much easier to implement.
Added in the last release.

Regards,

Didier
Chinashliu
Skilled
Skilled
Posts: 100
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Re: "select particles" function improvement

Post by Chinashliu »

Thank you!

Maybe the command "Select particles outside ellipse" is also necessary?

For example, how to select particles inside ellipse both in xx' and yy' planes?

Kinds,
shliu
User avatar
FranceDidier
Administrator
Administrator
Posts: 982
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: "select particles" function improvement

Post by FranceDidier »

Dear Shliu,

I don't think so, because thank to you, now you can inverse selection

Regards,

Didier
Chinashliu
Skilled
Skilled
Posts: 100
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Re: "select particles" function improvement

Post by Chinashliu »

The initial distribution:
init.png
init.png (35.77 KiB) Viewed 3366 times
Select particles in xx' plane:
xxp_checked.png
xxp_checked.png (34.19 KiB) Viewed 3366 times
Then select particles in yyp' plane:
xxp_yyp_checked.png
xxp_yyp_checked.png (28.01 KiB) Viewed 3366 times
The selected particles are in xx' ellipse OR yy' ellipse. How to select particles in xx' ellipse AND yy' ellipse at the same time?
User avatar
FranceDidier
Administrator
Administrator
Posts: 982
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: "select particles" function improvement

Post by FranceDidier »

Dear Shliu,

First select particles in the XX' chart, then in the TYY' chart to have both in the same time!

Regards,

Didier
Chinashliu
Skilled
Skilled
Posts: 100
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Re: "select particles" function improvement

Post by Chinashliu »

That is the way I did in the last post. Could you please check it?

If I choose it in xx' and yy', some particles outside of the ellipse in xx' but inside the ellipse in yy' would be chosen, which is not my purpose.
User avatar
FranceDidier
Administrator
Administrator
Posts: 982
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: "select particles" function improvement

Post by FranceDidier »

Dear Shlui,

Sorry, I didn't see the "AND".
Ok, it's done in the last release

Regards,

Didier
Post Reply