| 查看: 752 | 回复: 2 | ||
pielang新虫 (小有名气)
|
[求助]
LAMMPS里面能设定一种粒子在模拟过程中一直往某个方向移动吗? 已有1人参与
|
| 就是设定一个粒子在某个方向速度为定值。模拟流动的状况。谢谢大家。 |
» 猜你喜欢
时间戳变了,能看出什么问题?
已经有11人回复
欢迎发来filecode的Mz6后的代码验证其规律
已经有109人回复
重要消息,中午系统在维护
已经有10人回复
两姐妹,一个辛辛苦苦30岁工作当大学教师,另一个23岁就工作当开车教练
已经有7人回复
明天放榜?
已经有4人回复
投稿咨询
已经有6人回复
时间戳又变了8-15
已经有26人回复
今天维护系统维护 祝所有人 高中
已经有9人回复
哪位老哥知道今年的国自然具体哪一天放榜?
已经有16人回复
2027广东省杰青
已经有8人回复
» 本主题相关价值贴推荐,对您同样有帮助:
想做粒子和固体(金属)相互作用,不知道lammps能否实现?
已经有6人回复
lammps deposit 粒子初始速度为0?
已经有12人回复
lammps 离子液体,离子中相邻隔的挺远的原子成键了,不知什么原因
已经有8人回复
薄膜在lammps条件下的谐振
已经有5人回复
ktwyw
木虫 (小有名气)
- 模拟EPI: 1
- 应助: 11 (小学生)
- 金币: 2729.4
- 散金: 500
- 红花: 42
- 帖子: 162
- 在线: 114.6小时
- 虫号: 143500
- 注册: 2005-12-22
- 专业: 高分子物理与高分子物理化
【答案】应助回帖
★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
pielang: 金币+10, ★★★★★最佳答案 2014-12-18 13:20:04
感谢参与,应助指数 +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
pielang
新虫 (小有名气)
- 应助: 2 (幼儿园)
- 金币: 341
- 散金: 16
- 帖子: 121
- 在线: 24.8小时
- 虫号: 1523997
- 注册: 2011-12-05
- 专业: 无机非金属基复合材料
3楼2014-12-18 13:19:59










回复此楼