Skip to Content.
Sympa Menu

opal - RE: [Opal] Electric field map in BANDRF cyclotron

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

RE: [Opal] Electric field map in BANDRF cyclotron


Chronological Thread  
  • From: Zhang Hui <hui.zhang AT psi.ch>
  • To: Dirk Vandeplassche <dirkvdpla AT skynet.be>, "opal AT lists.psi.ch" <Opal AT lists.psi.ch>
  • Cc: "opal-developers AT lists.psi.ch" <opal-developers AT lists.psi.ch>
  • Subject: RE: [Opal] Electric field map in BANDRF cyclotron
  • Date: Mon, 16 Jun 2025 14:11:50 +0000
  • Accept-language: de-DE, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=psi.ch; dmarc=pass action=none header.from=psi.ch; dkim=pass header.d=psi.ch; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PrPz670Kt3F30AoBuE+jd/2F3wqxKv31JuPyJmKaz34=; b=IPl5F3SYx7Zuu/n1xijU/0Qw2Rlye7+9GUUFn6b0vCXu5C+a/zGKKxfYTkUPGHnfbQbC7LjkchEyZS2+yUgnuenOLy1bL4zFlSUz8paMKPsxFSW6lxEysIR2egFgj990pbGnkNs+NQ4FMB0NvqVXW0EbFOXtPTi+u7R55OcQbZt6bTz2S2auqHa7GfMFce6shLTKP6dQ2P+oDT4Bpc/m0FD/D5+xWU7szZEkS+UH4XznPqBkFTO2jpm0Aip7HBCcfzitdXC5/il+OnUXRfBYfzufzCKggqdYYSD+jFk59bUTrpb0sIuu5v5gNjUdk246UIQ0ZhHUWRpErH86/f4WQQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=S1+tX8/o+O8Hx7A095uqImCtZYhEowHSYkbB1e+wCX7S3Uqsiy//NeNHkezKxzeGhBoRhlpvQZEa7eWLgtcZDWd7JanbaucIjQzx3NPjZt7gi0FcF/FhfhWJgX/4mQ0WmmXsWPUqGUQdKyY4Qd28PqSnVdXdykqweG581hy9w0lLdYh+gd/QSvGzf9h48Q3wmbVrhE2W03IGS4TmlnbsXpXFndAbj0FzQaFLuH/oHQP2snWMOTKMK9Nnwe1u8b7hDrraOD1/Pw6uDuZzRNGuGKFFIYZ94D7+8P+Y9t/gCdI7hW0YvXlOntibujJ+AzV1DfPeY3hXdXXlPyjASVT7WA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=psi.ch;

Dear Dirk,

 

I was transforming ascii file to *.h5part map four years ago. The format of my ascii file looks like the following

 

nx ny nz

nx ny nz

nx ny nz

x1 y1 z1 Ex1 Ey1 Ez1

x1 y1 z2 Ex2 Ey2 Ez2

x1 y1 z3 Ex3 Ey3 Ez3

 

The original c++ code doing the transformation must be from Andreas. But I am not sure about that.

 

I would think, that the head could be different. However, the numbers of grids in x, y, y-directions have to be defined in head. And this information has to be correctly transferred into .h5part file.

 

The .h5part map can be visualized by a program called VisIt. If the .h5part file cannot be opened, or it looks strange, then something must be wrong, in the ascii data, and/or during the transformation.

 

Best regards,

 

Hui

 

 

 

__________________________________________
Paul Scherrer Institut
Hui Zhang
WBGA/C34
Forschungsstrasse 111
5232 Villigen PSI
Schweiz

Telefon: +41563105398
E-Mail: hui.zhang AT psi.ch

From: opal-request AT lists.psi.ch <opal-request AT lists.psi.ch> On Behalf Of Dirk Vandeplassche
Sent: Monday, June 16, 2025 1:05 PM
To: opal AT lists.psi.ch
Cc: opal-developers AT lists.psi.ch
Subject: [Opal] Electric field map in BANDRF cyclotron

 

Dear all,

 

It would really be very helpful for me to obtain a detailed description of the ASCII-version of the electric field map to be used in a BANDRF-type cyclotron. I am especially interested in the header of this file, hoping that it may solve the error in OPAL "Couldn't determine type of fieldmap in file “efield.h5part””. The conversion from the ASCII file to the binary file with the “ascii2h5block” tool seems to work well — anyway it does not give any error message and returns a correct number of data with a header like

 

0

101

101

61

0.0005 0.0005 0.0001

-0.025         -0.025         -0.003         502.1066965                 342.215468                    -1294.568941



Its output is

 

Combine efield2.txt and  to efield2.h5part

Frequency 7.2615e+07 [Hz]

H5block grid

H5gridPx 101

H5gridPy 101

H5gridPz 61

number Edata 622261

gridPx 101 stepEx 0.0005

gridPy 101 stepEy 0.0005

gridPz 61 stepEz 0.0001

number Bdata 0

Done bye ...



Any hint that may solve the problem is welcome !



Many thanks in advance,

Dirk Vandeplassche






Archive powered by MHonArc 2.6.24.

Top of Page