Skip to Content.
Sympa Menu

opal - Re: [Opal] DC gun simulation: Unexpected longitudinal phase spaces

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] DC gun simulation: Unexpected longitudinal phase spaces


Chronological Thread  
  • From: Simon Friederich <sifriede AT uni-mainz.de>
  • To: Dragos Constantin <Dragos.Constantin AT varian.com>, "Adelmann Andreas (PSI)" <andreas.adelmann AT psi.ch>
  • Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • Subject: Re: [Opal] DC gun simulation: Unexpected longitudinal phase spaces
  • Date: Fri, 11 Sep 2020 21:33:18 +0200
  • Authentication-results: localhost; iprev=pass (ironport-2.zdv.net) smtp.remote-ip=134.93.178.242; spf=pass smtp.mailfrom=uni-mainz.de; dkim=pass header.d=uni-mainz.de header.s=20190702 header.a=rsa-sha256; dmarc=pass header.from=uni-mainz.de
  • Ironport-phdr: 9a23:ry6dPhfsrJyKcDOIhR2UePdrlGMj4u6mDksu8pMizoh2WeGdxc25ZRWN2/xhgRfzUJnB7Loc0qyK6v6mADFRqs/b4TgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrrAjdrNQajItmJ6o+1xfFvH9FcPlKyG11Il6egwzy7dqq8p559CRQtfMh98peXqj/Yq81U79WAik4Pm4s/MHkugXNQgWJ5nsHT2UZiQFIDBTf7BH7RZj+rC33vfdg1SaAPM32Sbc0WSm+76puVRTlhjsLOyI//WrKkcF7kr5Vrwy9qBx+247UYZ+aNPxifqPGYNgWQXNNUttNWyBdB4+xaZYEAegcMuZCt4TzuVUOoxu5BQexB+3hxDFHiXD00qIm0uQsChvJ0BA6Et8UrHjZotf4OaEPWu611qnIyjDDYutL1zf87YjIdRYhquyMU7JqcMre11QgGB3fjlWRtYPlPy6e2+MWs2ia4epgT+OvhHA6pA5vuTWv28EsiojQioIQ0F/E9CN5wYcv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uuASgEEwK625mldJVhSiy/JLPWTETVJX3Gmgt9hV2qqvbaSl1s5jV22dtPKW5miLE2pcsDeoj2FCscoEMY+u/CAbuHphCVICVI+swlg3sN0pcMQ==
  • Ironport-sdr: ptJCrWycqZO+k5vJ4G4mBNZdtPBs6LSJXb4mgzd0pyAq5p4wJZJoNgh1uxhY2bsde0d/9gQSZ9 Kt0k8OPbOiNoFfUkGJSh7Xa/0f/cKoTxITXjdNURJRnj1ltPrKa5zpO7sZsb/WK2pdxbM8ngm0 7m0tSx6hdVW2u2LUDYNqtITJ5lct4yKMP5BhknCnwfEv4wahhbJUay7bgcbP0EWv/7Ut2rMhsQ o8ARHlSAfJEiHHfWdEMlSJppmzvhan4PvNAWMYOo4bjDFqhOrU/Rg3hAqHEJSmt9aXXJzSiIEw SUs=
  • Organization: Institut für Kernphysik, JGU Mainz

Good evening Dragos,

Yes indeed. I am using python + pandas to convert the fieldmaps.

Using df_reordered=df.sort_values(by=['x','y','z']) results exactly in the order you've mentioned (in the example y=0 as this is the cylindrical 2DDynamic fieldmap)

[In the next step I write the headlines (e.g. 2DDynamics, zmin zmax Nz-1, FREQ, xmin xmax Nx-1) and only the needed columns into the resulting opal-fieldmap file according to the manual]

I hope, that I've not overseen something here. At least for the reference particle I can assume, that it sees the correct field (Ex_ref, Ey_ref, Ez_ref).

Best regards
Simon


Am 11.09.2020 um 18:00 schrieb Dragos Constantin:

Hi Simon,

I supposed you have checked that the points inside the field maps are correctly ordered, e.g. for 3D field maps the z coordinate is the fastest and, y is next , and x is the slowest.

 

Did you try to normalize the field map?

 

Thanks,

Dragos

 

 

Dragos Constantin, PhD
Sr. Research Scientist

 

Varian Medical Systems
3120 Hansen Way, MS G201, Palo Alto, CA 94304 United States
dragos.constantin AT varian.com
T +650.424.5914 | F +650.842.5035
varian.com



This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments. Thank you.

 

 

 

 

From: opal-request AT lists.psi.ch <opal-request AT lists.psi.ch> On Behalf Of Simon Friederich
Sent: Friday, September 11, 2020 1:36 AM
To: Adelmann Andreas (PSI) <andreas.adelmann AT psi.ch>
Cc: opal AT lists.psi.ch
Subject: Re: [Opal] DC gun simulation: Unexpected longitudinal phase spaces

 

Good morning Andreas,

Please follow this link to the fieldmaps (named cst2opal_100keV_xyz_3DDynamic.t7 and cst2opal_100keV_xz_2DDynamic.t7)

https://seafile.rlp.net/d/0b482f64c9c84e339dc5/

Best regards,

Simon

Am 11.09.2020 um 10:24 schrieb Adelmann Andreas (PSI):

Hello Simon, I can not see an obvious mistake. Please share the 

field maps then I can have  detailed look at the problem.

 

 

Thanks & 

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
-------------------------------------------------------
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 
============================================



On 10 Sep 2020, at 15:40, Simon Friederich <sifriede AT uni-mainz.de> wrote:

 

Dear OPAL-Team, I am trying to simulate a DC electron source. I implemented a 2DDynamics fieldmap into OPAL, that I've exported from CST. Furthermore I've set the frequency to 1 Hz as shown in the DC Gun example. Unfortunately the longitudinal phase spaces look unexpected. Here I've plotted the h5-output for the gun simulation as well as a pure drift simulation of a 100keV electron beam (same bunch sizes and parameters but the energy is fixed) as comparison. <flaghcfdkllelgbc.png> One can see a strange saw-tooth like pattern convoluted with another almost trident-like one. This is my emitted gaussian distribution (nothing special, I'd say): distr_gauss:
    DISTRIBUTION,
    TYPE = GAUSS,
    SIGMAR = 0.5e-3, CUTOFFR = 3,
    CUTOFFLONG = 3; distr_debug:
    distr_gauss,
    EMITTED=true,
    SIGMAT = 10.0e-12,
    NBIN = 0,  // This I've varied
    EMISSIONSTEPS=10,  // this I've varied too
    EMISSIONMODEL = NONE; Maybe you see something obvious, that I did wrong? (I've also put my input file in the attachement, the fieldmaps are quite large, if you want them I'll add a seafile link) I've compared the Ez-field of the reference particle. It looks exactly like the one I've exported from CST. (My next idea was to dumb all E-fields and plot this, but this could be a lot of work and might not bring up the source of the problem). And I've also imported a 3DDynamics field, but there is also no difference to be seen (the source has a cylindrical symmetry, so both should work). Best regards and thank you very much as always in advance Simon
-- 
-----------------------------------
Dr. Simon Friederich
Helmholtz-Institut Mainz
Kollaboration B/ACID
Johannes Gutenberg-Universität Mainz
Staudingerweg 18
55128 Mainz, Deutschland
 
Tel.: +49 (0)6131 39-23160
E-Mail: sifriede AT uni-mainz.de
----------------------------------------

<dc_gun.in>

 

-- 
-----------------------------------
Dr. Simon Friederich
Helmholtz-Institut Mainz
Kollaboration B/ACID
Johannes Gutenberg-Universität Mainz
Staudingerweg 18
55128 Mainz, Deutschland
 
Tel.: +49 (0)6131 39-23160
E-Mail: sifriede AT uni-mainz.de
----------------------------------------
-- 
-----------------------------------
Dr. Simon Friederich
Helmholtz-Institut Mainz
Kollaboration B/ACID
Johannes Gutenberg-Universität Mainz
Staudingerweg 18
55128 Mainz, Deutschland

Tel.: +49 (0)6131 39-23160
E-Mail: sifriede AT uni-mainz.de
----------------------------------------

PNG image




Archive powered by MHonArc 2.6.19.

Top of Page