opal AT lists.psi.ch
Subject: The OPAL Discussion Forum
List archive
- 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
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 effectI 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 ----------------------------------------
- [Opal] Using LINES with ORIGIN, Simon Friederich, 07/21/2020
- Re: [Opal] Using LINES with ORIGIN, Christof Metzger-Kraus, 07/21/2020
Archive powered by MHonArc 2.6.19.