setSC_General_AccNodes#

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

It will put a set of a space charge nodes into the lattice as child nodes of the first level accelerator nodes. The SC nodes will be inserted at the beginning of a particular part of the first level AccNode element. The distance between SC nodes should be more than sc_path_length_min. The function will return the array of SC nodes as a convenience for the user. This is a general function, and SC nodes will need specific information which will be provided for them later according to the specific nature of SC nodes.