opal AT lists.psi.ch
Subject: The OPAL Discussion Forum
List archive
- From: Wei Hou Tan <tanweihou AT outlook.com>
- To: "Adelmann Andreas (PSI)" <andreas.adelmann AT psi.ch>
- Cc: Nicole R Neveu <nneveu AT stanford.edu>, "opal AT lists.psi.ch" <opal AT lists.psi.ch>
- Subject: Re: [Opal] Reference particle in OPAL
- Date: Sat, 23 Jan 2021 14:57:52 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=63pjPG3X0Jf9d94QEGAUE1I/KzHvdEt9CNRlJRXdKrE=; b=dMuR6BFvjnlq7//05r3vLd8oqhYS/stIUuM7Vzpi48USJGMT+UlUv6TuYONxyAct/M7mF+W9VO9q+tG7nPS4iQOB9Osbtlqj1x7Wn4WcCS+evE+4oFqthtg4w9limV1bLlO4AMB7FWmu6U/TibPQ7TNKxPlwMZfBrOJT8gq2vqLiQqZcP46B2pQ4qFmgQ/Phu4GA6nW/4PKNZ9OlRaDrdD/xs4q0YrOkPXDRxQHEnI5emTZQXLL27FyGhMpj8EjS2njRPG26QL8yiOll/lAuytUGRepFHcOUKHx4oX2SNivH0wLfG2wtgTGFxKJlpfNmDPI0T0AI13pV00FBRxBLPw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YAxCiAJptYF9UKDr/Qt6e3xF6wCV3LrmL9sQ7R3NKtW4jHC7++zJFs9VL30GkxxMnJWJ5cCFfcCzZwXJcvuFWd7QZzaCdbJWM8F1uzDfssGndLsf9mdHGVjFkuOT+002bTQuZ21i8aMzY4RS6O4GRRuAhfTu76fJY/RqSaq/ZAwpjdLrfq0xhrqFrso5Zp9XP0kPLebJQnmUq9irHlWdpTaKGqG5+SlejMuIZ2BswqSEDM6ESjIhxfuS7zQGINlmt31RnJlN/Igg3pwE/2qfDN3BYslrCC6QB8m5j3aDqOqszYt67zOvAdGD33/HOMgrnHBWL95k5fQJPiPwZKKLgA==
- Authentication-results: localhost; iprev=pass (mail-oln040092253060.outbound.protection.outlook.com) smtp.remote-ip=40.92.253.60; spf=pass smtp.mailfrom=outlook.com; dkim=pass header.d=outlook.com header.s=selector1 header.a=rsa-sha256; dmarc=pass header.from=outlook.com
Sent: Saturday, January 23, 2021 4:59 PM
To: Wei Hou Tan <tanweihou AT outlook.com>
Cc: Nicole R Neveu <nneveu AT stanford.edu>; opal AT lists.psi.ch <opal AT lists.psi.ch>
Subject: Re: [Opal] Reference particle in OPAL
Dr. sc. math. Andreas (Andy) Adelmann
Head a.i. Labor for Scientific Computing and Modelling
Paul Scherrer Institut OHSA/ CH-5232 Villigen PSI
Phone Office: xx41 56 310 42 33 Fax: xx41 56 310 31 91
Zoom ID: 470-582-4086 Password: AdA
-------------------------------------------------------
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 23 Jan 2021, at 00:30, Wei Hou Tan <tanweihou AT outlook.com> wrote:
Dear Nicole,
Thanks for your suggestion.Unfortunately, it did not help much.For my example, I did not turn on space charge calculation.From the plot below, it seems like there is a mismatch in RF phase, as seen by the reference particle.
Is there a way to check which reference particle that OPAL uses for its calculation ? (For ASTRA, it is the bunch centroid)
<dasdasdas.jpg>Thanks.
RegardsWei Hou
From: Nicole R Neveu <nneveu AT stanford.edu>
Sent: Saturday, January 23, 2021 6:25 AM
To: Wei Hou Tan <tanweihou AT outlook.com>; opal <opal AT lists.psi.ch>
Subject: Re: [Opal] Reference particle in OPALHave you tried more emission steps?
I think the default is only ‘1’, and this value was too low for my case.
Here’s my standard distribution:
Dist:DISTRIBUTION, TYPE = FROMFILE,
FNAME = "opal_emitted.txt",
EMITTED = TRUE,
EMISSIONMODEL = NONE,
EMISSIONSTEPS = 100,
EKIN=0;
Other things that I needed to adjust were:
- Grid size / # particles ratio (maybe you’ve already done a convergence study?)
- Number of Fourier samples in the field maps (originally I had this number too high)
Thanks,
Nicole
From: Wei Hou Tan <tanweihou AT outlook.com>
Date: Friday, January 22, 2021 at 2:16 PM
To: Nicole R Neveu <nneveu AT stanford.edu>, opal <opal AT lists.psi.ch>
Subject: Re: [Opal] Reference particle in OPAL
Dear Nicole,
The distribution was generated by external scripts, which then converted into ASTRA and OPAL inputs.
The distribution comes with initial momentum pz, I did not add extra Ekin as shown in the code below.
Here's the distribution command look like
Dist: DISTRIBUTION, TYPE = FROMFILE,
FNAME = "opal.ini",
EMISSIONMODEL = NONE,
EKIN=0,
EMITTED = True,
WRITETOFILE=True,
NBIN = 100;
Thanks.
Regards
Wei Hou
From: Nicole R Neveu <nneveu AT stanford.edu>
Sent: Saturday, January 23, 2021 6:07 AM
To: Wei Hou Tan <tanweihou AT outlook.com>; opal <opal AT lists.psi.ch>
Subject: Re: [Opal] Reference particle in OPAL
Hi Wei Hou,
When I did a similar exercise for the LCLS-II injector, one cause of discrepancy for me was the definition of Ekin.
Are you suppling the same particles distribution to ASTRA and OPAL?
Or letting the codes generate the distribution?
What does your distribution command look like?
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: Friday, January 22, 2021 at 1:59 PM
To: opal <opal AT lists.psi.ch>
Subject: [Opal] Reference particle in OPAL
Dear OPAL developers,
This is Wei Hou TAN, graduate student working with Prof. Philippe Piot in the Northern Illinois University.
I would like to learn OPAL, starting by cross-checking its results with ASTRA.
In my toy example, I simulated a rf gun with both ASTRA and OPAL.
However, I am having problems getting same results in OPAL.
I have checked that both ASTRA and OPAL have the same distributions, same RF phase.
I suspected that OPAL has a different definition of reference particle but I could not find any documentations on it.
What is OPAL convention of reference particle ?
Thank you.
Regards
Wei Hou
-
[Opal] Reference particle in OPAL,
Wei Hou Tan, 01/22/2021
- Re: [Opal] Reference particle in OPAL, Power, John, 01/22/2021
- <Possible follow-up(s)>
-
Re: [Opal] Reference particle in OPAL,
Nicole R Neveu, 01/22/2021
-
Re: [Opal] Reference particle in OPAL,
Wei Hou Tan, 01/22/2021
-
Re: [Opal] Reference particle in OPAL,
Nicole R Neveu, 01/22/2021
-
Re: [Opal] Reference particle in OPAL,
Wei Hou Tan, 01/23/2021
-
Re: [Opal] Reference particle in OPAL,
Adelmann Andreas (PSI), 01/23/2021
-
Re: [Opal] Reference particle in OPAL,
Wei Hou Tan, 01/23/2021
- Re: [Opal] Reference particle in OPAL, Adelmann Andreas (PSI), 01/25/2021
- Re: [Opal] Reference particle in OPAL, Wei Hou Tan, 01/28/2021
- Re: [Opal] Reference particle in OPAL, Adelmann Andreas (PSI), 01/28/2021
- Re: [Opal] Reference particle in OPAL, Wei Hou Tan, 01/28/2021
- Re: [Opal] Reference particle in OPAL, Adelmann Andreas (PSI), 01/28/2021
- Re: [Opal] Reference particle in OPAL, Nicole R Neveu, 01/28/2021
-
Re: [Opal] Reference particle in OPAL,
Wei Hou Tan, 01/23/2021
-
Re: [Opal] Reference particle in OPAL,
Adelmann Andreas (PSI), 01/23/2021
-
Re: [Opal] Reference particle in OPAL,
Wei Hou Tan, 01/23/2021
-
Re: [Opal] Reference particle in OPAL,
Nicole R Neveu, 01/22/2021
-
Re: [Opal] Reference particle in OPAL,
Wei Hou Tan, 01/22/2021
Archive powered by MHonArc 2.6.19.