Can't extract energy from .dst file  [SOLVED]

https://www.dacm-logiciels.fr/tracewin
User avatar
FranceDidier
Administrator
Administrator
Posts: 852
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: A bug in Tracewin? i need help

Post by FranceDidier »

Dear Lihaipeng,

I don't observe these differences, but I don't have your project files, so I need them to understand what you are doing. So, please, attach your project files (*.ini,*.dat) and your part_dtl1.dst file here, so that I am able to put myself in the same conditions as you.

Regards,

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

Re: Can't extract energy from .dst file

Post by Chinashliu »

Didier,

I noticed the same promlem as Lihaipeng described:

"Normalized emittance is really different. In my previous example, Emit Xx is 0.3730797 in partran1.out, but in the dst file,the Emit Xx is 0.3724123".

The emittance is different in .dst file and partran1.out. The difference is quite small.

V2.23.3.4 on Win11.

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

Re: Can't extract energy from .dst file

Post by FranceDidier »

Dear Shliu,

Same answer :

I don't observe these differences, but I don't have your project files, so I need them to understand what you are doing. So, please, attach your project files (*.ini,*.dat) and your part_dtl1.dst file here, so that I am able to put myself in the same conditions as you.

Regards,

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

Re: Can't extract energy from .dst file

Post by Chinashliu »

I attached the project file.
Test.rar
(29.86 MiB) Downloaded 5 times
At the exit of the lattice, Norm. RMS emit_Φ_W is 0.0379 π.deg.MeV in .dst file, while it is 0.03785602 in partran1.out.

Kinds,
shliu
Chinashliu
Competent
Competent
Posts: 87
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Re: Can't extract energy from .dst file

Post by Chinashliu »

And σ_φ=7.0231 deg in .dst, while it is 7.022882 deg in partran1.out file.
User avatar
FranceDidier
Administrator
Administrator
Posts: 852
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Can't extract energy from .dst file

Post by FranceDidier »

Dear shliu,

Using your example, I didn't get exactly your values!
But on my side, they're the same!
(see picture below)

Regards,

Didier
ep.png
ep.png (499.97 KiB) Viewed 84 times
Chinashliu
Competent
Competent
Posts: 87
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Re: Can't extract energy from .dst file

Post by Chinashliu »

Dear Didier,

I end it at z=0.1 m before the dipole. After the dipole, it would be different:

DRIFT 0 50
DRIFT 100 50

EDGE 0 500 100 1e-009 1e-009 50 0
BEND 45 500 0 50 0
EDGE 0 500 100 1e-009 1e-009 50 0

DRIFT 200 50
end


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

Re: Can't extract energy from .dst file

Post by FranceDidier »

Ok, you send me the wrong dat file.
Now I got like you.
Norm. RMS emit_Φ_W is 0.0379 π.deg.MeV in .dst file, while it is 0.03785602 in partran1.out

But in the end it's the same thing, it's just that in dst the format of the number displayed is limited to 3 digits after the decimal point, it is jsut rounded up!

Regards,

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

Re: Can't extract energy from .dst file

Post by Chinashliu »

But σ_φ is different in my case:

σ_φ=7.0231 deg in .dst, while it is 7.022882 deg in partran1.out file.
User avatar
FranceDidier
Administrator
Administrator
Posts: 852
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Can't extract energy from .dst file

Post by FranceDidier »

Dear shliu,

Endeed, there is a difference which can be explained by a non-linear conversion present in the distribution display, which is an option activated by default and hidden.
You can now deactivate it in the page "Main" -> "Simulation options" -> "Non linear conversion"

You need to upgrade your code to access it

Regards,

Didier
Post Reply