I am running a model for a geotechnical test known as Direct Shear, I have defined the box were the particles must be inserted, and the number of particles I have to inserts for the density I want to reach, when I run the software it seems that the particles are greater than the software can put into the geometry I defined, however, when I put the particles in a wider section of insertion the problem persists, one of the things I have performed is to reduce the number of particles, but for that solution, the sample would not reach the density I need after the application of confining pressure. I would like to know if the method I am using to define the number of particles is correct or if I have to improve my methodology. I am attaching the equations I am using for the N particles definition.
I hope you can help me
Thank you so much for your attention.