24小时热门版块排行榜    

查看: 1465  |  回复: 2
本帖产生 1 个 博学EPI ,点击这里进行查看

herotcd

金虫 (初入文坛)

[求助] 关于Fortran程序运行的求助

请教高手指导Fortran程序的运行,程序已经从网站上下载,不会出现编程错误等问题,但本人对Fortran知之甚少,不知道如何运行
揭榜者可自行从URL:https://web.mit.edu/braatzgroup/links.html   (software TE process) 上下载以研究运行方法
赏金 100!!!!
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

snoopyzhao

至尊木虫 (职业作家)

【答案】应助回帖

关于如何运行,在 temain_mod.f 中不是有解释的:
CODE:
C  Instructions for running the program
C  ====================================
C
C  1) Go to line 220, change NPTS to the number of data points to simulate. For each
C     minute of operation, 60 points are generated.
C
C  2) Go to line 226, change SSPTS to the number of data points to simulate in steady
C     state operation before implementing the disturbance.
C
C  3) Go to line 367, implement any of the 21 programmed disturbances. For example, to
C     implement disturbance 2, type IDV(2)=1 .
C
C  4) The program will generate 15 output files and all data are recorded every
C     180 seconds, see Table 1 for details.  The default path is the home directory.
C     To change the file name and path, modify lines 346-360 accordingly.  
C     To overwrite the files that already existed, change STATUS='new' to
C     STATUS='old' from lines 346-360.
C              
C
C                     Table 1: Content of the output files
C
C      File Name                                Content
C      ---------                                -------
C    TE_data_inc.dat                             Time (in seconds)
C    TE_data_mv1.dat           Measurements for manipulated variables 1 to 4
C    TE_data_mv2.dat           Measurements for manipulated variables 5 to 8
C    TE_data_mv3.dat           Measurements for manipulated variables 9 to 12
C    TE_data_me01.dat           Measurements for measurement variables 1 to 4
C    TE_data_me02.dat           Measurements for measurement variables 5 to 8
C    TE_data_me03.dat           Measurements for measurement variables 9 to 12
C    TE_data_me04.dat           Measurements for measurement variables 13 to 16
C    TE_data_me05.dat           Measurements for measurement variables 17 to 20
C    TE_data_me06.dat           Measurements for measurement variables 21 to 24
C    TE_data_me07.dat           Measurements for measurement variables 25 to 28
C    TE_data_me08.dat           Measurements for measurement variables 29 to 32
C    TE_data_me09.dat           Measurements for measurement variables 33 to 36
C    TE_data_me10.dat           Measurements for measurement variables 37 to 40
C    TE_data_me11.dat           Measurements for measurement variable 41
C
C  5) To ensure the randomness of the measurement noises, the random number
C     G in the sub program (teprob.f, line 1187) has to be changed each time before
C     running 'temain_mod.f'.
C
C  6) Save the changes in 'temain_mod.f' and 'teprob.f' and compile the program in
C      unix by typing
C      f77 temain_mod.f teprob.f
C
C  7) Run the program by typing
C      a.out

2楼2011-11-30 22:53:59
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mathcfd

金虫 (著名写手)

【答案】应助回帖

herotcd(金币+50, 博学EPI+1): 终于看到希望的曙光啦!!! 2011-12-01 11:01:58
herotcd(金币+50): 手把手教,终于回了,非常感谢! 2011-12-01 11:48:56
正好缺金币。
我已经将几个程序编译通过了,可发给你或在告诉你怎么编译。

首先将下载的txt文件的扩展名去掉,修正为扩展名为f,即temain.f,temain_mod.f,teprob.f

其次操作如下:

1、打开FORTRAN软件;
2、点击FILE/NEW,在出现的对话框中选择PROJECTS,鼠标点击fortran console application,  在该对话框右边project name 下面文本框中输入project名字,如 hello, location下面对话框浏览所建project工作目录位置,如 e:\TE_PROCESS, 之后点击右下角OK;出现对话框中单选an empty project,后点击对话框下方的finish按钮,在新出现的对话框中点击其下面的OK按钮;
3、出现的工作区左边,点击 hello(project的名字)前的+号,这时出现三个下拉文件:鼠标右击source file,在出现的对话框中选择第二项,跳出对话框中:在查找范围栏:打开TE_PROCESS文件夹,选中temain.f,再点OK按钮;回到工作区左边右击resource file,在出现的对话框中选择第二项,跳出对话框中:在查找范围栏:打开TE_PROCESS文件夹,选中teprob.f,再点OK按钮;
4、编译并运行 programme,  使用快捷键CTRL+F5,出现对话框,选择OK按钮。
Neverevergiveup!
3楼2011-11-30 23:22:15
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 herotcd 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] Filecode 又变了,巨变 +3 WH3796 2026-08-12 4/200 2026-08-13 14:13 by 小木虫6752397
[基金申请] 分享一下我之前已中青C的计划书的filecode +4 布布和一二 2026-08-11 5/250 2026-08-13 12:56 by cratir
[基金申请] 不应该看fileCode +6 且听虎啸 2026-08-12 8/400 2026-08-13 12:07 by 小木虫6752397
[基金申请] FileCode能看出啥? +8 要乐观耀哥 2026-08-10 26/1300 2026-08-13 12:01 by Tide man
[基金申请] 我的国基提前知道中了,可是同事的操作让我实在接受不了,怎么会有这样的人 +9 家与远方 2026-08-10 14/700 2026-08-13 09:41 by 臭臭不臭01
[基金申请] filecode +13 documentary 2026-08-10 15/750 2026-08-12 15:56 by 云上清扬
[基金申请] 奇怪,两个人的filecode固定段从头到尾一模一样 +7 布布和一二 2026-08-10 10/500 2026-08-12 09:12 by 布布和一二
[基金申请] 小木虫上这么多卖论文的,真有人买论文么?感觉没必要啊 +8 Tide man 2026-08-10 9/450 2026-08-11 20:39 by beefly
[基金申请] 为什么网上很多人说本周 12号出结果 +6 瞬息宇宙 2026-08-10 7/350 2026-08-11 19:25 by Tide man
[基金申请] 关于代码变化问题,想知道的进来 +17 且听虎啸 2026-08-07 24/1200 2026-08-10 18:35 by zhangduo2008
[基金申请] 静等基金结果 +5 gjjjzhong 2026-08-10 16/800 2026-08-10 17:19 by Tide man
[基金申请] 国自然结果 +4 Vierhys 2026-08-10 8/400 2026-08-10 15:06 by Vierhys
[基金申请] 据悉今年马上要出结果了 +7 瞬息宇宙 2026-08-10 8/400 2026-08-10 12:42 by Vivilian
[基金申请] 2026国自然放榜时间 +9 布布和一二 2026-08-08 9/450 2026-08-10 11:22 by xxxx2020
[基金申请] 这样的filecode谁见过 +11 布布和一二 2026-08-08 22/1100 2026-08-10 11:10 by wmfsnow
[基金申请] fileCode有新解读? +10 Tide man 2026-08-08 18/900 2026-08-09 12:55 by 仁砚薪传
[基金申请] 关于filecode,很负责任的告诉大家 +6 爱看书的可乐 2026-08-08 7/350 2026-08-08 22:13 by a_niu
[基金申请] 关于filecode +4 布布和一二 2026-08-07 7/350 2026-08-07 22:55 by zhanghaozhu
[基金申请] 化学口download_prp&fileCode的固定段好像这几天一直没变,有变的大神么? +3 Tide man 2026-08-07 4/200 2026-08-07 22:39 by Tide man
[基金申请] 固定端突然变了,今天 +6 archvillain 2026-08-06 10/500 2026-08-07 16:03 by 医学老男孩
信息提示
请填处理意见