PFC6.0——第一章、基本命令使用

1.球体模型的创建与属性赋值

model new;清除之前的数据
model domain extent -10 10 ;确定区域,必要操作
ball create position -0.5 0 radius 0.5;球体创建,规定球心坐标,半径,按照先后顺序默认编号
ball create position 1 0 radius 1

ball attribute velocity -1 0 range id 1;给指定编号球体速度属性赋值
ball attribute velocity 1 0 range id 2
ball attribute density 2e3;球体密度属性赋值

model mech timestep fix 1e-4;规定时间步长
;model cycle 10000;执行确定的步数
model solve time 2;执行确定的时间,两种方式选一

model save "likai";保存最终的状态,方便后续使用

2.球体碰撞

model restore "likai";读取上面所保存的状态

contact cmat default model linear property kn 1e7;指定线性模型接触,并确定刚度值

ball attribute velocity 1 0 range id 1
ball attribute velocity -1 0 range id 2

model solve time 2.01

3.墙体建立

model new

model domain extent -10 10  

wall generate box -5 5 -8 8;创建二维矩形墙体

ball create position 0 7 radius 1
ball attribute density 2e3 damp 0.1;阻尼系数给定,通过阻尼耗散掉系统的能量
model gravity 9.8;给系统设置重力
contact cmat default model linear property kn 1e7
model mech timestep fix 5e-4

model solve time 10

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值