Error in the adjust command

https://www.dacm-logiciels.fr/tracewin
Post Reply
Czech RepublicFrancescoS
Initiated
Initiated
Posts: 41
Joined: Thu 11 Feb 2021 16:45
Country:
Czech Republic (cz)
Czech Republic

Error in the adjust command

Post by Czech RepublicFrancescoS »

Hello,

I am trying to use the diag_size_max but I am having this error:
ADJUST command
Parameter number:0 of element:'DRIFT' cannot be adjust,
it exceeds the maximum number of 'DRIFT' parameters
From -> [ELEMENTS]: get or Set element data
From -> [DIAGNOSTIC]: Plot asjust calculation
From -> [DIAGNOSTIC]: Criteria calculation
From -> [OPTIMIZATION]: Optimi3
From -> [DIAGNOSTICS]: Calculation

The code I am using is below, there are some fieldmaps that are pretty big, I can in case share everything, if needed, but I think the error can be reproduced changing the maps with quads or any other element.
I can place several DIAG_SIZE and the simulation works, but as soon as I add a DIAG_SIZE_MAX I have this error and I don't understand why.

Can you please help?

Thanks
F.

; Structure file
Drift 35 75

adjust 1 1 1 40; 150
DRIFT 63.5338 50



FIELD_MAP 70 120 0 15 -0.90801 0 0 0 B120mmIron

adjust 1 1 7 40; 150 100
DRIFT 40 50


FIELD_MAP 70 80 0 15 +0.9004 0 0 0 B80mmIron

adjust 1 1 2 40; 150 100
DRIFT 123.305 50


FIELD_MAP 70 80 0 15 -0.9004 0 0 0 B80mmIron


adjust 1 1 6 40; 150 100
DRIFT 70.2302 50


adjust 1 1 3 10 30; 150 100
DRIFT 10 50

Drift 1236 50
DIAG_SIZE 1 5 5 (2)



superpose_map_out 800 70.5649 0 0 0 -10.047
superpose_map 0 30 0 0 0 0
FIELD_MAP 70 800 0 50 0.17474 0 0 0 Rog3Blineb ;0.36 riscala da 1.465 al valore di .0448 per i protoni da 60 MeV

drift 95.0334 300


superpose_map_out 800 -70.5649 0 0 0 10.047
superpose_map 0 -30 0 0 0 0
FIELD_MAP 70 800 0 50 -0.17474 0 0 0 Rog3Blineb


drift 22.5167 300


diag_size_max 1 10 10 0 0.01 (1)
Aperture 8 20 0
drift 50 300

Aperture 8 20 0;0.5 10 0
diag_size 1 5 8 0 0.01 (1)

drift 22.5167 300

superpose_map_out 800 -70.5649 0 0 0 10.047
superpose_map 0 -30 0 0 0 0
FIELD_MAP 70 800 0 50 -0.17474 0 0 0 Rog3Blineb

drift 95.0334 300

superpose_map_out 800 70.5649 0 0 0 -10.047
superpose_map 0 30 0 0 0 0
FIELD_MAP 70 800 0 50 0.17474 0 0 0 Rog3Blineb



DIAG_SIZE 1 5 5 0 0.01 (2)
Aperture 20 20 1; 10 10 1

DRIFT 500 50
END
User avatar
FranceDidier
Administrator
Administrator
Posts: 1227
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Error in the adjust command

Post by FranceDidier »

Dear Francesco,

Unfortunately, simply by replacing your FIELD_MAP with quadrupoles, I can’t see any errors like the one you’ve described.
You’ll need to send me your entire project.

Regards,

Didier
Czech RepublicFrancescoS
Initiated
Initiated
Posts: 41
Joined: Thu 11 Feb 2021 16:45
Country:
Czech Republic (cz)
Czech Republic

Re: Error in the adjust command

Post by Czech RepublicFrancescoS »

Goodmorning Didier,

sorry for my late answer. I have sent you the project with the fieldmaps using WeTransfer.

Cheers
F.
User avatar
FranceDidier
Administrator
Administrator
Posts: 1227
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Error in the adjust command

Post by FranceDidier »

Dear Francesco,

Sorry, I haven't received anything !

Regards,

Didier
Czech RepublicFrancescoS
Initiated
Initiated
Posts: 41
Joined: Thu 11 Feb 2021 16:45
Country:
Czech Republic (cz)
Czech Republic

Re: Error in the adjust command

Post by Czech RepublicFrancescoS »

Strange, you have a PM

Thanks
F.
User avatar
FranceDidier
Administrator
Administrator
Posts: 1227
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Error in the adjust command

Post by FranceDidier »

A PM ?
Please make a zip file and send me as private message here

Didier
Czech RepublicFrancescoS
Initiated
Initiated
Posts: 41
Joined: Thu 11 Feb 2021 16:45
Country:
Czech Republic (cz)
Czech Republic

Re: Error in the adjust command

Post by Czech RepublicFrancescoS »

Yes, I sent you a private message (PM) with the link, and another one now with the zip folder of the project
User avatar
FranceDidier
Administrator
Administrator
Posts: 1227
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Error in the adjust command

Post by FranceDidier »

Dear Francesco,

You have to upgrade your code. This error has already been fixed.

Regards,

Didier
Czech RepublicFrancescoS
Initiated
Initiated
Posts: 41
Joined: Thu 11 Feb 2021 16:45
Country:
Czech Republic (cz)
Czech Republic

Re: Error in the adjust command

Post by Czech RepublicFrancescoS »

ok, I'll do it, thanks
F.
Czech RepublicFrancescoS
Initiated
Initiated
Posts: 41
Joined: Thu 11 Feb 2021 16:45
Country:
Czech Republic (cz)
Czech Republic

Re: Error in the adjust command

Post by Czech RepublicFrancescoS »

Hello Didier,

there is another problem with the new version.
I have this error message:
Following error occurred :

'Part of the beam distribution never reaches the end of the field map!
Try selecting ‘Losses in FIELD_MAP’ option of ‘Simulation options’ of the main page

From->[PARTRAN] : Beam transport in field map
From->[PARTRAN] Library
From->[PROCESS_ENVELOPE] : Run PARTRAN
From->[PROCESS_ENVELOPE] : Run multiparticle program'

OS : Win11 (64-bit)
Gcc version : 4.7.1
User : francesco
Computer : msi
Network : Yes
Free memory : 41.0756 GBytes
Free disk space : 97.2494 GBytes
Handles : 837
Font [8] : 'MS Shell Dlg 2'
DPI : 96
TraceWinVersion : 2.26.0.12

[ Ref_number: 2074-174 ][12]

I did select Losses in Field map but it doesn't change...
Post Reply