Page 1 of 1

Field Map Cavities Errors on Ex; Ey; Ez

Posted: Thu 30 Jul 2026 16:02
by comunian
Dear Didier,
In TraceWin, it is possible to include errors in the cavity-field, from a field map, amplitude (E), expressed as a percentage.
However, in superconducting cavities, effects such as thermal deformation may also modify the relative contributions
of the electric-field components (E_x;E_y;E_z), without simply changing the overall field amplitude.
Is it possible to include this effect in the error study by introducing independent relative weights for the three components, for example
E=a_1*E_x;a_2*E_y;a_3*E_z,
with a relative normalization such as
a_1^2+a_2^2+a_3^2=1,
while retaining the existing global field-amplitude normalization through (E_0)?
In other words, the global amplitude error would still be controlled by (E_0), as it is currently,
while additional errors would modify the relative distribution among E_x; E_y; and E_z.
Best Regards,
Michele Comunian

Re: Field Map Cavities Errors on Ex; Ey; Ez

Posted: Thu 30 Jul 2026 16:37
by Didier
Dear Michele,

At present, the error Ez is defined as E = Eo(1 + Err). Err is defined as a random value between [-Err; +Err]. I could envisage adding two parameters, Errx and Erry, to the error definition commands, but how do you think the random selection should be carried out?

Regards,

Didier

Re: Field Map Cavities Errors on Ex; Ey; Ez

Posted: Fri 31 Jul 2026 13:36
by comunian
Dear Didier,
I understand that introducing independent relative errors on Ex, Ey, and Ez may be difficult.
A simpler possibility could be to introduce a random angle theta that modifies the transverse field components as follows:
Ex' = Ex cos(theta) - Ey sin(theta)
Ey' = Ex sin(theta) + Ey cos(theta)
Ez' = Ez
The applied field would then be:
Eapplied = (1 + Err) (Ex', Ey', Ez')
This transformation preserves the transverse field magnitude:
Ex'^2 + Ey'^2 = Ex^2 + Ey^2
and therefore also preserves the total field magnitude before applying the existing global amplitude error.
The random angle could be selected in the interval:
-theta_max <= theta <= theta_max
Would this be a reasonable and sufficiently simple implementation?
You need only to add a new error parameter theta.
Best regards,
Michele

Re: Field Map Cavities Errors on Ex; Ey; Ez

Posted: Fri 31 Jul 2026 14:34
by Didier
Dear Michele,

I think it should be possible, provided I have a look at the current code structure. It might involve more complex development work than expected.
That said, I promise to look into it when I get back, because I’m on holiday from now until early September, so I’m afraid, but sorry, I won’t be able to do anything before then.

Regards,

Didier

Re: Field Map Cavities Errors on Ex; Ey; Ez

Posted: Mon 31 Aug 2026 14:08
by Didier
Dear Michele,

Ok I did your proposal, have a look on manual about "ERROT_CAV_XXX" syntax and let me know

Regards,

Didier

Re: Field Map Cavities Errors on Ex; Ey; Ez

Posted: Tue 1 Sep 2026 11:56
by comunian
Dear Didier,
I suppose that theta input error parameter is express as radiant. Is this correct ?
Best Regards,
Michele Comunian

Re: Field Map Cavities Errors on Ex; Ey; Ez

Posted: Tue 1 Sep 2026 12:01
by comunian
Dear Didier,
I've observed that "theta" is not reported on the errors setup for the Cavity.
Best Regards,
Michele Comunian

Re: Field Map Cavities Errors on Ex; Ey; Ez

Posted: Tue 1 Sep 2026 15:42
by Didier
Dear Michele,

It’s degrees, and no, I haven’t planned to add theta in the ‘Error setup’, it’s not an additionnal error, just a different way of applying the field amplitude error.

Regards,

Didier