24小时热门版块排行榜    

查看: 619  |  回复: 2

pielang

新虫 (小有名气)

[求助] LAMMPS里面能设定一种粒子在模拟过程中一直往某个方向移动吗? 已有1人参与

就是设定一个粒子在某个方向速度为定值。模拟流动的状况。谢谢大家。
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

ktwyw

木虫 (小有名气)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
pielang: 金币+10, ★★★★★最佳答案 2014-12-18 13:20:04
使用这个指令fix setforce command 可以实现你想要的功能:
http://lammps.sandia.gov/doc/fix_setforce.html
你需要做的是恰当的设定你想要定向移动的粒子的初始速度,然后这个fix将它所受的力设为0.0 0.0 0.0,这样它就会匀速向前移动。

fix setforce command
Description: Set each component of force on each atom in the group to the specified values fx,fy,fz. This erases all previously computed forces on the atom, though additional fixes could add new forces. This command can be used to freeze certain atoms in the simulation by zeroing their force, either for running dynamics or performing an energy minimization. For dynamics, this assumes their initial velocity is also zero.

Any of the fx,fy,fz values can be specified as NULL which means do not alter the force component in that dimension.
好好学习,天天向上。
2楼2014-12-18 09:06:56
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pielang

新虫 (小有名气)

引用回帖:
2楼: Originally posted by ktwyw at 2014-12-18 09:06:56
使用这个指令fix setforce command 可以实现你想要的功能:
http://lammps.sandia.gov/doc/fix_setforce.html
你需要做的是恰当的设定你想要定向移动的粒子的初始速度,然后这个fix将它所受的力设为0.0 0.0 0.0, ...

太感谢了!!
3楼2014-12-18 13:19:59
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 pielang 的主题更新
信息提示
请填处理意见