24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 540  |  回复: 1

wangwen552

铜虫 (小有名气)

[求助] 求助下面一段fortran程序的意思

open(unit=Fout,file='out.dat')
        write(fout,'(A)') 'zone '
        do i=1,counter
                if(z(i)>z0min+5.0.and. z(i)<z0max-5.0) then
                write(fout,'(5(3x e15.6))') x(i),y(i),z(i),vone(i)
     :  ,rot(i)
                        if(vone(i)<5.0) then
                                AllStra=vone(i)+AllStra
                                numall=numall+1
                        endif
                endif
        enddo

        write(fout,'(A)') 'zone '
        do i=1,gbnum
                j=gbid(i)
                if(z(j)>z0min+5.0.and. z(j)<z0max-5.0) then
                write(fout,'(5(3x e15.6))') x(j),y(j),z(j),vone(j)
     :  ,rot(j)
                        if(vone(j)<5.0) then
                                GbStra=vone(j)+GbStra
                                numgb=numgb+1
                         endif
                endif
        enddo
        GbStra=GbStra
        AllStra = AllStra
        print*, '%Gb atoms:', 1.0*numgb/numall
        print*,'--------------------strain %------------------'
        print*,'         Ave            %GB          %ResT'
        write(*,'(3(3x e15.6))') AllStra/numall,GbStra/AllStra,
     :  1.0-GbStra/AllStra

c        print*,'e=',AllStra/numall,'GB%=',GbStra/AllStra,
c     : 'Rest%=', 1.0-GbStra/AllStra

        print*,'--------------------strain ave------------------'
        print*,'         Ave            GBe          ResTe'
        write(*,'(3(3x e15.6))') AllStra/numall,
     : GbStra/numgb,
     : (AllStra-GbStra)/(numall-numgb)
        print*,'-------------normal-strain ave------------------'
        write(*,'(3(3x e15.6))') AllStra/numall,
     : GbStra/numgb/AllStra*numall,
     : (AllStra-GbStra)/(numall-numgb)/AllStra*numall
c        print*,'Av e=',AllStra/numall,'GB=',GbStra/numgb,
c     : 'Rest=',(AllStra-GbStra)/(numall-numgb)

        close(fout)

我只知道这段程序能生成一个out.dat文件,不懂是怎么生成的、如何计算的。求程序大神帮忙
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

physliebe

新虫 (小有名气)

你这太乱了,不忍直视
Whenever you feel like criticizing any one,just remember that all the people in this world haven’t had the advantages that you’ve had.
2楼2014-02-08 20:58:22
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 wangwen552 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 初试301,代码085701环境工程,本硕一致,四六级已过,有二区一作,共发表5篇论文 +6 axibli 2026-04-01 6/300 2026-04-02 13:42 by Ecowxq666!
[考研] 找调剂 +6 楚乔乔 2026-04-01 6/300 2026-04-02 12:06 by xiaoranmu
[考研] 311求调剂 +9 勇敢的小吴 2026-04-02 9/450 2026-04-02 11:37 by Sammy2
[考研] 【求调剂】新能源材料本科,一志愿211,初试321 +6 求调剂学校, 2026-04-02 6/300 2026-04-02 09:41 by 晴空210210
[考研] 805600专硕材料与化工348分求调剂 +6 上学啦! 2026-04-01 6/300 2026-04-02 07:49 by 2026材料调剂
[考研] 286求调剂 +5 lim0922 2026-03-26 5/250 2026-04-01 19:08 by 客尔美德
[考研] 材料科学与工程339求调剂 +11 hyz0119 2026-03-31 12/600 2026-04-01 18:40 by 伟大河北
[考研] 0703一志愿南师大334求调剂 +4 seven7yu 2026-03-30 4/200 2026-04-01 16:10 by oooqiao
[考研] 一志愿南昌大学324求调剂 +7 hanamiko 2026-03-30 7/350 2026-04-01 13:22 by JourneyLucky
[考研] 318求调剂 +8 七忆77 2026-04-01 8/400 2026-04-01 10:37 by Jaylen.
[考研] 0710生物学求调剂! +6 叙述文 2026-03-31 6/300 2026-04-01 09:39 by JourneyLucky
[考研] 262求调剂 +7 ZZ..000 2026-03-30 8/400 2026-03-31 10:05 by cal0306
[有机交流] 甲基亚磺磺酸钠和甲基磺酸酯反应机理 10+3 kaobao456 2026-03-29 4/200 2026-03-30 23:16 by nBu锂
[有机交流] 考研调剂 +8 watb 2026-03-26 8/400 2026-03-30 18:40 by 544594351
[考研] 材料专硕 085600求调剂 +7 BBQ233 2026-03-30 7/350 2026-03-30 17:44 by oooqiao
[考研] 328求调剂 +8 嗯滴的基本都 2026-03-27 8/400 2026-03-30 17:20 by Wang200018
[考研] 071010 323 分求调剂 +3 Baekzhy 2026-03-27 3/150 2026-03-30 14:24 by andresqi
[考研] 环境科学与工程334分求调剂 +6 王一一依依 2026-03-30 8/400 2026-03-30 11:52 by yjolah
[考研] 296求调剂 +10 彼岸t 2026-03-29 10/500 2026-03-30 10:50 by 探123
[考研] 085405 考的11408求各位老师带走 +3 Qiu学ing 2026-03-28 3/150 2026-03-28 09:19 by 乐呵呵的追梦人
信息提示
请填处理意见