Replace_BaseRF_Gap_and_Quads_to_Overlapping_Nodes#

orbit.py_linac.lattice_modifications.Replace_BaseRF_Gap_and_Quads_to_Overlapping_Nodes(accLattice, z_step, dir_location='', accSeq_Names=[], cavs_Names=[], EngeFunctionFactory=<function GetEngeFunction>)[source]#

Function will replace BaseRF_Gap nodes by AxisField_and_Quad_RF_Gap. It is assumed that AxisField_and_Quad_RF_Gap nodes do not overlap any others nodes (except Drifts). The location of the axis field data files are specified by dir_location input variable. The replacement will be performed only for specified sequences. If the cavities list is empty, all of them will be replaced! If you want to replace the nodes in a particular cavity please specify it! The dir_location is the location of the directory with the axis field files. We assume that the RF gap field overlaps only with the fields of two neighboring quads. z_step defines the longitudinal step during the tracking through the elements with overlapping fields. The magnetic field longitudinal dependency in quads will be described by Enge Functions that will be produced by the GetEngeFunction function by default. The user can supply his/her own factory for these functions.