opal AT lists.psi.ch
Subject: The OPAL Discussion Forum
List archive
- From: Adelmann Andreas <andreas.adelmann AT psi.ch>
- To: Christopher Pierce <cmpierce AT uchicago.edu>
- Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
- Subject: Re: [Opal] quaternion isn't unit quaternion. Norm: -nan
- Date: Fri, 7 Apr 2023 09:28:14 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 104.47.22.107) smtp.rcpttodomain=lists.psi.ch smtp.mailfrom=psi.ch; dmarc=pass (p=none sp=none pct=100) action=none header.from=psi.ch; dkim=none (message not signed); arc=none (0)
- 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=vC/W84X+ZuExkHvRDBJz3SPLEIrAiDTQrOVYIMqAl48=; b=QEw8vlXZBMuBwSEGpzvxar6tNb8O3AuWzdMO4ASAXZRPcevplbPms3LeB2k0+sE63FAU9KKqIIGcGD/hznzbo3PcbUK+mXbC4o8LWW5f3TJ7p0QmiLpxOWeSUTFAX4SOW0Wk0AkTDD1OGR+qiSh+cqokCCcAPB0lrOzS4S+Ivk7AaoQ1aQqplue5wzpyZV9zFeAK532lSsFBo2m640MPuILHT3yNN8kVuRUGQgjdjJ4yNb0Ng9V8gJJNrRMrmvFwWEYLdURK2+MoeFKaR5/Re33/QiuzYF+VMVUpguV3W+4XuDGAwm7ktbbnGIVxvbxmnJAkNGuaJ3SohzUYl5nZ9g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dGfh9A2Wl86IEfbXygCpLL3oSeFebkpKKuCQsh9qYerj1cWEC0CIPCrJHJLmtNwjpD/TlEGLdzAYLse0H5aJnNIJHqhnxGCWm9Y87Vzl1AHSoZH7wkLbUkz7udQ3ohjiFfC7W6qrGnzUmMgCkUbOrzY/bo1YmVxHGMOG+XKZwYDGWDUojekrdJEJTmHH/QnAIAxsdd+jrVgya9G61ZHK2Hl8y/aSnfdfIKWZidOLKNbxoxDST+BYHbYS1HhymnJSW8GYTktP7idx/1VRrdZGjAd6OYX0J1byEZlLN7/Cz/1UcQElM/Uj88l7U4CSdNpVEfw/th5HUWVJAjPqRBBpgw==
- Authentication-results: mc1; iprev=pass (mail-zr0che01on2047.outbound.protection.outlook.com) smtp.remote-ip=40.107.24.47; spf=pass smtp.mailfrom=psi.ch; dkim=pass header.d=psi.ch header.s=selector2 header.a=rsa-sha256; dmarc=pass header.from=psi.ch
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=psi.ch;
Chris can I use your field map and input file for the enhancement request, i.e. store the
information in our gitlab?
Cheers A
------
Dr. sc. math. Andreas (Andy) Adelmann
Head a.i. Labor for Scientific Computing and Modelling
Paul Scherrer Institut OHSA/D09 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
============================================
------
Dr. sc. math. Andreas (Andy) Adelmann
Head a.i. Labor for Scientific Computing and Modelling
Paul Scherrer Institut OHSA/D09 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
============================================
On 6 Apr 2023, at 21:29, Christopher Pierce <cmpierce AT uchicago.edu> wrote:
Ahh, Ok. Yes, the fieldmap really is a strange one.
Yeah, if it would be difficult to make things work correctly when Ez=0 through the whole file, then some sort of error message mentioning the problem would probably be a good solution. Setting Ez to like 0.00000001 really shouldn't affect the results.
Cheers,
Chris
From: Adelmann Andreas <andreas.adelmann AT psi.ch>
Sent: Thursday, April 6, 2023 9:24 AM
To: Christopher Pierce <cmpierce AT uchicago.edu>
Cc: opal AT lists.psi.ch <opal AT lists.psi.ch>
Subject: Re: [Opal] quaternion isn't unit quaternion. Norm: -nanHi Chris, with the latest developer version I get the same error.All field components zero, I view as a pathological case and also understandwhy the error (exception) occurs. The way you “fixed” this is to me a goodpath forwards.
In case you disagree, I can open an issue, otherwise I would try to createa better message to the use, in such a situation.
What do you think?
Cheers A
------
Dr. sc. math. Andreas (Andy) Adelmann
Head a.i. Labor for Scientific Computing and Modelling
Paul Scherrer Institut OHSA/D09 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
============================================
On 4 Apr 2023, at 19:58, Christopher Pierce <cmpierce AT uchicago.edu> wrote:
Huh, interesting. I am using version 2022.1.0 (git rev. a4e0e14466557289b4f7a843fb9eb72700ff1992). Is that the development version that doesn't show the error?
Cheers,
Chris
From: Adelmann Andreas <andreas.adelmann AT psi.ch>
Sent: Tuesday, April 4, 2023 5:44 AM
To: Christopher Pierce <cmpierce AT uchicago.edu>
Cc: opal AT lists.psi.ch <opal AT lists.psi.ch>
Subject: Re: [Opal] quaternion isn't unit quaternion. Norm: -nanHi Chris great that OPAL is of help to your research!
And yes your original field map is special :), indeed.
I can reproduce and confirm that with a small Ez component OPAL isrunning well. I do not see however, the error you encountering. What version of OPALare you using?
Cheers A
------
Dr. sc. math. Andreas (Andy) Adelmann
Head a.i. Labor for Scientific Computing and Modelling
Paul Scherrer Institut OHSA/D09 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
============================================
On 4 Apr 2023, at 05:53, Christopher Pierce <cmpierce AT uchicago.edu> wrote:
Hey folks,
First, I have recently started using opal and wanted to thank you for it. It looks like it will be very useful for my research.
I am emailing because I am running into a problem with the attached input file. It is supposed to represent a beam in a artificial electrostatic focusing channel. I do this by loading a fieldmap into the simulation with a constant negative radially pointing E-field and no Ez component.
The problem I encounter is that after loading the input file, the program returns the error "quaternion isn't unit quaternion. Norm: -nan".
I found out that I can make the error go away by setting a single element of the fieldmap to have finite Ez (also attaching the file as "e-lens-fixed.T7". This fieldmap seems to give me the results I expect. Is there something that I am doing wrong here?
Cheers,
Chris Pierce<20230403-opal-focusing-channel.txt><e-lens.T7><e-lens-fixed.T7>
-
[Opal] quaternion isn't unit quaternion. Norm: -nan,
Christopher Pierce, 04/04/2023
-
Re: [Opal] quaternion isn't unit quaternion. Norm: -nan,
Adelmann Andreas, 04/04/2023
-
Re: [Opal] quaternion isn't unit quaternion. Norm: -nan,
Christopher Pierce, 04/04/2023
-
Re: [Opal] quaternion isn't unit quaternion. Norm: -nan,
Adelmann Andreas, 04/06/2023
-
Re: [Opal] quaternion isn't unit quaternion. Norm: -nan,
Christopher Pierce, 04/06/2023
-
Re: [Opal] quaternion isn't unit quaternion. Norm: -nan,
Adelmann Andreas, 04/07/2023
- Re: [Opal] quaternion isn't unit quaternion. Norm: -nan, Christopher Pierce, 04/11/2023
-
Re: [Opal] quaternion isn't unit quaternion. Norm: -nan,
Adelmann Andreas, 04/07/2023
-
Re: [Opal] quaternion isn't unit quaternion. Norm: -nan,
Christopher Pierce, 04/06/2023
-
Re: [Opal] quaternion isn't unit quaternion. Norm: -nan,
Adelmann Andreas, 04/06/2023
-
Re: [Opal] quaternion isn't unit quaternion. Norm: -nan,
Christopher Pierce, 04/04/2023
-
Re: [Opal] quaternion isn't unit quaternion. Norm: -nan,
Adelmann Andreas, 04/04/2023
Archive powered by MHonArc 2.6.24.