24小时热门版块排行榜    

查看: 973  |  回复: 2
本帖产生 1 个 模拟EPI ,点击这里进行查看
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

bay__gulf

金虫 (著名写手)

刘苏州

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★
zh1987hs(金币+10, 模拟EPI+1): 谢谢 2011-08-13 11:24:07
tlger(金币+5): 谢谢! 2011-08-14 19:40:00
今天刚写的脚本, 可以参考一下
CODE:
set firstframe 500
set lastframe [molinfo top get numframes]

set ooo [atomselect top "name OW"]
set totalo 0

for {set h 40 } { $h <= 200 } { incr h } { set count($h) 0 }
# 0.4 to 2.0 nm step by 0.01

for { set f $firstframe} { $f < $lastframe } { incr f } {
    $ooo frame $f
    foreach z [$ooo get z] {
            incr count([expr round($z*10)]) ;# z in Ang
                if {$z < 20.0} {incr totalo}
}   }

set outf [open "profile.dat" w]
for {set h 40 } { $h <= 200 } { incr h } {
    puts $outf [format "%.2f\t%8.6f" [expr $h/100.0] \
        [expr 1.0*$count($h)/$totalo]]
}
close $outf

2楼2011-08-12 19:40:18
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

找到一些相关的精华帖子,希望有用哦~

科研从小木虫开始,人人为我,我为人人
相关版块跳转 我要订阅楼主 tlger 的主题更新
信息提示
请填处理意见