Skip to Content.
Sympa Menu

opal - Re: [Opal] 3D electric field file's structure

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] 3D electric field file's structure


Chronological Thread  
  • From: farzaneh panahi <f66.panah AT yahoo.com>
  • To: "Snuverink Jochem (PSI)" <jochem.snuverink AT psi.ch>
  • Cc: opal <opal AT lists.psi.ch>
  • Subject: Re: [Opal] 3D electric field file's structure
  • Date: Tue, 1 Jun 2021 15:48:58 +0000 (UTC)
  • Authentication-results: localhost; iprev=pass (sonic313-20.consmr.mail.ir2.yahoo.com) smtp.remote-ip=77.238.179.187; spf=pass smtp.mailfrom=yahoo.com; dkim=pass header.d=yahoo.com header.s=s2048 header.a=rsa-sha256; dmarc=pass header.from=yahoo.com

thanks Jochem

I convert my file with python.
Now I get this error


OPAL> * Read both median plane B field map and 3D E field map of RF cavity for compact cyclotron1
OPAL> * Reading e-field_1cmed.h5part
Error>
Error> *** User error detected by function "Fieldmap::getFieldmap()"
Error>     Couldn't determine type of fieldmap in file "e-field_1cmed.h5part"
Error>     Couldn't determine type of fieldmap in file "e-field_1cmed.h5part"
--------------------------------------------------------------------------

Can you guide me?

Panah

On Tuesday, June 1, 2021, 7:27:45 PM GMT+4:30, Snuverink Jochem (PSI) <jochem.snuverink AT psi.ch> wrote:


Dear f66.panah,

Attached is a C-program and Readme that converts an ASCII output to the h5 format, it can also be found in the repository under tools/BandRF. You might need to adapt it to your use case as it was written for ANSYS output files.

Hope that helps,
Jochem

On 30 May 2021, at 05:35, f66.panah AT yahoo.com wrote:

Hi everyone,
I am using OPAL to simulate cyclotron.
I can import magnetic field from OPERA by text format (.txt).
Now I want to import an electric field from CST which is a text file. I know
the electric field file must be in h5part format and I should convert the txt
file to h5part. But I don't know how should I define its structure. My text
file consists of some columns for positions (‘x’,’y’,’ z’) and electric field
values (‘Ex’ , ‘Ey’ , ‘Ez’).
Also, how can I define the steps and position of data?
Any help is appreciated




Archive powered by MHonArc 2.6.19.

Top of Page