Kratos: [DEM] Cluster creation

Created on 27 Feb 2020  路  6Comments  路  Source: KratosMultiphysics/Kratos

Dear DEM-Team @KratosMultiphysics/dem ,
I am trying to create a custom cluster file for a rather simple geometry:
image

I am following the tutorial on how to create them:

  1. Create a triangular mesh in GID and output a *.obj file
  2. Transform that *.obj file with Spin3D into a new *.obj file to adjust the format
  3. I use the following command with SphereTree and replace NS with the desired number of spheres

makeTreeMedial -branch NS -depth 1 -testerLevels 2 -numCover 10000 -minCover 5 -
initSpheres 1000 -minSpheres 200 -erFact 2 -verify -nopause -eval -expand -merge -burst -
optimise balance -balExcess 0.001 -maxOptLevel 100 file_name.obj

  1. Delete artificial lines from the new *.sph file
  2. Create a volume tetra *.msh in GID and save it
  3. Use the *.msh and *.sph file with the mesh_to_clu_converter.cpp to create an executable and run this to create the *.clu file

The best version I could get is the following one and it is very bad (I am trying since tuesday morning):

image

I can replace NS with up to 1000 and all I get is max. 70 spheres (see figure above). It never creates more spheres. Should I vary the other input variables ? I am completly lost.

I actually need like 5 different clu files ranging from very coarse to a really detailed version.

Do I have to adjust the obj mesh size and the volume mesh size, Can I define the size of the spheres? Do you have any other tips ?

Why are the spheres so big in the upper figure?

I also added the project file here :
test_quad.gid.zip

I hope you can help me, Klaus

Help Wanted

All 6 comments

Hi @KlausBSautter, for such a regular geometry I would recommend you use the option makeTreeOctree. To obtain 5 different clu files you can set the depth to 5, so the command to use should be: makeTreeOctree -depth 5 -nopause file_name.obj
In the .sph file created the spheres of all the different clusters may appear together, you can recognize each cluster by the radius of their spheres (all of them have the same), moreover, some spheres would have a negative radius, you will have to clean it up.
Let me know if you have any other problem.

@joaquinirazabal thanks I'll try this. So the mesh size of my input files does not influence the result?

I am not completely sure, but it shouldn't influence the result

@joaquinirazabal thanks a lot again!! This was the right way to go. :)

@joaquinirazabal one more thing: Is there a trick to get rid of the inner particles?

No, as far as I know, spheretree does not allow to get rid of the inner particles.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcnunezc picture marcnunezc  路  5Comments

roigcarlo picture roigcarlo  路  7Comments

philbucher picture philbucher  路  4Comments

armingeiser picture armingeiser  路  6Comments

maceligueta picture maceligueta  路  6Comments