sarkas.potentials.force_pm.calc_mesh_coord
sarkas.potentials.force_pm.calc_mesh_coord#
- sarkas.potentials.force_pm.calc_mesh_coord(pos, h_array, cao)[source]#
Calculate the particles positions with respect to the mesh and their closest point on the mesh.
- Parameters
pos (numpy.ndarray) – Particles’ positions.
h_array (numpy.ndarray) – Width of the mesh cells.
cao (numpy.ndarray) – Charge assignment order.
- Returns
mesh_pos (numpy.ndarray) – Particles’ positions relative to the mesh, i.e. pos/h_array.
mesh_points (numpy.ndarray) – Particles’ positions on the mesh.