Hello,
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:
[mesh]
stlfile=fluid.stl
dr=0.00015
swap_normals=false
fshape=fluid.stl
[special_boundary_grids]
mesh1=outlet.stl
mesh2=inlet.stl
[fluid_container]
use=false
xmin=-0.001
ymin=-0.003
zmin=-0.003
xmax=0.012
ymax=0.003
zmax=0.003
[fill_0]
option=geometry
xseed=0.00195
yseed=0.00045
zseed=-0.00157
[output]
format=vtu
split=true
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.
Regards
Manuel