计算化学公社

 找回密码 Forget password
 注册 Register
Views: 8894|回复 Reply: 1
打印 Print 上一主题 Last thread 下一主题 Next thread

[VMD] 计算两平面夹角的VMD脚本

[复制链接 Copy URL]

16

帖子

0

威望

299

eV
积分
315

Level 3 能力者

跳转到指定楼层 Go to specific reply
楼主
我主要从事蛋白质及DNA相关的分子动力学模拟,主要涉及docking,平衡动力学模拟,结合自由能计算。所用到的软件主要有autodocking,NAMD,VMD,刚入坑时还用过一段时间DS和MS。
从自学动力学到出成果受到论坛中许多大佬的帮助,打算抽时间整理点有用的脚本,希望能帮到大家。
一、两平面夹角
原理:通过平面中任意三个原子的坐标求法向量,然后计算法向量的夹角,即为两平面夹角
使用时先在文件中输入所选原子的index序号
        示例:使用平面1中index序号为 881、875、879三个原子与平面2中index序号为 697、691、686的三个原子来计算两平面夹角,则只需将tcl文件中index序号修改即可(同一平面中三个原子的顺序随意)。
          set pa1 [atomselect top "index 881"]
          set pa2 [atomselect top "index 875"]
          set pa3 [atomselect top "index 879"]
          set pb1 [atomselect top "index 697"]
          set pb2 [atomselect top "index 691"]
          set pb3 [atomselect top "index 686"]

然后用vmd调用,轨迹中各帧的夹角会保存在result.txt文件中。

twoplaneangle.tcl

1.06 KB, 下载次数 Times of downloads: 122

评分 Rate

参与人数
Participants 2
eV +10 收起 理由
Reason
sobereva + 5
zsu007 + 5 谢谢分享

查看全部评分 View all ratings

1102

帖子

18

威望

6703

eV
积分
8165

Level 6 (一方通行)

計算化学の社畜

2#
发表于 Post on 2020-11-4 22:28:18 | 只看该作者 Only view this author
这里补充一下社长的小程序:

计算两个平面夹角的小程序
http://sobereva.com/302http://bbs.keinsci.com/thread-1623-1-1.html
Stand on the shoulders of giants

本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2026-2-22 04:12 , Processed in 0.204396 second(s), 24 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list