betti particles fill
Fill a solid with particles, or line its surface, for SPH and other particle methods.
particles module Granted on request: see access and licensing.
Usage
betti particles fill [flags] in out
Examples
betti particles fill -spacing 0.5 tank.stl fluid.vtp
betti particles fill -spacing 1% -layers 3 -pack tank.stl fluid.k
betti particles fill -spacing 0.5 -layers 3 -walls inside -no-fill hull.stl hull.inp
betti particles fill -spacing 2 -min-spacing 0.25 -pack wing.stl air.csv
Formats, by the extension of out
| .csv | CSV: x,y,z,kind,volume,mass,area,nx,ny,nz,layer,spacing |
|---|---|
| .inp | Abaqus: *NODE and PC3D elements, in sets INSIDE, WALLS and SURFACE |
| .k | LS-DYNA keywords: *NODE and *ELEMENT_SPH, part 1 inside, 2 walls, 3 surface |
| .ply | PLY points, with the particles' data |
| .vtp | VTK polydata (ParaView), with the particles' data |
| .xyz | plain x y z |
Flags
| Flag | Takes | Default | Meaning |
|---|---|---|---|
| -density | number | 1 | density, for the particles' masses |
| -grading | number | 0.5 | with -min-spacing: how much the spacing grows for each unit of distance from the surface |
| -lattice | text | cubic | how particles are laid out: cubic, or hcp (hexagonal close packed) |
| -layers | integer | none | layers of wall particles |
| -level | text | none | fill only up to this height in z, as a tank filled to a level |
| -min-spacing | length or number | none | variable resolution: this spacing at the surface, coarser inward up to -spacing (cubic lattice) |
| -no-fill | switch | off | leave the inside empty: walls or surface particles alone |
| -pack | switch | off | relax the inside particles so that they lie evenly along curved walls |
| -pack-iters | integer | 100 | with -pack: relaxation steps |
| -spacing | length or number | required | distance between neighboring particles, such as 0.5 or 1% |
| -surface | switch | off | also put particles on the surface, each with its normal and area |
| -walls | text | outside | where the wall layers go: outside, around a container whose inside is fluid, or inside, along a body's surface |
Output flags
| Flag | Takes | Default | Meaning |
|---|---|---|---|
| -json | switch | off | print the result as JSON |
| -q | switch | off | print nothing but errors |
| -v | switch | off | also show the stages of each step, and their times |
This page is generated from betti help particles fill. Lengths are absolute, or a percentage of the part's bounding-box diagonal, as in -size 1%.