Skip to Content.
Sympa Menu

opal - Re: [Opal] quaternion isn't unit quaternion. Norm: -nan

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] quaternion isn't unit quaternion. Norm: -nan


Chronological Thread  
  • From: Christopher Pierce <cmpierce AT uchicago.edu>
  • To: Adelmann Andreas <andreas.adelmann AT psi.ch>
  • Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • Subject: Re: [Opal] quaternion isn't unit quaternion. Norm: -nan
  • Date: Tue, 4 Apr 2023 17:58:47 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uchicago.edu; dmarc=pass action=none header.from=uchicago.edu; dkim=pass header.d=uchicago.edu; arc=none
  • 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=rTGnlGX7l2Dq3o/R3epFf+EW3P8LLI2rBC1xPss/p00=; b=MJ/KcwOhLnDdeqBpTkDQTeJPkJzgu9YJynaS3o/lGss8UBGVns+mc5vZFm7Rl0iYhzKZwr26K8Q1NHNRVLREy4JpxbMrUCmqviCipMw3tifZCCgeZ4jkl9N/a0l2r0Rd2Sl+bqB14cvDqsKemnqjkia4VDWcVDunG1m0jkWIm4UrC/tatxJ1bVa01PibxQU1kOT3vXnhSYqDRg8+4m06JcDsi9MMYG0SeX7xG2B4cWAIJSCsAWaZDRytL4EKj5saWfaeMSPxxTC3CITT4MED7Fn4ryW2AaFPD0xJ+yozUhKunidf2bdYkSZnLUUUaUZg91nqwkSEVJmDAH9bCPVGCQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GJ9E/rl114zGn13srMxuxoDWMaYlNd8KAwcIbKmIwYTxiikyDYxifPWPTlCgOq23OxnVBwNSxcXm8LlfdPN0zj2Nt/gnQZJbm87des598iKdsKInL2KlGeLh8u3+g+JdNrd64xpbLzCpramE8RFkyFZq9PFbd2WM1u2rrcPsJa5NLiB2hiTTBnjS9JSUD0Mn2vaY2mZUGFkiWYfXteY43j5hGgoj0z+XTNp6LDUEjtuT7dA8NE/KTOT2NRuAwIrzDOFKnErS2+yxesl+WLv7Wk6sky6taUy7Z49PTON9CqGHd6NzCiKVzQxB+HxUFxRZbc1Gejc3VWAtPABx3OJYfw==
  • Authentication-results: mc3.ethz.ch; iprev=pass (mail-dm6nam04on2111.outbound.protection.outlook.com) smtp.remote-ip=40.107.102.111; spf=pass smtp.mailfrom=uchicago.edu; dkim=pass header.d=uchicagoedu.onmicrosoft.com header.s=selector2-uchicagoedu-onmicrosoft-com header.a=rsa-sha256; dmarc=pass header.from=uchicago.edu
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=uchicago.edu;
  • Msip_labels:

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: -nan
 
Hi 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 is 
running well. I do not see however, the error you encountering. What version of OPAL 
are 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>




Archive powered by MHonArc 2.6.24.

Top of Page