Twiss Parameter Output

https://www.dacm-logiciels.fr/tracewin
Post Reply
Germanyhendrik.haehnel
Apprentice
Apprentice
Posts: 23
Joined: Mon 30 Nov 2020 09:46
Country:
Germany (de)
Germany

Twiss Parameter Output

Post by Germanyhendrik.haehnel »

Dear Didier,
I want to sweep some parameters using TraceWin in batch mode. I would like to get the twiss parameters (rms) of the output beam for each run.
Is there an easy way to do this? If I didn't miss anything, this data is not included in the partran.out file?

I can find the rms emittance, rms width, rel. parameter, but not rms divergence (sigma x') ... so i can calculate Twiss-beta, but not gamma/alpha.

Just going from: x_max = √(εβ) and x'_max = √(εγ)

Best regards,
Hendrik
User avatar
FranceDidier
Administrator
Administrator
Posts: 872
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Twiss Parameter Output

Post by FranceDidier »

Dear Hendrik,

bet=sx*sx/(ex/bg);
alp=-sxxp/(ex/bg);

All these data are available in out file.

Regards,

Didier

From manual:

Code: Select all

Partran and Toutatis output

The final multiparticle results contain one line by element output, the first line being the input beam parameters. The format is like following.

	Element number
	Element position (m)
	Relativistic parameters: (γ-1)
	Centroid position: x(mm), y(mm), Phase(°), x’(mrad), y’(mrad), W(MeV)
	RMS_SIZE(x(mm), y(mm), Phase(deg))
	RMS (xx’(mm.mrad), yy’(mm), Phase.Energy(deg.MeV))
	Normalized rms emit: xx’(mm.mrad), yy’(mm.mrad), PW (Deg.MeV).
Germanyhendrik.haehnel
Apprentice
Apprentice
Posts: 23
Joined: Mon 30 Nov 2020 09:46
Country:
Germany (de)
Germany

Re: Twiss Parameter Output

Post by Germanyhendrik.haehnel »

Dear Didier,
thank you very much, I missed that definition.

It works 8-)

Best regards,
Hendrik
Post Reply