Skip to Content.
Sympa Menu

opal - Re: [Opal] Injected distribution with OFFSETZ

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] Injected distribution with OFFSETZ


Chronological Thread  
  • From: Christof Metzger-Kraus <christof.j.kraus AT gmail.com>
  • To: "Dr. Simon Friederich" <s.friederich AT uni-mainz.de>
  • Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • Subject: Re: [Opal] Injected distribution with OFFSETZ
  • Date: Sat, 3 Oct 2020 22:12:56 +0200
  • Authentication-results: localhost; iprev=pass (mail-io1-f48.google.com) smtp.remote-ip=209.85.166.48; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com

Hi Simon,

I can indeed confirm, that this is a bug (quite a stupid one I have to admit). If you use a temporal monitor then the bunch is always shifted In both transverse directions by half a centimeter (independent on where the monitor is in space or time).

Christof

On Fri, Oct 2, 2020 at 5:34 PM Dr. Simon Friederich <s.friederich AT uni-mainz.de> wrote:

Dear Christof,

Today I wanted to use your suggestion and put a MONITOR at 3.5m in the beamline. I found out later, that it somehow has an offset in transverse direction when comparing it with the main .h5-file storing the phase spaces.

I've put a screenshot of the 2D transverse beam profiles in the attachement (again: This is the same simulation, picture left = monitor file, picture right = main.h5 file @ SPOS = 3.5m).

Did I miss something?

I implement the monitor using:

    tmon_3500: MONITOR, Z=3.5, OUTFN="distr_3500", TYPE=TEMPORAL;

Best regards
Simon


Am 09.07.2020 um 10:29 schrieb Christof Metzger-Kraus:
Hi Simon,

if I remember correctly then the beam is always emitted at z = 0. I don't know what (if at all) effect OFFSETZ has when the beam is emitted. But I'm sure we will find another way to accomplish what you intended. E.g. you could use a monitor with TYPE = TEMPORAL. Then you use the recorded distribution (using FROMFILE) in the following optimization. The downside of this approach is that you have to export the data from the hdf5 file to ascii (using e.g. matlab/octave or python).

Best regards,
Christof

On Tue, Jul 7, 2020 at 6:47 PM Dr. Simon Friederich <s.friederich AT uni-mainz.de> wrote:

Dear OPAL-Team,

My goal: I want to inject an electron bunch with a gaussian distribution at Z=-0.2 and have it cross a solenoid which is located at 0.0.

I tried: To use the OFFSETZ parameter, but it has not the desired effect (I expect the stat-file to start from s=-0.2m, right?).

I have also tried: To change the CATHODE's position, but it has no(t the desired) effect either.

I wanted to use the OFFSETZ parameter once to import a particle distribution at a specific point within my beam line so that I don't have to change the elements position and get the same result as if I injected the start-distribution at (0,0,0). [The purpose was to save computational time, because I could optimize the beam line step by step without having to simulate everything from the beginning]

If you find the time, maybe you could have a look at my input files and tell me what I've missed here.

Best regards,

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: s.friederich 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: s.friederich AT uni-mainz.de



Archive powered by MHonArc 2.6.19.

Top of Page