Skip to Content.
Sympa Menu

opal - Re: [Opal] Regarding OPAL input file

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] Regarding OPAL input file


Chronological Thread  
  • From: Adelmann Andreas <andreas.adelmann AT psi.ch>
  • To: MONIKA YADAV <yadavmonika AT g.ucla.edu>
  • Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • Subject: Re: [Opal] Regarding OPAL input file
  • Date: Fri, 23 Feb 2024 06:08:55 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 20.250.75.252) smtp.rcpttodomain=g.ucla.edu 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=y98Rg+kWE8Nvq4zIBlHMG8K1yoKBfl9wIobK91QQ/4s=; b=Lk2t3fQguAftttJWkmpCsttS0EMQaWCH+swKqvif6tq9CVv6vlnyeon5sEoWPM/ToFFKjf3oZUCLIticRQ8KFESN2bJcO+DNGV0VFxw4BYohTiMVL80l3Sj/vOojRwwI/rvCVkK5qFk41T6s82p1bjEHtMNqWSjOGWsuAZGAzlgrgmD5EAxebTkZwnltjsJ6JZP8kvdfntmHXWF70UVpEHULZAfBFwg42lc1GgMo09jET1KJIce/wjOI6cOg3/Qrre9PkRN+lGXfK+yyC+pg46vNjXdgBTgh7B3YBf6hVTetHxU5vqh4tmZDdVsRfGD0hc1Zlcu5Dq+w5QLi63Hp+g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GOYSfvUWsRdTmsdQ2+NejgUuEtGxHEv4sjj9QlPLRBNDbeA8VfZZ+EBobdre4Zj+9qhIDrQv/0eQKUk8U49+cjUqbjtKC0ZOFoH3FL07H6KYmvQZQOb+AFtlQhOR6t/QTZYidhjfFXVUFXNOaiqwqfSNOpAPDVZsJ8cFYODNmGdkcRr1j+Q19GBLDmpd9RqPWzpWqX25ZO/sBBdMaYtBl/vRC4OZmX157zYrSOXWfXdBnDsOf9LDgCeDoI5k2bDQmQSpBswASPqCa4tJA1OMxsymCfBs665mhX9nU1cCVIR21wddsQcMIGD/dMTqIzQkzjjBcmhi3Q/5CYayNPopAw==
  • Authentication-results: mc1; iprev=pass (mail-zr0che01on2135.outbound.protection.outlook.com) smtp.remote-ip=40.107.24.135; 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;

Hi Monika the statistical quantities available to the optimiser are 
listed here https://amas.web.psi.ch/opal/Documentation/master/#sec.opalt.opalt-output
unfortunately alpha is not directly but you have <x x’> available.

Cheers A
------
Dr. sc. math. Andreas (Andy) Adelmann
Paul Scherrer Institut OHSA/D17 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 22 Feb 2024, at 19:48, MONIKA YADAV <yadavmonika AT g.ucla.edu> wrote:


Hi Everyone,

Thanks for your help. I am able to run the optimization for rms_x and rms_y. 

rmsx: OBJECTIVE, EXPR="statVariableAt('rms_x', ${pos})";
rmsy: OBJECTIVE, EXPR="statVariableAt('rms_y', ${pos})";

Now I want to optimize for alpha (alpha ~0) such that there is no divergence in the beam. 
Is there an objective, _expression_ for optimizing beam alpha in OPAL? I could find a list of variables in the document.

Thanks in advance
Kindest regards
Monika 



On Wed, Feb 21, 2024 at 10:31 AM MONIKA YADAV <yadavmonika AT g.ucla.edu> wrote:
Dear Adelmann,

I tried running the files you sent, but I'm getting error messages. The DriveLinac.tmpl file is located in the 'tmpl' folder. This simulation runs fine when I don't define _QD1_K1_ in the DriveLinac.tmpl file ( I set an example value for K1=0.3). However, as soon as I define optimization _QD1_K1_ and call it from quadscan.in, I get errors. Please find attached files and error messages. Do you have any suggestions for what's wrong here?

Thanks in advance
Kindest regards,
Monika




On Tue, Feb 20, 2024 at 12:08 PM Adelmann Andreas <andreas.adelmann AT psi.ch> wrote:
Hi Monika from what I see your setup is wrong. 

in how to setup the optimiser. 

Maybe you try a very simple example first. 

Cheers A
------
Dr. sc. math. Andreas (Andy) Adelmann
Paul Scherrer Institut OHSA/D17 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 19 Feb 2024, at 18:00, MONIKA YADAV <yadavmonika AT g.ucla.edu> wrote:

I am working on optimizing the Quads using OPAL. I am trying to optimize for x' (xprime- divergence) matching alpha and beta.
Attached is the input file I am using. The input file and tmpl file are in the drivelinac folder where I generate particle data.

The error is something is wrong with reading the input file. Do you have any suggestions for what's wrong here?

Thanks
Monika
Postdoctoral researcher UCLA






Archive powered by MHonArc 2.6.24.

Top of Page