Page 1 of 1

How to vary electric field intensity factor in FIELD_MAP

Posted: Mon 5 Sep 2022 12:01
by sarvesh
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

Re: How to vary electric field intensity factor in FIELD_MAP

Posted: Mon 5 Sep 2022 13:40
by NicolasChauvin
Dear Sarvesh,

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

Regards,

Nicolas.

Re: How to vary electric field intensity factor in FIELD_MAP

Posted: Mon 5 Sep 2022 14:02
by sarvesh
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.

Re: How to vary electric field intensity factor in FIELD_MAP

Posted: Tue 6 Sep 2022 23:02
by Didier
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

Re: How to vary electric field intensity factor in FIELD_MAP

Posted: Sat 10 Sep 2022 18:09
by sarvesh
Thanks, I shall try this command