sarkas.potentials.force_pm.calc_acc_pm
sarkas.potentials.force_pm.calc_acc_pm#
- sarkas.potentials.force_pm.calc_acc_pm(E_x_r, E_y_r, E_z_r, mesh_pos, mesh_points, q_over_m, cao, mesh_sz, mid, pshift)[source]#
Calculates the long range part of particles’ accelerations.
- Parameters
E_x_r (numpy.ndarray) – Electric field along x-axis.
E_y_r (numpy.ndarray) – Electric field along y-axis.
E_z_r (numpy.ndarray) – Electric field along z-axis.
mesh_pos (numpy.ndarray) – Particles’ positions relative to the mesh.
mesh_points (numpy.ndarray) – Particles’ positions on the mesh.
q_over_m (numpy.ndarray) – Particles’ charges divided by their masses.
cao (int) – Charge assignment order.
mesh_sz (numpy.ndarray) – Mesh points per direction.
mid (numpy.ndarray) – Midpoint flag for the three directions.
pshift (numpy.ndarray) – Midpoint shift in each direction.
- Returns
acc (numpy.ndarray) – Acceleration from Electric Field.