Skip to Content.
Sympa Menu

opal - Re: [Opal] OPAL treatment of travelling wave structures

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] OPAL treatment of travelling wave structures


Chronological Thread  
  • From: "Snuverink Jochem (PSI)" <jochem.snuverink AT psi.ch>
  • To: "Lucas Thomas Geoffrey (PSI)" <thomas.lucas AT psi.ch>
  • Cc: "opal AT lists.psi.ch" <Opal AT lists.psi.ch>
  • Subject: Re: [Opal] OPAL treatment of travelling wave structures
  • Date: Thu, 22 Sep 2022 13:28:09 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=psi.ch; dmarc=pass action=none header.from=psi.ch; dkim=pass header.d=psi.ch; 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=DxOGZYdd/0zuJBwWMJ3eBhHiHEACby2xVroowZxXhTc=; b=f34ZvQ0TCFKa2VgibyLjDY0ZfRfGqjoXpcSYCLSykB3S37cvy7BJIKe+IlokGJsSOYP+x5JimasBOTkCg+bgsUxhtpk/KJ8FwlZBkCnpEVNe5vsYD7v/AeLdzF+K/mMglCyDTHGazRodrAs+P21ol9L/opVROV+7ycfAwxzE4/RxImKn6/1uWgZrQZtJ5bfelAoyU7jZ9Y6tFm4UbH53nT852qUc7zSnEZw4OmEriLMb7FH+HgxSD7vNHv0xM557kEmvBC5xA75+2DW8OsWrLIHrq1YQld5/kVU5gQs2G/8Li4UwUj69Tgs5+azB2r5lc49RF4CKC8hfVrepsAFGzg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TYTzGD0Ozv947MJCoPjgeFsmh8s+xhoYqvFL3WHIXGC9aBLA0oqzInFeZAegqGtrboEih8aIlfhQUjM/fYPr/auw6y3k2WW1Qsb/0N+cYz4978+vpz1zHaN1Hf68oZppPWrj/yHmvG8TrijaMrm9weUtZDUTZcaqeFnXefEMPxNH3Me6OorWtFpg6GnfU/KMmYvbQiOouyH242fZDFqo5N6vTE3KIJ8RywpzCFba+mSx44DeHgfoUP3RmdtTLtiBeHyrlZyen3Rr/2gdczzXJ4cgEueE5HbZVPm9qS7bVk9ttKMO1ximEpVMf/wvnb06JHjwRGFK0M31uxpnXDQVPA==
  • Authentication-results: mc2.ethz.ch; iprev=pass (psi-seppmail1.ethz.ch) smtp.remote-ip=129.132.93.141; spf=pass smtp.mailfrom=psi.ch; dkim=pass header.d=dpsich.onmicrosoft.com header.s=selector1-dpsich-onmicrosoft-com header.a=rsa-sha256; dmarc=skipped
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=psi.ch;
  • Msip_labels:

Hi Tom,

I don't know if someone already answered you. I am not an expert at all on the travelling wave element, but you can find the code implementation here:
https://gitlab.psi.ch/OPAL/src/-/blob/master/src/Classic/AbsBeamline/TravelingWave.cpp

Hope that helps,
Cheers, Jochem

From: opal-request AT lists.psi.ch <opal-request AT lists.psi.ch> on behalf of Lucas Thomas Geoffrey (PSI) <thomas.lucas AT psi.ch>
Sent: Tuesday, September 20, 2022 12:24 PM
To: Adelmann Andreas (PSI) <andreas.adelmann AT psi.ch>
Cc: opal AT lists.psi.ch <Opal AT lists.psi.ch>
Subject: RE: [Opal] OPAL treatment of travelling wave structures
 

Hi Andy,

 

I’m trying to completely replicate and therefore benchmark my injector simulations against the results of you/Gardar’s and also those performed in ASTRA so I don’t have an OPAL file working example (which is what I think you meant). However, here is the reconstructed 1D Ez fieldmap (blue real and red imaginary) I made using the maths from the OPAL manual with the idea that the input/output couplers are treated as standing waves and the inner cells are treated as travelling wave (both pretty valid assumptions however the actual place where they become TW from SW is more complicated as it is a gradual transition).


 

You can see the sharp edge on the fieldmap around the coupler-cell transitions. These will be of course smoothed internally in the code (well I assume). Just asking about what style of smoothing you use?

 

The reason this is a new issue is that I previously used the full 1D fieldmap from the ANSYS calculation of the TW structures however I wasn’t able to completely reconstruct your/the ASTRA results with this. I got very similar results but not as close as other benchmark studies therefore I thought to use this TWS approximation which is performed in your code as well as ASTRA rather than using the full 1D fieldmap.

Cheers,

Tom

 

__________________________________________
Paul Scherrer Institut
Dr. Thomas Geoffrey Lucas
WMHA/B17
Forschungsstrasse 111
5232 Villigen PSI
Schweiz

Telefon: +41 56 310 50 81
E-Mail: thomas.lucas AT psi.ch

 

From: Adelmann Andreas (PSI) <andreas.adelmann AT psi.ch>
Sent: Dienstag, 20. September 2022 12:06
To: Lucas Thomas Geoffrey (PSI) <thomas.lucas AT psi.ch>
Cc: opal AT lists.psi.ch
Subject: Fwd: OPAL treatment of travelling wave structures

 

Hi Tom I am forwarding this to the OPAL mailing list. Can you also add a fully working example?

Cheers A

------
Dr. sc. math. Andreas (Andy) Adelmann
Head a.i. Labor for Scientific Computing and Modelling 
Paul Scherrer Institut OHSA/ CH-5232 Villigen PSI
Phone Office: xx41 56 310 42 33 Fax: xx41 56 310 31 91
Zoom ID: 470-582-4086 Password: AdA

Zoom Link: https://ethz.zoom.us/j/4705824086?pwd=dFcvT1pMMGY0bHg0dTNncUNZZTJkZz09

-------------------------------------------------------
Friday: ETH HPK G 28   +41 44 633 3076
============================================
The more exotic, the more abstract the knowledge, 
the more profound will be its consequences.
Leon Lederman 
============================================



Begin forwarded message:

 

From: "Lucas Thomas Geoffrey (PSI)" <thomas.lucas AT psi.ch>

Subject: OPAL treatment of travelling wave structures

Date: 20 September 2022 at 11:02:52 CEST

To: "Adelmann Andreas (PSI)" <andreas.adelmann AT psi.ch>

 

Dear Andy,

 

I am looking at the OPAL manual at the section of the travelling wave structures: http://amas.web.psi.ch/opal/Documentation/master/OPAL_Manual.html#sec.elements.travelingwave

 

Using this method we achieve a nice TWS field however on the edges of the fringe field and middle cells we have a discontinuity which needs to be smoothed for the derivatives. May I ask how this is smoothed inside OPAL?

 

Best,

Tom

__________________________________________
Paul Scherrer Institut 
Dr. Thomas Geoffrey Lucas
WMHA/B17
Forschungsstrasse 111
5232 Villigen PSI
Schweiz

Telefon: +41 56 310 50 81
E-Mail: 
thomas.lucas AT psi.ch

 




Archive powered by MHonArc 2.6.19.

Top of Page