Skip to Content.
Sympa Menu

opal - Re: [Opal] Reference particle in OPAL

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] Reference particle in OPAL


Chronological Thread  
  • From: Wei Hou Tan <tanweihou AT outlook.com>
  • To: Nicole R Neveu <nneveu AT stanford.edu>, opal <opal AT lists.psi.ch>
  • Subject: Re: [Opal] Reference particle in OPAL
  • Date: Fri, 22 Jan 2021 23:30:10 +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=gwKpjCz1Qm1lYGx4rkJtP3Nwp6rOv+vT3wYzlRUJwhQ=; b=KKTNzYJIXa+CpM44cCz4LOX9thfslxeUsCIDRbsYXbx+qb1Jf7g0NvURny3UxGstNGQiGbFUso6LzwTuHQVnuu28nY21+jyOnQ7VbUntQu21hOYHoBpnkcHo0BFW4BCr61y/RKufhgaELw0s4hut4Jd5z0SLmqTGPSgGYv8jGfu6m0KosSGjMgeBMQ4AHPLpmdtdZk0YD3lndInrLEXuhK6XpbN+hWeOD0CW8S+SsioW2RmJsLCTSkOzJynoL1R1KKm/CKAx1XVex2wBqdn3ng41agKOnJAXhESIubm6EUf9XTbGZBVaMYh53tr4F8ZCktulb978l6KAg9OEFuCWzg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AcXqcvTX/pNh0g3lcIIu0uqKDI/DxOK1bydxBzvOjlvGAe8zL/qoS8rmtO8QaJ28RXx13JYTlg3vMov6G8+vgLoxQHe9c8b5feRpEjDcHS7oAlGw64amCT+UmM+5R12F1olQLsb1X3DatxLyjSqL51mWKUBEvMsCzpedILjr1wyPIb9h0MXish31dNZOX5en431cThTHsQTiMWR5d0tbNMAbGEf0VNB+++bq6RnV+4lrh0uTdtslU0GfP9jvazzYi6ku1/gyOf16zFLfEQHELwgodWzfweMZeqQK5/0yZPtzHF8GfY01iwhTwMqsKXaMlRrcKIaU5uXVLCVJOoK+mw==
  • Authentication-results: localhost; iprev=pass (mail-oln040092253034.outbound.protection.outlook.com) smtp.remote-ip=40.92.253.34; 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

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)

Thanks.

Regards
Wei 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 OPAL
 

Have 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




Archive powered by MHonArc 2.6.19.

Top of Page