Skip to Content.
Sympa Menu

opal - Re: [Opal] 3D electric fields data

opal AT

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] 3D electric fields data

Chronological Thread 
  • From: "Adelmann Andreas (PSI)" <andreas.adelmann AT>
  • To: opal <opal AT>
  • Subject: Re: [Opal] 3D electric fields data
  • Date: Wed, 22 Jan 2020 08:35:34 +0000
  • Accept-language: en-US, de-CH
  • Authentication-results: localhost; iprev=pass ( smtp.remote-ip=; spf=pass; dmarc=skipped

@Pedro can you add a "how to" to the Wiki, such that this is
in the future, clear to all.

Cheers A
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
Phone Home: xx41 62 891 91 44
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 Jan 2020, at 09:11, Calvo Portela, Pedro <Pedro.Calvo AT> wrote:

Dear Taufik

I tell you how I get the electric field for BANDRF.

I get the data from ANSYS, and then I have to get a file compatible with ascii2h5block_asgic.cpp. So, I've develop a MATLAB program to interpolate the data to cartesian coordinates employing the properly mesh that I want for my h5part file. I could provide you an example of this file, if you need it. Then, I run cpp program with the properly limits and size of the mesh.


De: Taufik Ssi [taufikis AT]
Enviado: domingo, 19 de enero de 2020 11:37
Para: Snuverink Jochem (PSI)
CC: Calvo Portela, Pedro; opal
Asunto: Re: [Opal] 3D electric fields data

Thank you.
How is the format of the electric field data from the TOSCA? Should I get the data from the TOSCA at  the points of a polar coordinate and write the data in the Cartesian coordinate?

Best regards,

On Mon, Jan 13, 2020 at 10:13 PM Snuverink Jochem (PSI) <jochem.snuverink AT> wrote:

Dear Taufik,

Please find the file attached.

Best regards,


On 10/01/2020 08:30, Taufik Ssi wrote:
Dear Pedro Calvo Portela,
Thank you. I installed OPAL from binary distribution. In OPAL 2.0.2 version, there is src folder but it's only empty folder. Meanwhile, there is no such folder In the OPAL 2.2.0. So how to get ascii2h5block_asgic.cpp?
Best regards,
Center for Accelerator Science and Technology -
National Nuclear Energy agency of Indonesia
On Thu, Jan 9, 2020 at 4:34 AM Calvo Portela, Pedro <Pedro.Calvo AT> wrote:
Dear Taufik
The file format needed in TYPE=BANDRF is h5part. You can convert any ascii data file to h5part with the cpp program found in src/tools/BandRF/ascii2h5block_asgic.cpp, in your opal directory. You have to modify the geometric limits of the region of the electric field and the mesh inside this file
Pedro Calvo Portela
Unidad de Aceleradores - CIEMAT
Avenida Complutense 40, Edificio 7
28040 Madrid
Tel: +34 – 91 496 2554

De: opal-request AT [opal-request AT] en nombre de Taufik Ssi [taufikis AT]
Enviado: jueves, 09 de enero de 2020 8:40
Para: opal
Asunto: [Opal] 3D electric fields data

Dear All,
I want to import Dee electric fields data for cyclotron particle tracking
simulation. From OPAL manual, it can be done by using TYPE=BANDRF.
However, I am still confused about how the 3D electric field data format
should be written. Can anyone help me with this case?
Best regards,

Archive powered by MHonArc 2.6.19.

Top of Page