Page 1 of 1

Twiss Parameter Output

Posted: Fri 3 Jun 2022 16:39
by hendrik.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

Re: Twiss Parameter Output

Posted: Fri 3 Jun 2022 18:41
by Didier
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).

Re: Twiss Parameter Output

Posted: Fri 3 Jun 2022 18:49
by hendrik.haehnel
Dear Didier,
thank you very much, I missed that definition.

It works 8-)

Best regards,
Hendrik