Skip to Content.
Sympa Menu

opal - Re: [Opal] The problem of the command "DUMPEMFIELDS" and "DUMPFIELDS"

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] The problem of the command "DUMPEMFIELDS" and "DUMPFIELDS"


Chronological Thread  
  • From: "Calvo Portela, Pedro" <Pedro.Calvo AT ciemat.es>
  • To: Dou Guoliang <douguoliang AT impcas.ac.cn>
  • Cc: opal <opal AT lists.psi.ch>
  • Subject: Re: [Opal] The problem of the command "DUMPEMFIELDS" and "DUMPFIELDS"
  • Date: Mon, 17 Jul 2023 08:16:26 +0000
  • Accept-language: es-ES, en-US

Hi Dou


With the latest stable version of OPAL, are you still getting the error you pointed out in your first message? Have you tried to implement the suggestions made by the rest of my colleagues? If you provide us the input file, we can try to check the bug and fix it


Best regards

Pedro


De: Dou Guoliang <douguoliang AT impcas.ac.cn>
Enviado: domingo, 16 de julio de 2023 11:13:32
Para: Calvo Portela, Pedro
Cc: opal
Asunto: Re: [Opal] The problem of the command "DUMPEMFIELDS" and "DUMPFIELDS"
 
Hi,Pedro

Thanks for your reply.

I ran it again in the last stable version of OPAL(OPAL-2022.1), and found that the table head of the output file shows the unit of position coordinates is right.

Best regards,
Dou 
Dou Guoliang
Institute of Modern Physics
Chines Academy of Science
douguoliang AT impcas.ac.cn
---- Replied Message ----
From Calvo Portela, Pedro<Pedro.Calvo AT ciemat.es> Date 7/14/2023 14:31 To opal<opal AT lists.psi.ch> ,
Dou Guoliang<douguoliang AT impcas.ac.cn> Subject Re: [Opal] The problem of the command "DUMPEMFIELDS" and "DUMPFIELDS"

Hi Dou


I don't know the reason of your error with Dumpfields. However, Dumpfields and DumpEMFields have been modified in the last to release version of OPAL. Please check the following links:

https://gitlab.psi.ch/OPAL/src/-/issues/651

https://gitlab.psi.ch/OPAL/src/-/issues/691


In one of those issue, we fix the unit problem that you mention.


My suggestion is that you should use the last stable version of OPAL (OPAL-2022.1). Please try to run your simulation with this version and then let me know if your error still there.


Best regards

Pedro

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


De: opal-request AT lists.psi.ch <opal-request AT lists.psi.ch> en nombre de Dou Guoliang <douguoliang AT impcas.ac.cn>
Enviado: jueves, 13 de julio de 2023 17:14
Para: opal
Asunto: [Opal] The problem of the command "DUMPEMFIELDS" and "DUMPFIELDS"
 

Hi ,all 

When I use the command "DUMPFIELDS" and "DUMPEMFIELDS" , the opal_2.4 shows the error (annex 1):

Error> *** Error:
Error> Internal OPAL error:
Error> Assertion 'idx.i < num_gridpx_m - 1' failed.
Error> idx.i = 118, num_gridpx_m - 1 = 118.000000
Error> in
Error> /afs/psi.ch/user/g/gsell/private/src/OPAL/src/src/Classic/Fields/FM3DH5BlockBase.h, line 163

I have checked my inputfile ,and there is no wrong experssion. The detailed experssion is :

DUMPEMFIELDS, COORDINATE_SYSTEM = Cartesian, X_START= -0.8, X_STEPS=1601, DX= 0.001, Y_START=-0.25, Y_STEPS=501, DY= 0.001, Z_START=-0.02, Z_STEPS=41, DZ=0.001, T_START=0,T_STEPS=1, DT=0.1 ,FILE_NAME="FIELDEM-MAPXYZ.dat";

When I try to split the original output area of X into two parts, opal can output the corresponding two parts normally. First change X_STEPS to 117, and then change X_START and X_STPES  to -0.215 and 204.

And I re-ran another cyclotron simulation and got the same error, except idx.i changed to 14 .

In addition, I found that the unit of position coordinates of command  "DUMPEMFIELDS" and "DUMPFIELDS" in the opal is defined as meters, but in fact, the table head of the output file shows the unit of position coordinates is millimeter. (annex 2)

Has anyone met this error?

Best regards,
Dou 



Dou Guoliang
Institute of Modern Physics
Chines Academy of Science
douguoliang AT impcas.ac.cn



Archive powered by MHonArc 2.6.24.

Top of Page