Current Deposition¶
PyPIC3D selects current deposition via
simulation_parameters.current_calculation.
Available Methods¶
j_from_rhov¶
Computes current directly from particle velocities and deposited charge using a stencil deposition workflow.
Optional filtering is controlled by:
filter_j = "bilinear" # bilinear, digital, none
bilinearapplies a tri-linear smoothing filter.digitalapplies a digital filter usingconstants.alpha.noneleaves deposited current unfiltered.
esirkepov¶
Uses an Esirkepov-style charge-conserving deposition path and supports shape factors 1 and 2.
Practical Guidance¶
Start with
j_from_rhovfor quick exploratory runs.Use
esirkepovwhen tighter discrete charge conservation is needed.Keep
shape_factorand filtering choices fixed when comparing runs.
Reference¶
Esirkepov, T. Z. (2001). Exact charge conservation scheme for particle-in-cell simulation with an arbitrary form-factor. Computer Physics Communications, 135(2), 144-153.