Background ions

LCODE 3D currently simulates only the movement of plasma electrons. The ions are modelled as a constant charge density distribution component that is calculated from the inital electron placement during the initialization.

lcode.initial_deposition(config, x_offt, y_offt, px, py, pz, m, q, virt_params)[source]

Determine the background ion charge density by depositing the electrons with their initial parameters and negating the result.

For this initial deposition invocation, the ion density argument is specified as 0.

The result is stored as const.ro_initial and passed to every consequtive lcode.deposit() invocation.