Skip to Content.
Sympa Menu

opal - Re: [Opal] Automated Override of Monitoroutput, Visualize Elements & Elegant Lattice

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] Automated Override of Monitoroutput, Visualize Elements & Elegant Lattice


Chronological Thread 
  • From: "Thomas, Sebastian" <sthomas AT uni-mainz.de>
  • To: "Snuverink Jochem (PSI)" <jochem.snuverink AT psi.ch>, "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • Subject: Re: [Opal] Automated Override of Monitoroutput, Visualize Elements & Elegant Lattice
  • Date: Wed, 18 Dec 2019 12:46:08 +0000
  • Accept-language: en-GB, de-DE, en-US
  • Authentication-results: localhost; iprev=pass (ironport-2.zdv.net) smtp.remote-ip=134.93.178.242; spf=pass smtp.mailfrom=uni-mainz.de; dkim=pass header.d=uni-mainz.de header.s=20190702 header.a=rsa-sha256; dmarc=pass header.from=uni-mainz.de
  • Ironport-sdr: NDzUQ2fDLtzABCk2fPpkDRz8Nb1CDuxygWp5g6GGVeE094+I+66DnoofMKzUXHOolEVxNZsU/L 4XWAgx1PvNx86qQMFwV2m8eW7zgRkZSVh1uvvqoSvGGyiVArrFWYS7SkQ3Qip3CmKKlKT4zOHy WHRmvQbYVr8ntd0Bo/uOfe9GYzQX0xJhB2QTTbc7ZbyZwHiEtrUW63A5P/H32UGY/wNXGyAtvo lqyxY0i3R1ypKt1MtYIuos5AL/1X0kOEvlRI5hftsjUIxkemuuJA8U+ru9Z+yot0+yETqAiOIa Dqw=

Dear Jochen,

That is actually the workaround that I am using right now: I just put some system commands in the input file. I will try to recreate the original problem and send you the input file.

Thank you for providing that link regarding the evaluation tool. I couldn't find it in the wiki on the gitlab page. Was I just blind?

Thanks for the quick help!
Cheers
Sebastian

From: Snuverink Jochem (PSI) <jochem.snuverink AT psi.ch>
Sent: 18 December 2019 12:23:45
To: Thomas, Sebastian; opal AT lists.psi.ch
Subject: RE: Automated Override of Monitoroutput, Visualize Elements & Elegant Lattice
 

Dear Thomas,

 

Ø  I have some problems with the output of OPAL, specifically the monitors. I have three monitors in my beam line and try to evaluate their ASCII Output with a Python Script of my own. The thing is, I realised that OPAL sometime just "appends" the output file instead of completely overriding it. Of course, that leads to corrupted data. It happened after I changed the amount of macroparticles. Is there a way to make sure that OPAL deletes or overrides all old data in its folders?

 

That should not happen and sounds like a bug. What version are you using? Can you send a minimal example input file? There is no option in OPAL that deletes all old output. To circumvent the behaviour you see, I would recommend writing a small script that deletes the output files and then executes opal.

 

Ø  I did not found a documentation regarding how to handle the "Visualize Elements"  part in the data output after a successful run in OPAL. Did I overlook it or is there none?

 

Do you mean the monitor output file? In general https://gitlab.psi.ch/OPAL/pyOPALTools  is the recommended way to analyse the different output files.

 

Ø  I will have to implement an Elegant Lattice in OPAL. Since I want to be smart in what I do, I thought I ask you, whether someone already has done a conversion like that and could provide me with some documentation, insights and/or tools. I will gladly do the same once I finished the conversion and the lattice proofed to be stable.

 

I don’t know of a conversion script, but perhaps someone has done this before.

 

Cheers, Jochem




Archive powered by MHonArc 2.6.19.

Top of Page