Skip to content

In the DEM example, how do I estimate hashgrid size? #29

Answered by mmacklin
jlinBE asked this question in Q&A
Discussion options

You must be logged in to vote

Larger hash-grids reduce the number of hash collisions, i.e.: particles are more likely to be hashed to cells that only contain particles near by them. 128^3 = 2M cells, so that would be the maximum number of particles you could fit without any collisions (assuming they were all perfectly distributed at cell centers).

You should try and also size your grid roughly to the layout of the points e.g.: if you had a very sheet of particles along the x-y plane then you don't need many cells in the z direction. Likewise, the worst case is when all the points lie in a single hash-grid cell, hash grids work best when the particles are spaced roughly at the same length as the cell size / radius (pas…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jlinBE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants