丁越 发表于 2024-7-8 09:26 set sel [atomselect top "water and x > 0 and x < 50 and y > 0 and y < 50 and z > 130 and z < 150"] for {set i 0} {$i <= 201} {incr i} { $sel frame $i $sel update puts "Frame $i: [expr [$sel num]]" } 您好,经过您的指导,和http://bbs.keinsci.com/forum.php ... A%D0%C4%BE%E0%C0%EB这一篇的输出结果的语句参考,已经解决问题,最终输出了该区域的逐帧分子数,再次感谢您! |
| 参与人数Participants 1 | eV +3 | 收起 理由Reason |
|---|---|---|
|
| + 3 | 谢谢 |
|
animate goto $i 改为: $sel frame $i $sel update 把set sel [atomselect top "x > 0 and x < 50 and y > 0 and y < 50 and z > 130 and z < 150"]挪到for循环外面去 |
| 参与人数Participants 1 | eV +4 | 收起 理由Reason |
|---|---|---|
|
| + 4 | 我很赞同 |
手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图
GMT+8, 2026-2-28 03:53 , Processed in 0.197869 second(s), 26 queries , Gzip On.