opal AT lists.psi.ch
Subject: The OPAL Discussion Forum
List archive
- From: Malek Haj Tahar <malek AT transmutex.com>
- To: Daniel Winklehner <winklehn AT mit.edu>, Snuverink Jochem <jochem.snuverink AT psi.ch>
- Cc: "Opal AT lists.psi.ch" <Opal AT lists.psi.ch>
- Subject: Re: [Opal] Transit time factor calculation in OPAL
- Date: Thu, 9 Mar 2023 11:49:32 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=transmutex.com; dmarc=pass action=none header.from=transmutex.com; dkim=pass header.d=transmutex.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=l21u0PCP6UqIDRRV9Xh63DtTsybRiaZESAWCkMmVEuM=; b=WOG0MsQ5MeZn/37Xo7Dcv0KWJcAc1md9q4ofHDhdkcNY/51DI30SiFOaGI7PD3r1n203K69WEtc1BLgrffYqRYaVPG2F6qpyscOz1Sp7CEo3GWsjSXs5yrxOA+iZclpIG26nx0YyL/SrVjWJhbm4HEvJhst2AoGSjy3df2iBxYzQkFawvI7B2YvXoB52pRV3D5tJSd7rpAOGt8F0APDnNiNIIcto1K3q4GEEWixhBCuxAm/GCshGh9GjnngPMs98k+6Ac0nC0OHq93c1R9tQIfjzTHO8WdH82L9YZ7AAnDk906ngjHOGHGkN++0emy3mqSWineHIq2K77TvGtGEbsA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a7VA6nsNkky93z2HwOa9U11ZMBKJLewMMagwmXB/6/10aQEPkSx59DPp1RAca0FSX9aVTQbjsWdkaAuMhntu/3KI0kE0f48idWJS1C0S7O2lHI6GESxVI49/XQZAPEEZ0WS7Bkb54tACYaz6P/sstgRplbQcWQtvX5IpXeUPgI6z/i2MbSe6YLtVB7l2H9UMVlmBDV6MV7JFjurcoAsKq2z29kO7M+qPZ/TlGUsUs+bQuWdjhyQfNxwXACOdlahADX12lWZ5wcb3CeR7F506c+hIQt4bKCNEJBF2TewCUKHKkw5kyr/+YhUiXDD7jH11a1J6n/YCW73+BuY5v+aXPQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=transmutex.com;
- Msip_labels:
Sent: 08 March 2023 17:34
To: Snuverink Jochem <jochem.snuverink AT psi.ch>; Malek Haj Tahar <malek AT transmutex.com>
Cc: opal AT lists.psi.ch <opal AT lists.psi.ch>
Subject: RE: Transit time factor calculation in OPAL
Hi Malek,
I know you know this, but if anyone else follows the thread: The transit time correction or transit time factor (TTF) is a modifying factor to the energy gain in the idealized cavity that depends on gap length, frequency, and particle velocity like this : TTF = sin(omega*d/2*v)/( omega*d/2*v). It stems from the voltage changing while the particle traverses the finite-length gap. Energy gain is calculated as q*V*TTF*cos(phi) where phi is the cavity phase.
You might be looking for the following snippet of code in /src/Classic/AbsBeamline/RFCavity.cpp:
if (gapwidth_m > 0.0) {
double transit_factor = 0.5 * frequency * gapwidth_m * Units::mm2m / (Physics::c * beta);
Ufactor = std::sin(transit_factor) / transit_factor;
}
Also here: https://gitlab.psi.ch/OPAL/src/-/blob/master/src/Classic/AbsBeamline/RFCavity.cpp#L363
Cheers,
Daniel
From: opal-request AT lists.psi.ch <opal-request AT lists.psi.ch>
On Behalf Of Snuverink Jochem
Sent: Wednesday, March 8, 2023 11:09 AM
To: Malek Haj Tahar <malek AT transmutex.com>
Cc: opal AT lists.psi.ch
Subject: AW: [Opal] Transit time factor calculation in OPAL
Dear Malek
Apologies for the late answer.
The correction is done when a particle step crosses an RF cavity. In this case the step is split in two, one with the old particle energy up to the cavity, and one with a step after the cavity with the new particle energy. I believe this is what is meant with the transit time correction.
To see the code, this is implemented twice (in the same way) at:
and
Best wishes,
Jochem
Von:
opal-request AT lists.psi.ch <opal-request AT lists.psi.ch> im Auftrag von Malek Haj Tahar <malek AT transmutex.com>
Gesendet: Dienstag, 21. Februar 2023 11:35
An: Opal AT lists.psi.ch <Opal AT lists.psi.ch>
Betreff: [Opal] Transit time factor calculation in OPAL
Dear OPAL developers,
Looking at the RFcavity model implementation in OPAL, one could read in the manual that
"The RF cavities are treated as straight lines with infinitely narrow gaps and the electric field is a �δ function plus a transit time correction."
Could you please let me know where to find more info regarding how OPAL computes the transit time correction? Is this an analytical model available somewhere?
Many thanks for your time and support!
Best regards,
Malek
------------------------
Dr. Malek Haj Tahar
Computational physicist
Transmutex SA
Mobile: +41 784 202 022
Chemin de Blandonnet 8
1214 Genève (Vernier)
-
AW: [Opal] Transit time factor calculation in OPAL,
Snuverink Jochem, 03/08/2023
-
RE: [Opal] Transit time factor calculation in OPAL,
Daniel Winklehner, 03/08/2023
- Re: [Opal] Transit time factor calculation in OPAL, Malek Haj Tahar, 03/09/2023
-
RE: [Opal] Transit time factor calculation in OPAL,
Daniel Winklehner, 03/08/2023
Archive powered by MHonArc 2.6.24.