计算化学公社

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

[VMD] VMD中如何设置不同的图层显示不同的vol的内容

[复制链接 Copy URL]

541

帖子

3

威望

6618

eV
积分
7219

Level 6 (一方通行)

本帖最后由 ABetaCarw 于 2020-9-17 14:51 编辑
  1. 插入代码老是错误 我还是纯文本来吧
复制代码
set isoval 0.005
set mater Glossy
color Display Background white
display depthcue off
display rendermode GLSL
axes location Off
#以上是一些全局设置没啥错误
mol delete top
mol new electron.cub
mol addfile hole.cub
mol modstyle 0 top CPK 0.800000 0.300000 22.000000 22.000000
#以上是显示分子式以CPK风格,没啥错误


mol modstyle 1 top Isosurface $isoval 0 0 0 1 1
mol modcolor 1 top ColorID 7
mol modmaterial 1 top $mater
mol modselect 1 top Volume vol0

mol addrep top
mol modstyle 2 top Isosurface $isoval 0 0 0 1 1
mol modcolor 2 top ColorID 0
mol modmaterial 2 top $mater
mol modselect 1 top Volume vol1



我想的是:

得到的是:

也就是说只显示了electron.cub而且显示为蓝色了。
以上脚本运行后Vol0是electron.cub,Vol1是 hole.cub
上面的脚本中很简洁 看不到任何修改图层的尝试。是因为我已经删除了那些肯定错误的内容。
此处请教,如何对不同图层指定不同的vol?
上面脚本可以用,但是每次都要手动打开Graphics - Representation更改一下其中的vol归属

恍惚月余,深谙人与人之间的差距。以后还应努力学习,才能与强者比肩。

186

帖子

1

威望

4551

eV
积分
4757

Level 6 (一方通行)

2#
发表于 Post on 2020-9-17 15:50:08 | 只看该作者 Only view this author
首先,第三段代码前应该是少了一个 mol addrep top,否则只有两个图层
其次,指定 Vol1 用这个:
mol modstyle 2 top Isosurface $isoval 1 0 0 1 1
最后,你可以先选上 Log Tcl Commands to Console,然后执行切换 vol 操作,就能看到它对应的命令

评分 Rate

参与人数
Participants 1
eV +5 收起 理由
Reason
ABetaCarw + 5 谢谢分享

查看全部评分 View all ratings

本版积分规则 Credits rule

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

GMT+8, 2026-2-21 13:26 , Processed in 0.330958 second(s), 29 queries , Gzip On.

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