| 查看: 1136 | 回复: 3 | ||||
[求助]
如何把lammps的轨迹文件转化为视频呢? 已有2人参与
|
| 如题,谢谢! |
» 猜你喜欢
Cas 72-43-5需要30g,定制合成,能接单的留言
已经有7人回复
磺酰氟产物,毕不了业了!
已经有5人回复
北京211副教授,35岁,想重新出发,去国外做博后,怎么样?
已经有5人回复
论文终于录用啦!满足毕业条件了
已经有25人回复
2026年机械制造与材料应用国际会议 (ICMMMA 2026)
已经有3人回复
自荐读博
已经有3人回复
求助:我三月中下旬出站,青基依托单位怎么办?
已经有5人回复
不自信的我
已经有5人回复
投稿Elsevier的杂志(返修),总是在选择OA和subscription界面被踢皮球
已经有8人回复
» 本主题相关价值贴推荐,对您同样有帮助:
请教一下径向密度分布怎么提取?
已经有21人回复
LAMMPS的轨迹文件怎么转换为VMD的PDB文件
已经有7人回复
ms构建好的模型转化为lammps data文件
已经有5人回复
lammps文件可视化问题
已经有14人回复
DL_POLY中HISTORY文件怎么让其输出真实坐标而非镜像坐标?
已经有5人回复
【求助】怎么导出xyz坐标
已经有4人回复
【讨论】如何进行小分子结构文件格式的转化
已经有6人回复

茹此无声
木虫 (小有名气)
- 应助: 12 (小学生)
- 金币: 1438.8
- 红花: 13
- 帖子: 244
- 在线: 65小时
- 虫号: 2065582
- 注册: 2012-10-16
- 性别: MM
- 专业: 凝聚态物性I:结构、力学和

2楼2014-01-11 00:17:13
lsloneil
专家顾问 (正式写手)
-

专家经验: +49 - 模拟EPI: 2
- 应助: 148 (高中生)
- 金币: 8640.9
- 散金: 507
- 红花: 30
- 帖子: 505
- 在线: 598.4小时
- 虫号: 556471
- 注册: 2008-05-11
- 性别: GG
- 专业: 理论和计算化学
- 管辖: 分子模拟
【答案】应助回帖
★ ★ ★ ★ ★
感谢参与,应助指数 +1
月只蓝: 金币+2, 鼓励交流 2014-01-12 09:24:59
笑笑愁: 金币+3, ★★★很有帮助 2014-01-12 11:09:23
感谢参与,应助指数 +1
月只蓝: 金币+2, 鼓励交流 2014-01-12 09:24:59
笑笑愁: 金币+3, ★★★很有帮助 2014-01-12 11:09:23
|
------- To view a lammps trajectory in VMD -------- 1) Build a PSF file for use in viewing with VMD. This step works with VMD 1.9 and topotools 1.2. (Older versions, like VMD 1.8.6, don't support this.) a) Start VMD b) Menu Extensions->Tk Console c) Enter: (I assume that the the DATA file is called "system.data" ![]() topo readlammpsdata system.data full animate write psf system.psf 2) Later, to Load a trajectory in VMD: Start VMD Select menu: File->New Molecule -Browse to select the PSF file you created above, and load it. (Don't close the window yet.) -Browse to select the trajectory file. If necessary, for "file type" select: "LAMMPS Trajectory" Load it. ---- A note on trajectory format: ----- If the trajectory is a DUMP file, then make sure the it contains the information you need for pbctools (see below. I've been using this command in my LAMMPS scripts to create the trajectories: dump 1 all custom 5000 DUMP_FILE.lammpstrj id mol type x y z ix iy iz It's a good idea to use an atom_style which supports molecule-ID numbers so that you can assign a molecule-ID number to each atom. (I think this is needed to wrap atom coordinates without breaking molecules in half.) Of course, you don't have to save your trajectories in DUMP format, (other formats like DCD work fine) I just mention dump files because these are the files I'm familiar with. 3) ----- Wrap the coordinates to the unit cell (without cutting the molecules in half) a) Start VMD b) Load the trajectory in VMD (see above) c) Menu Extensions->Tk Console d) Try entering these commands: pbc wrap -compound res -all pbc box ----- Optional ---- Sometimes the solvent or membrane obscures the view of the solute. It can help to shift the location of the periodic boundary box To shift the box in the y direction (for example) do this: pbc wrap -compound res -all -shiftcenterrel {0.0 0.15 0.0} pbc box -shiftcenterrel {0.0 0.15 0.0} Distances are measured in units of box-length fractions, not Angstroms. Alternately if you have a solute whose atoms are all of type 1, then you can also try this to center the box around it: pbc wrap -sel type=1 -all -centersel type=2 -center com 4) You should check if your periodic boundary conditions are too small. To do that: select Graphics->Representations menu option click on the "Periodic" tab, and click on the "+x", "-x", "+y", "-y", "+z", "-z" checkboxes. 5) Optional: If you like, change the atom types in the PSF file so that VMD recognizes the atom types, use something like: sed -e 's/ 1 1 / C C /g' < system.psf > temp1.psf sed -e 's/ 2 2 / H H /g' < temp1.psf > temp2.psf sed -e 's/ 3 3 / P P /g' < temp2.psf > system.psf (If you do this, it might effect step 2 above.) 以上为lammps mailing list某位大神的回帖关于vmd如何读入lammps trajectory,读入之后就可以制作动画了。 |
3楼2014-01-12 00:23:33
| VMD |
4楼2014-01-14 17:14:18









回复此楼
