opal AT lists.psi.ch
Subject: The OPAL Discussion Forum
List archive
- From: Ezgi Sunar <ezgi.sunar AT mnt.com.tr>
- To: "Calvo Portela, Pedro" <Pedro.Calvo AT ciemat.es>, "opal AT lists.psi.ch" <opal AT lists.psi.ch>
- Cc: Milo Conard <milo AT pac.be>, Uğur Bozluolcay <ugur.bozluolcay AT bozlu.com.tr>, Ezgi Sunar <sunarezgi AT gmail.com>
- Subject: RE: [Opal] Problem with Cyclotron Tune and Phase Calculation
- Date: Fri, 21 Jun 2024 08:37:03 +0000
- Accept-language: tr-TR, en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mnt.com.tr; dmarc=pass action=none header.from=mnt.com.tr; dkim=pass header.d=mnt.com.tr; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=vclNKKKTLcYklh2xANvVR0V7nMv5v++TALw4VL29qB0=; b=ScnRO3ItuVCme3tAwaa2teKuA0AducncmM7/tHOcQcu6aRh4N/Guf/RAHxZerTmwlPVyk3FvfJ4EspjeMRU+amZrr3bPZqi0NtuELOzmW6uqtiq9sqcWha9Il5C7fsSVMd+V72iWkHCzxVRGTHbAqSK8uMs82gW5fSfH7i5/2UMWTiXWmziu8Vt2V4npFaz2stcbtw1ehaF8IvxCnnTA4PuZn1fHpHR8sZ+O/o1Ixlzdqd1qFSG7qzOcS5h+Ji3OW2F+3LukT+uoZWP0/b1vdMU9NH8MnB12U0XYwgioXZL91ESOLsEZWKalXZHAtH87jKeN9A2su97pgy74Veyb2Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NKuNzOM4B6qmBZBm5FNfDI2vsj/GrsXd0l6CdHsAV/lM8PIhz7UQPu+9bT5w4Fpj+Vqe7I/dwBfvecHxm6/vZhmkCnV3N3Zok3hmz0/h/NQRrSjft1JEE4AfZdsN4wnRl+W/D5WxbDby6Rabylau4ocAnkIgOC1SUDsJbLuUkKRM6DpVr2Cqy+LejVaPstgt6ZAadUVwtb99838SJYWDgM+ZuiBS7J3sOK77rijWlSgXGONIj+4epIUDNOyYrrJRNJdhzmHOgmXIguhT1neRKQY/d/gM9Z4852v36BDvZKzTbIkCGLHXDx66esbt11eCtc1ZsVOyHyyTly3WelIMDw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mnt.com.tr;
Dear Pedro, This is following up on my previous email regarding a potential issue with the fieldmap format Fieldmap Format:
4.0 4.0 0.0 2.0 LABEL=S03AV CFELD=FIELD NREC= 60 NPAR= 3 LPAR= 7 IENT= 1 IPAR= 1 3 60 179 30 8 8 70 LPAR= 2169 IENT= 2 IPAR= 2 0.100000000E+01 0.190000000E+04 0.200000000E+02 0.000000000E+00 0.333333343E+00
Cyclotron.cpp Behavior: The program crashes despite having the correct number of lines in my fieldmap. Here's an example: My interpretation is that cyclotron.cpp can't read certain variables even though it processes the header lines correctly (grid points are calculated/read correctly according to the starting lines).
Question: In my previous attempt to resolve the program crashing, I unfortunately sent you a modified fieldmap where I increased the number of B-field lines by copying and pasting the section. While this workaround allowed the program to compile and
run to completion, it's important to understand that this doesn't necessarily reflect a proper simulation. The additional lines are simply duplicates and don't contain valid data for the cyclotron physics.
I hope this explanation clarifies my observations and questions. Please let me know if you have any insights or require further details. Many thanks. Regards, Ezgi
From: Ezgi Sunar
Dear Pedro, I apologize for the confusion and for not explaining the fieldmap format beforehand. I need the equilibrium orbit information for my magnet design, including phase and time. To achieve this, I used both ring and carboncycl cyclotron simulations. Therefore, I modified my original fieldmap file to be compatible with the formats described in the manual. You can find both modified versions attached:
I look forward to your findings. Thank you very much for your help. Many thanks,
From: Calvo Portela, Pedro <Pedro.Calvo AT ciemat.es>
Dear Ezgi
The format of the fieldmap header you are using is not correct. Therefore, it does not perform anything in the simulation, since the grid point parameters along the radial and azimuthal coordinates are missing. You can take a look at the documentation (https://amas.web.psi.ch/opal/Documentation/master/#sec.opalcycl.fieldmap) OPAL should detect the error and send a message in case the fields are not properly defined. I will open an issue to fix it.
When you adapt the magnetic field to the right format, please send it to me and I will keep working on it.
Best regards Pedro
De: Ezgi Sunar <ezgi.sunar AT mnt.com.tr>
Dear Pedro, I'm attaching the files for a simple run I'm using for training purposes. The field map and parameter values are just examples.
Thanks in advance for your help. Sincerely,
From: Calvo Portela, Pedro <Pedro.Calvo AT ciemat.es>
Dear Ezgi
Could you please provide me the input file, as well as the fieldmap and the distribution you are using? So I can try to run your simulation and find the specific error.
Regarding the gnu.out and eb.out files you need "OPTION INFO=TRUE to be activated.
Best regards Pedro
----------------------------------------------- Dr. Pedro Calvo Portela Technology Department CIEMAT - Av. Complutense 40, 28040 Madrid (Spain)
De:
opal-request AT lists.psi.ch <opal-request AT lists.psi.ch> en nombre de Ezgi Sunar <ezgi.sunar AT mnt.com.tr>
Dear Andy,
Thank you so much for your prompt reply. The insightful explanation regarding the repository page helped me a lot. However, I need your support one more time. I've thoroughly explored the repository, but I'm stuck finding information on how to calculate orbits in this specific mode. Here's what I've encountered during my trials:
My understanding (please correct me if I'm wrong) is that the workflow involves running a single-particle simulation first. This analyzes the orbits at increasing energy levels. Subsequently, a two-particle simulation would be used with the aim of obtaining accurate tune calculations. However, even if this is the correct approach, I'm unsure how to use the output from the single-particle simulation as input for the two-particle one. I've attached all the relevant output files for your reference. Thank you once again for your continued support. I greatly appreciate your assistance in navigating this challenge. Sincerely,
From: Adelmann Andreas <andreas.adelmann AT psi.ch>
Hi Sunar
You specify the injection energy in the input file, check line 44 in https://gitlab.psi.ch/OPAL/documentation/manual/blob/master/examples/Injector2.in for the PSI Injector example. P0 will then be used on line 282 on the BEAM command
YES, CARBONCYCL and the detailed description can be found in the manual section 7.4.1.
FIXPO is used to calculate the reference solution only. This is only for making sure the OPAL tune calculation is correct.
To me your particle (initial condition) starts out of the field map, please check.
Cheers Andy
|
Attachment:
B_data.dat
Description: B_data.dat
-
RE: [Opal] Problem with Cyclotron Tune and Phase Calculation,
Ezgi Sunar, 06/18/2024
- Re: [Opal] Problem with Cyclotron Tune and Phase Calculation, Adelmann Andreas, 06/18/2024
-
Re: [Opal] Problem with Cyclotron Tune and Phase Calculation,
Calvo Portela, Pedro, 06/18/2024
-
Message not available
-
Message not available
-
Message not available
-
RE: [Opal] Problem with Cyclotron Tune and Phase Calculation,
Ezgi Sunar, 06/21/2024
-
RE: [Opal] Problem with Cyclotron Tune and Phase Calculation,
Ezgi Sunar, 06/25/2024
- Re: [Opal] Problem with Cyclotron Tune and Phase Calculation, Calvo Portela, Pedro, 06/25/2024
- RE: [Opal] Problem with Cyclotron Tune and Phase Calculation, Ezgi Sunar, 06/25/2024
-
RE: [Opal] Problem with Cyclotron Tune and Phase Calculation,
Ezgi Sunar, 06/25/2024
-
RE: [Opal] Problem with Cyclotron Tune and Phase Calculation,
Ezgi Sunar, 06/21/2024
-
Message not available
-
Message not available
-
Message not available
Archive powered by MHonArc 2.6.24.