Skip to Content.
Sympa Menu

opal - RE: [Opal] Transit time factor calculation in OPAL

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

RE: [Opal] Transit time factor calculation in OPAL


Chronological Thread  
  • From: Daniel Winklehner <winklehn AT mit.edu>
  • 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: [Opal] Transit time factor calculation in OPAL
  • Date: Wed, 8 Mar 2023 16:34:26 +0000
  • Accept-language: en-US
  • Authentication-results: mc2.ethz.ch; iprev=pass (outgoing-exchange-1.mit.edu) smtp.remote-ip=18.9.28.15; spf=pass smtp.mailfrom=mit.edu; dkim=pass header.d=mit.edu header.s=outgoing header.a=rsa-sha256; dmarc=pass header.from=mit.edu

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)

 




Archive powered by MHonArc 2.6.24.

Top of Page