Skip to Content.
Sympa Menu

opal - Re: [Opal] Loading initial distribution from Astra

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] Loading initial distribution from Astra


Chronological Thread 
  • From: Nicole R Neveu <nneveu AT stanford.edu>
  • To: Wei Hou Tan <tanweihou AT outlook.com>
  • Cc: opal <opal AT lists.psi.ch>
  • Subject: Re: [Opal] Loading initial distribution from Astra
  • Date: Wed, 12 Feb 2020 21:00:40 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stanford.edu; dmarc=pass action=none header.from=stanford.edu; dkim=pass header.d=stanford.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-SenderADCheck; bh=8ruaDXrLw47qNL4L/DpwBaOycmWVdrDXHDdv/JsMBUA=; b=JRNHBYxcwndqqTySnpa1LPUE39/m2Dolp3x+nVEabVz0f8q0INhxI+LJxVF9eC/IuvCxKcH0pc7VYltbbe2C7Yd9P5Ow2ZIJYtXrHsolmkGlu5qoa2+AbvHI159THJbnUAHhfl3pLcy6gfk/u7+eKSDwEJBa6FQVTD4TupZIsur/TgwYMYweOHiUe1JdTKskmccsmDwNKrKj7WoQlqtP0cd14qg3KtQpWIZcgLagG/9OClGB/Prmqwpn1nNMQNSMHZbpzZPDDsx17YP4Mrzud8FlI+yBn+cwBhUfcrl9clxyzHtjO+Z+8xoL2usREDk7jg4r2mkHpUvfbLVNKhOsSQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YxH7fGaq8EsPNiChpQzJIeRd30w2ZixxsBEkg77KrE7VvDV12OvJz9TG9QyYHiUuN6umWcw7RZXr9RwAhobUZQA/CO6pAYQUi5RQBjm5nSufxI2cHiwkZnOkJ8DyFk1aEIuFdL1LrMR5xwD97FX5wq0uC5uszSCFXNi7pXr7ZL8hD6liKMH6JvuQmUWdJBOjCFUDwNhF3HSarO2sAGOlK4nNAbrUfhZn7ZqnZL02zPYptlPnfQEBJ9DQixmBZqjbnC73QjnqMaVrjDss6AFJuZwkNvUcbFk/3UkUgcYamw7esCCwgezvIK8kcZrb1ot7XsVy0y//IH+hJ9bTc9z0Cg==

Wei Hou,

 

Glad to hear things are going well.  Some quick notes:

  • You can dump the loaded input distribution by using the option “WRITETOFILE = True,” in your distribution command.
  • I.e. you can look at the distribution write out instead of step 0
The time column (clock) for ASTRA may need extra conversion.
  • If I’m remembering correctly ….
  • particles in ASTRA have a time relative to the reference particle in ASTRA
  • OPAL has absolute time for all particles
ASTRA has several reference particles (usually) included in the distribution
  • you can delete these for OPAL

 

I haven’t had time to look into this in detail yet, but those differences came to mind.

 

Thanks!

 

Nicole

 

From: <opal-request AT lists.psi.ch> on behalf of Wei Hou Tan <tanweihou AT outlook.com>
Reply-To: Wei Hou Tan <tanweihou AT outlook.com>
Date: Wednesday, February 12, 2020 at 11:17 AM
To: Nicole R Neveu <nneveu AT stanford.edu>
Cc: opal <opal AT lists.psi.ch>
Subject: Re: [Opal] Loading initial distribution from Astra

 

Hi Nicole,

 

I am doing fine here, Philippe is quite happy with OPAL and hence we decide to use it to cross check results from ASTRA, IMPACT-T, etc.

There was no error when I ran both OPAL and ASTRA, just that they both gave different distributions.

I suspect that something is wrong when I converted ASTRA distribution (particle.ini) to OPAL format (opal.ini) but I could not figure out yet.

Here I attach log files from ASTRA and OPAL for your reference.

 

Thanks.

 

Regards

Wei Hou


From: Nicole R Neveu <nneveu AT stanford.edu>
Sent: Thursday, February 13, 2020 2:44 AM
To: Wei Hou Tan <tanweihou AT outlook.com>
Cc: opal <opal AT lists.psi.ch>
Subject: Re: [Opal] Loading initial distribution from Astra

 

Hi Wei Hou,

 

I’m doing good, and you?

 

Also, could you please send your error message?

I probably won’t get to this today, but I’ll try to take a look soon.

I’m doing similar comparisons.

 

Thanks,

 

Nicole

 

From: Wei Hou Tan <tanweihou AT outlook.com>
Date: Wednesday, February 12, 2020 at 10:38 AM
To: Nicole R Neveu <nneveu AT stanford.edu>
Subject: Re: [Opal] Loading initial distribution from Astra

 

Hi Nicole,

 

How are you ?

Here I attach all related input files for both ASTRA and OPAL.

Thanks.

 

Regards

Wei Hou


From: Nicole R Neveu <nneveu AT stanford.edu>
Sent: Thursday, February 13, 2020 2:01 AM
To: Wei Hou Tan <tanweihou AT outlook.com>; opal <opal AT lists.psi.ch>
Subject: Re: [Opal] Loading initial distribution from Astra

 

Hi Wei-Hou,

 

Can you please send error file / related input files.

 

Thanks,

 

Nicole

 

From: <opal-request AT lists.psi.ch> on behalf of Wei Hou Tan <tanweihou AT outlook.com>
Reply-To: Wei Hou Tan <tanweihou AT outlook.com>
Date: Wednesday, February 12, 2020 at 9:40 AM
To: opal <opal AT lists.psi.ch>
Subject: [Opal] Loading initial distribution from Astra

 

Guten Tag,

 

This is Wei-Hou TAN, graduate student from the Northern Illinois University working with Prof. Philippe Piot.

 

I would like to use my ASTRA initial distribution in OPAL to compare both ASTRA and OPAL simulation results.

However, I could not make it work.

The step0 distribution in OPAL hdf5 file is different from that of in ASTRA, it is shorter.

 

Here is what I did:

I generated my ASTRA distribution in the following format, then rearranged columns in red circles to produce correct format for OPAL.

cid:image001.jpg@01D5E18B.707F91D0

Then in OPAL, I wrote the following:

Dist: DISTRIBUTION, TYPE = FROMFILE,

        FNAME = "opal.ini",

        EMISSIONMODEL = ASTRA,

        EMITTED = True;  

 

Is it correct ?

Thank you.

 

Regards

Wei Hou




Archive powered by MHonArc 2.6.19.

Top of Page