目录
成样
使用圆环退化成圆来限定生成颗粒的范围。
new
domain extent -10 10
wall generate circle position 0 0 radius 5
;定义了圆形的wall
ball generate radius 0.1 0.3 number 150 ...
range annulus center 0 0 radius 0 4.5
;在圆环内部生成颗粒,在0到4.5内部生成颗粒
ball attribute density 2.3e3 damp 0.7
cmat default type ball-ball model linear property kn 1e7 ks 1e7 fric 0.5
;定义接触类型,model定义为线性
cmat default type ball-facet model linear property kn 1e8 ks 1e8 fric 0.5
;定义ball和wall(facet)接触面的接触类型
set gravity 9.8
solve
save sample
滚动&轨迹监测
将solve time 100 选中,然后点击 run selection就能将命令再次运行100 时间。
确定id号时可将鼠标放在球体上,在详细信息栏会显示id号,然后再进行监测
multiply:
Multiply the existing value by the specified value.
spin fx fy fz(y- and z- components are 3D ONLY) 转动角速度
The wall angular velocity in radians per second. Walls rotate around their center of rotation.
ball trace
一般用来监测散体的大变形,监测某一颗粒的移动轨迹
restore sample
ball attribute displacement multiply 0
;球体的累计位移,multiply把之前的位移监测清零了,如果不清零,则得出的监测结果是累计位移
wall attribute spin 1 centrotation 0 0
;centrotation 中心旋转
ball trace id 136
ball trace id 24
set timestep fix 3e-3
solve time 300