Page 2 of 3

Re: A bug in Tracewin? i need help

Posted: Fri 30 Sep 2022 10:49
by Didier
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

Re: Can't extract energy from .dst file

Posted: Tue 20 Feb 2024 14:03
by shliu
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

Re: Can't extract energy from .dst file

Posted: Tue 20 Feb 2024 17:59
by Didier
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

Re: Can't extract energy from .dst file

Posted: Tue 20 Feb 2024 21:14
by shliu
I attached the project file.
Test.rar
(29.86 MiB) Downloaded 22 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

Re: Can't extract energy from .dst file

Posted: Tue 20 Feb 2024 21:17
by shliu
And σ_φ=7.0231 deg in .dst, while it is 7.022882 deg in partran1.out file.

Re: Can't extract energy from .dst file

Posted: Wed 21 Feb 2024 11:32
by Didier
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 202 times

Re: Can't extract energy from .dst file

Posted: Wed 21 Feb 2024 11:43
by shliu
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

Re: Can't extract energy from .dst file

Posted: Wed 21 Feb 2024 12:57
by Didier
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

Re: Can't extract energy from .dst file

Posted: Wed 21 Feb 2024 13:39
by shliu
But σ_φ is different in my case:

σ_φ=7.0231 deg in .dst, while it is 7.022882 deg in partran1.out file.

Re: Can't extract energy from .dst file

Posted: Wed 21 Feb 2024 16:49
by Didier
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