Skip to content

Commit

Permalink
Update rdf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AstyLavrinenko authored Oct 16, 2024
1 parent 32b5500 commit a852705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gemdat/rdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def calculate_rdf_parallelized(trajectory, specie_1, specie_2, resolution=1, max
num_time_steps = 1
num_atoms, num_dimensions = coords_2.shape

particle_vol = num_atoms / ((4 / 3) * np.pi * max_distance ** 3)
particle_vol = num_atoms / lattice.volume

def calculate_distances(t):
return lattice.get_all_distances(coords_1[t, :, :], coords_2[t, :, :])
Expand Down

0 comments on commit a852705

Please sign in to comment.