setSC_Centered_AccNodes#

orbit.space_charge.setSC_Centered_AccNodes(lattice, sc_path_length_min, space_charge_calculator, SC_NodeConstructor)[source]#

Inserts a set of space charge nodes into the lattice as child nodes of the first level accelerator nodes. The SC nodes will be inserted at chosen parts of first level AccNode elements such that space charge evaluation will be second order accurate. The distance between SC nodes must be more than sc_path_length_min. The function returns the array of SC nodes as a convenience for the user. This is a general function, and SC nodes will require further information regarding the nature of the SC nodes to be provided later.