Skip to Content.
Sympa Menu

opal - Re: [Opal] Using LINES with ORIGIN

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] Using LINES with ORIGIN


Chronological Thread 
  • From: Christof Metzger-Kraus <christof.j.kraus AT gmail.com>
  • To: Simon Friederich <sifriede AT uni-mainz.de>
  • Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • Subject: Re: [Opal] Using LINES with ORIGIN
  • Date: Tue, 21 Jul 2020 20:53:40 +0200
  • Authentication-results: localhost; iprev=pass (mail-io1-f50.google.com) smtp.remote-ip=209.85.166.50; 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,

elements using X, Y, Z, THETA, PHI or ORIGIN and ORIENTATION are placed in lab coordinates and not relative to the origin and orientation of the beamline. I think this behavior can be changed quite easily. Maybe I manage to implement this in the next few days in order to get this into the next release.

Christof



On Tue, Jul 21, 2020 at 11:15 AM Simon Friederich <sifriede AT uni-mainz.de> wrote:

Dear OPAL-Team,

I'd like to use the LINES together with ORIGIN, because it is a really handy way of dealing with the positions of multiple objects, e.g.:

rf1: RFCAVITY, ELEMEDGE=0,...;
rf2: RFCAVITY, ELEMEDGE=0.5,...;
rfline1: LINE =(rf1, rf2), ORIGIN={0,0,1};

Which works perfectly fine, I have rf1 @ Z=1m and rf2 @ 1.5m in the global coordinate system.

Now I have to rotate rf2 by 180┬░ around the y-axis, so I need to use Z instead of ELEMEDGE in order to access THETA. But how can I now use "ORIGIN" as it does only work for the ELEMEDGE-case, right?

rf1: RFCAVITY, Z=0,...;
rf2: RFCAVITY, Z=0.5, THETA=PI, ...;
rfline1: LINE =(rf1, rf2), Z=1; // Here is the "problematic" part, ORIGIN={0,0,1} has no effect

I thought of using ORIENTATION, but I did not quite get the correct syntax for the rotation that I want.

Thank you very much in advance.
Best regards
Simon


P.S.: I think there is a typo in the manual


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



Archive powered by MHonArc 2.6.19.

Top of Page