How to vary electric field intensity factor in FIELD_MAP

https://www.dacm-logiciels.fr/tracewin
Post Reply
Indiasarvesh
Initiated
Initiated
Posts: 45
Joined: Wed 30 Mar 2022 16:12
Location: IUAC Delhi and CERN Geneva
Country:
India (in)
India

How to vary electric field intensity factor in FIELD_MAP

Post by Indiasarvesh »

I tried using command MATCH_FAM_GRAD, its not working here, not able to change Electric field intensity factor..It works for solenoids to vary magnetic field intensity factor. But here, I am using electric field map from POISSON code for einzel lens. Please suggest how to vary it to match next stage twiss parameters.

MATCH_FAM_GRAD 1 1
FIELD_MAP 4 142 0 10 0 1 1 1 file
FranceNicolasChauvin
Global moderators
Global moderators
Posts: 8
Joined: Fri 2 Sep 2022 11:39
Country:
France (fr)
France

Re: How to vary electric field intensity factor in FIELD_MAP

Post by FranceNicolasChauvin »

Dear Sarvesh,

As you are using electric field maps, the command "MATCH_FAM_FIELD" should do the job.

Regards,

Nicolas.
Indiasarvesh
Initiated
Initiated
Posts: 45
Joined: Wed 30 Mar 2022 16:12
Location: IUAC Delhi and CERN Geneva
Country:
India (in)
India

Re: How to vary electric field intensity factor in FIELD_MAP

Post by Indiasarvesh »

Cannot find matching element commands
From->[PROCESS_MATCHING] : Family matching

This is the error coming if we use MATCH_FAM_FIELD

As per my experience, I have used MATCH_FAM_GRAD for electrostatic quadrupole also and it works very well.
User avatar
FranceDidier
Administrator
Administrator
Posts: 976
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: How to vary electric field intensity factor in FIELD_MAP

Post by FranceDidier »

Dear Saarvesh,

Yes I confirm that there is a problem with the type 4 field maps not being recognised as they should be with the FIELD_MATCH_FIELD command.
I suggest you use the ADJUST commands associated with the DIAG_TWISS diagnostics instead. In general, everything that was done with the MATCH_FAM_XXX commands can be done better with the more complete and powerful ADJUST commands. MATCH_FAM_XX will not be needed or supported in the future.

Regards,

Didier
Indiasarvesh
Initiated
Initiated
Posts: 45
Joined: Wed 30 Mar 2022 16:12
Location: IUAC Delhi and CERN Geneva
Country:
India (in)
India

Re: How to vary electric field intensity factor in FIELD_MAP

Post by Indiasarvesh »

Thanks, I shall try this command
Post Reply