sarkas.potentials.force_pp#

Module for handling Particle-Particle interaction.

Functions

calculate_heat_flux(pos, vel, p_id, ...)

Update the force on the particles based on a linked cell-list (LCL) algorithm.

calculate_virial(pos, p_id, box_lengths, rc, ...)

Update the force on the particles based on a linked cell-list (LCL) algorithm.

create_cells_array(box_lengths, cutoff)

Calculate the number of cells per dimension and their lengths.

create_head_list_arrays(pos, cell_lengths, cells)

particles_interaction_loop(pos, vel, p_mass, ...)

Update the force on the particles based on a linked cell-list (LCL) algorithm.

update(pos, vel, p_id, p_mass, box_lengths, ...)

Update the force on the particles based on a linked cell-list (LCL) algorithm.

update_0D(pos, vel, p_id, p_mass, ...)

Updates particles' accelerations when the cutoff radius \(r_c\) is half the box's length, \(r_c = L/2\) For no sub-cell.