Skip to Content.
Sympa Menu

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

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] 3D electric fields data


Chronological Thread 
  • From: "Calvo Portela, Pedro" <Pedro.Calvo AT ciemat.es>
  • To: Taufik Ssi <taufikis AT gmail.com>, opal <opal AT lists.psi.ch>
  • Subject: Re: [Opal] 3D electric fields data
  • Date: Tue, 25 Feb 2020 11:04:08 +0000
  • Accept-language: es-ES, en-US

Dear Tauffik

You have to include all the lines related to magnetic field in ascii2h5part although you don't include any magnetic field file, because opal need it.

Try to uncomment the lines, as in the example that I sent you.

Best regards
Pedro

De: Taufik Ssi [taufikis AT gmail.com]
Enviado: lunes, 24 de febrero de 2020 11:20
Para: Calvo Portela, Pedro; opal
Asunto: Re: [Opal] 3D electric fields data

Dear Pedro,

I have successfully converted electric field ascii data to .h5part file. Since, I only need electric field data, I changed the ascii2h5block.cpp for converting Electric field only and ignoring magnetic field data as shown in the attached file. After conversion, I run the OPAL with an opal input as in the attachment, but I got an error message as in the opal_error file. Do you know how to solve this problem?

Best regards,
Taufik

On Sat, Feb 22, 2020 at 8:46 AM Taufik Ssi <taufikis AT gmail.com> wrote:
Dear Pedro,

Thank you. I have succeeded compiling ascii2h5block.cpp.
I compiled it in OPAL-1.4.0-1 binary package environment by running this command "source /home/taufik/OPAL-1.4.0-1/etc/profile.d/opal.sh" before.
If I set the library to OPAL-1.4.0-1 in the compile_ascii3h5block.sh file, I still got an error. Thus, in the compile_ascii3h5block.sh file, I set the library path to OPAL-2.2.0 instead of OPAL-1.4.0-1.

Best regards,
Taufik




On Fri, Feb 21, 2020 at 6:40 AM Calvo Portela, Pedro <Pedro.Calvo AT ciemat.es> wrote:
Hi Taufik

Respect to gcc installation, I don't know what is the problem. Maybe there are some pre-requirements...

Respect to ascii2h5block, the last days some issue about this (https://gitlab.psi.ch/OPAL/src/issues/469) has been detected. I will work on that, and told you. But it seems a problem in your path to HDF5. You have to ensure where you have installed hdf5 and put it on the path properly

PD: Remember to include the futures mails opalist in CC

Best regards
Pedro

De: Taufik Ssi [taufikis AT gmail.com]
Enviado: viernes, 21 de febrero de 2020 11:19
Para: Calvo Portela, Pedro
Asunto: Re: [Opal] 3D electric fields data

Dear Pedro,

Thank you for spending your time for guiding me. I have tried to compile ascii2h5block using OPAL-1.4. But I still have some error related to h5_file_t file as shown in the attachment (compile_err). what should I do?
I have succeed to install up to build boost stage of section 3.2.2, but my colleague stack to the gcc installation stage as shown in the attachment(GCC error.txt). Do you know what cause this error?

Best regards

Taufik

On Fri, Feb 14, 2020 at 4:12 AM Calvo Portela, Pedro <Pedro.Calvo AT ciemat.es> wrote:
Dear Tauffik

Sorry for the delay, I was a bit busy....

To clone OPAL and compile from source you need special acces to the repository. But you don't need to do it for your purpose.

You have to follow the recipes in the links of section 3.2.2

Anyway, you can compile ascii2h5block your OPAL-1.4 binary package, and then read it with:
  • source /home/pedrocp/OPAL-1.4.0-1/etc/profile.d/opal.sh

After, you could change your source to other oapl version

/home/pcalvo/software/bin is the directory where i compile and install opal, you could remove this reference in your path

Cheers
Pedro

De: Taufik Ssi [taufikis AT gmail.com]
Enviado: viernes, 07 de febrero de 2020 4:04
Para: Calvo Portela, Pedro
Asunto: Re: [Opal] 3D electric fields data

Dear Pedro,

in your file there is this  command:
export PATH=$PATH:/home/pcalvo/opal_binaries/OPAL-1.4.0-1/include/:/home/pcalvo/opal_binaries/OPAL-1.4.0-1/bin/:/home/pcalvo/opal_binaries/OPAL-1.4.0-1/lib/:/home/pcalvo/software/bin:/home/pcalvo/software/lib/:/home/pcalvo/software/include:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin/:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/pcalvo/bin/
export LD_LIBRARY_PATH=/home/pcalvo/opal_binaries/OPAL-1.4.0-1/lib/:$LD_LIBRARY_PATH
export HDF5_INCLUDE=/home/pcalvo/src/hdf5-1.10.0/include

what program/library is referred from /home/pcalvo/software/bin ?

I also try to compile from beginning as you suggested, starting from section 3.2. of  https://gitlab.psi.ch/OPAL/src/wikis/For-Developers/Compile-OPAL#user-content-build-everything-from-scratch ,
and run this command git clone git AT gitlab.psi.ch:OPAL/build-recipes.git , but I got this message:

[taufik@localhost ~]$ git clone git AT gitlab.psi.ch:OPAL/build-recipes.git
Cloning into 'build-recipes'...
git AT gitlab.psi.ch: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
[taufik@localhost ~]$

Is it necessary to run git clone git AT gitlab.psi.ch:OPAL/build-recipes.git?

Best regards,

Taufik



On Tue, Feb 4, 2020 at 3:16 AM Calvo Portela, Pedro <Pedro.Calvo AT ciemat.es> wrote:
Dear Taufik

It seems that your are compiling wrong the file. It is not intuitive, and it was the same in my case when I started to work with OPAL.

I've developed a script to run ascii2h5block some years ago, although it is a bit rudimentary, I send you attached. You have to change the directories abd the OPAL version properly.

I think that your problem is that you have to link all the libraries in the path, and include some flags in the compilation

Cheers
Pedro

De: Taufik Ssi [taufikis AT gmail.com]
Enviado: lunes, 03 de febrero de 2020 12:13
Para: Calvo Portela, Pedro
Asunto: Re: [Opal] 3D electric fields data

Dear Pedro,

I have solved the H5hut.h error but now the output of compiling ascii2h5block_asgic.cpp shown in the attachment. I think I still face some error. Do you understand how to solve this problem?
If this problem can not be solved, I will try to follow your installation suggestion in https://gitlab.psi.ch/OPAL/src/wikis/For%20Developers/Compile-OPAL#user-content-build-everything-from-scratch. From which section should I started, 3.2.1 or 3.2.2?
Thank you.

Best regards,
Taufik

On Mon, Feb 3, 2020 at 2:35 AM Calvo Portela, Pedro <Pedro.Calvo AT ciemat.es> wrote:
Dear Taufik

I would need to know why the installation process failed.

Anyway, to install H5hut, you have to install before some other programs that H5hut could need, as gmp, mpfr, mpc, gcc, cmake and HDF5. You have some instructions in https://gitlab.psi.ch/OPAL/src/wikis/For-Developers/Compile-OPAL, in section 3.2. To install H5hut, you could follow https://gitlab.psi.ch/OPAL/build-recipes/raw/master/090-build-h5hut

I suggest you to install all the software by terminal a directory in your home, to prevent confusion with the path

Don't hesitate to write me with any questions, and include the next doubts in the opallist mailing list, because there are more people with more knowledge about this

Cheers
Pedro

De: Taufik Ssi [taufikis AT gmail.com]
Enviado: domingo, 02 de febrero de 2020 14:47
Para: Calvo Portela, Pedro
Asunto: Re: [Opal] 3D electric fields data

Dear Pedro,

I have got the electric field data as  an input  for ascii2h5block_asgic.cpp , in Cartesian coordinates. However I have a problem while compiling it. When I tried to compile with g++ I got  this error H5hut.h: No such file or directory  #include "H5hut.h". I tried to download by H5hut source from git clone https://gitlab.psi.ch/H5hut/src.git and follow the installation procedure as in this link: https://gitlab.psi.ch/H5hut/src/wikis/Installation/Installation  but failed. Please help me how to install it. I just begin studying Linux for understanding Opal.

Best regards,

Taufik


On Fri, Jan 24, 2020 at 2:51 AM Calvo Portela, Pedro <Pedro.Calvo AT ciemat.es> wrote:
Dear Taufik

I send you the Matlab interpolation file. If you have any problem with interpolation, please tell me.

Cheers
Pedro

De: Taufik Ssi [taufikis AT gmail.com]
Enviado: viernes, 24 de enero de 2020 0:17
Para: Calvo Portela, Pedro
Asunto: Re: [Opal] 3D electric fields data

Dear Pedro,

Ok. I would like to have the example. Please send to me. 

Regards, 
Taufik

On Wed, Jan 22, 2020, 15:11 Calvo Portela, Pedro <Pedro.Calvo AT ciemat.es> 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.

Cheers
Pedro


De: Taufik Ssi [taufikis AT gmail.com]
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,
Taufik

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

Dear Taufik,

Please find the file attached.

Best regards,

Jochem

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,

 

Taufik

Center for Accelerator Science and Technology -

National Nuclear Energy agency of Indonesia

https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif

 

On Thu, Jan 9, 2020 at 4:34 AM Calvo Portela, Pedro <Pedro.Calvo AT ciemat.es> 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

 

Cheers

 

Pedro Calvo Portela
Unidad de Aceleradores - CIEMAT
Avenida Complutense 40, Edificio 7
28040 Madrid
Tel: +34 – 91 496 2554


De: opal-request AT lists.psi.ch [opal-request AT lists.psi.ch] en nombre de Taufik Ssi [taufikis AT gmail.com]
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?
Thanks,
 
Best regards,
Taufik

 




Archive powered by MHonArc 2.6.19.

Top of Page