betti particles clump

Approximate a solid by overlapping spheres of varying size, for DEM.

particles module Granted on request: see access and licensing.

Usage

betti particles clump [flags] in out

Examples

betti particles clump -spheres 20 grain.stl grain.txt
betti particles clump -method fill -min-radius 0.2 -max-radius 1 -coverage 0.9 grain.stl grain.mol

Formats, by the extension of out

.csvCSV x,y,z,r: Chrono DEM-Engine clump templates, EDEM and Rocky imports
.jsonthe spheres, mass properties and report
.molLAMMPS molecule file, with mass, center of mass and inertia, for fix rigid
.pyYade: the spheres, mass and inertia, for O.bodies.appendClumped
.txtx y z r, one sphere to a line: LIGGGHTS particletemplate/multisphere
.vtpVTK polydata of the sphere centers with their radii, in place (ParaView)

Flags

FlagTakesDefaultMeaning
-coveragenumbernonewith medial or fill: stop once the spheres cover this share of the volume, such as 0.9
-densitynumber1density, for the mass and inertia
-max-radiuslength or numbernonethe largest sphere; larger ones shrink to it
-methodtextmedialhow spheres are chosen: medial (fewest spheres for the shape), fill (largest first, filling the volume), or surface (following the surface)
-min-radiuslength or number1%the smallest sphere, such as 0.5 or 1%
-spheresinteger20the most spheres
-tolerancelength or number2%with surface: how far from a sphere the surface may be

Output flags

FlagTakesDefaultMeaning
-jsonswitchoffprint the result as JSON
-qswitchoffprint nothing but errors
-vswitchoffalso show the stages of each step, and their times

This page is generated from betti help particles clump. Lengths are absolute, or a percentage of the part's bounding-box diagonal, as in -size 1%.