opal AT lists.psi.ch
Subject: The OPAL Discussion Forum
List archive
- From: "Snuverink Jochem (PSI)" <jochem.snuverink AT psi.ch>
- To: "f66.panah AT yahoo.com" <f66.panah AT yahoo.com>
- Cc: opal <opal AT lists.psi.ch>
- Subject: Re: [Opal] 3D electric field file's structure
- Date: Tue, 1 Jun 2021 14:57:40 +0000
- Accept-language: en-US, de-CH
- Authentication-results: localhost; iprev=pass (psi-seppmail1.ethz.ch) smtp.remote-ip=129.132.93.141; spf=pass smtp.mailfrom=psi.ch; dmarc=skipped
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
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
Attachment:
ascii2h5block.cpp
Description: ascii2h5block.cpp
Attachment:
Readme
Description: Readme
-
Re: [Opal] 3D electric field file's structure,
Snuverink Jochem (PSI), 06/01/2021
- Re: [Opal] 3D electric field file's structure, farzaneh panahi, 06/01/2021
Archive powered by MHonArc 2.6.19.