opal AT lists.psi.ch
Subject: The OPAL Discussion Forum
List archive
- From: Daniel Winklehner <winklehn AT mit.edu>
- To: "Snuverink Jochem (PSI)" <jochem.snuverink AT psi.ch>, Sébastien Toussaint <sebastien.toussaint AT uclouvain.be>
- Cc: opal <opal AT lists.psi.ch>
- Subject: RE: [Opal] OPAL - central region
- Date: Fri, 24 Jul 2020 16:31:57 +0000
- Accept-language: en-US
Hi Sébastien,
I am using a python script (attached) to convert from COMSOL to h5. It’s a bit barebones right now, but you can see the format that OPAL expects in the h5 file. It assumes that you export from COMSOL in spreadsheet format using a grid and no header lines. But you can easily change the script to skip header lines or even extract the length and field units from the COMSOL header if you like.
Best, Daniel
-- Daniel Winklehner Research Scientist Massachusetts Institute of Technology Laboratory for Nuclear Science Phone: +1 617 715 4280 Email: winklehn AT mit.edu --
From: opal-request AT lists.psi.ch <opal-request AT lists.psi.ch>
On Behalf Of Snuverink Jochem (PSI)
Dear Sébastien Toussaint,
Thanks for your mail, I would recommend to subscribe to the OPAL mailing list at https://psilists.ethz.ch/sympa/subscribe/opal
Attached is a C-program 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.
Best regards, Jochem
From: Christof Metzger-Kraus <christof.j.kraus AT gmail.com>
Dear Mr. Toussaint,
I'm not the expert on OPAL-cycl but the two other developers I've added in CC are. I'm sure one of them can answer your question.
Best regards Christof Metzger-Kraus
Sébastien Toussaint <sebastien.toussaint AT uclouvain.be> schrieb am Fr., 24. Juli 2020, 16:35:
|
Attachment:
ascii2h5block.py
Description: ascii2h5block.py
- RE: [Opal] OPAL - central region, Snuverink Jochem (PSI), 07/24/2020
- RE: [Opal] OPAL - central region, Daniel Winklehner, 07/24/2020
Archive powered by MHonArc 2.6.19.