I am trying to use Crixus to generate sets of particles for my simulation. The fluid domain is given by the internal cooling channels of a drill bit. I have one inlet, one outlet and walls. I generated the meshes using Salome and then exported as STL files. The “fluid.stl” includes all the boundaries (walls + inlet + outlet), whereas the “outlet.stl” and “inlet.stl” only the part of the mesh at the outlet and the inlet, respectively. I used the NetGen 1D-2D algorithm with a Local Length of 9e-05.
Then I set up the .ini file for Crixus as follows:
However, the particle generation works only if I set dr=1.5e-04. If I choose a different value, it doesn’t work properly. A bounding box of my simulation domain is fully populated with fluid particles, instead of only the domain delimited by the fluid.stl file. I understand that the particle spacing cannot be arbitrary because it has to be compatible with the mesh size used in Salome. However, I cannot figure out what the relation between the two quantities should be. I kept fixed the ratio between the two to 1.666 (=1.5e-04/9e-05), changed the mesh spacing to 6e-05. set up a new .ini file with dr=1e-04 (=1.666*6e-05) and finally executed Crixus again. But this time it didn’t work out even with the ratio which was successful before.
Could you please tell me how these two quantities relate to each other and accordingly how I should set the particle spacing with a given value of the mesh resolution?
Thank you very much for the help.