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
Twiss Parameter Output
-
- Apprentice
- Posts: 23
- Joined: Mon 30 Nov 2020 09:46
- Country:
Germany (de)
Re: Twiss Parameter Output
Dear Hendrik,
bet=sx*sx/(ex/bg);
alp=-sxxp/(ex/bg);
All these data are available in out file.
Regards,
Didier
From manual:
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).
-
- Apprentice
- Posts: 23
- Joined: Mon 30 Nov 2020 09:46
- Country:
Germany (de)
Re: Twiss Parameter Output
Dear Didier,
thank you very much, I missed that definition.
It works
Best regards,
Hendrik
thank you very much, I missed that definition.
It works
Best regards,
Hendrik