24小时热门版块排行榜    

查看: 1454  |  回复: 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 布布和一二 2026-08-07 3/150 2026-08-07 15:09 by gltch
[基金申请] filecode变化情况 +6 布布和一二 2026-08-07 22/1100 2026-08-07 14:45 by 且听虎啸
[论文投稿] 十年后又回来了,论文投稿求助 +4 哈哈114477 2026-08-01 4/200 2026-08-07 14:39 by jgy194592
[基金申请] 听说今天filecode变了 +22 布布和一二 2026-08-06 45/2250 2026-08-07 14:14 by 日月天地
[基金申请] 大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑 +5 Tide man 2026-08-06 7/350 2026-08-07 13:11 by 医学老男孩
[基金申请] 关于豆爷回答的JTJC与%2F数量 +4 yang182083 2026-08-06 6/300 2026-08-07 12:43 by 虫友是什么虫
[基金申请] 面上再次挂了,太难了,躺也躺不了,倦也卷不过,小学校之殇! +23 低垂的野花 2026-07-31 31/1550 2026-08-07 12:22 by speculiar
[基金申请] 基金中了 +11 laoda193707 2026-08-06 11/550 2026-08-07 10:54 by TT和NN
[基金申请] 固定端突然变了,今天 +4 archvillain 2026-08-06 8/400 2026-08-07 08:06 by 带你看大海
[基金申请] filecode +8 布布和一二 2026-08-06 11/550 2026-08-06 20:41 by tangpu318
[基金申请] 求各位大神看下 100+6 hpkpkpkp 2026-08-05 33/1650 2026-08-06 14:49 by zhiyanjiang
[基金申请] 影响面上的因素 +8 布布和一二 2026-08-05 11/550 2026-08-06 10:41 by 宝贝虫子
[基金申请] 8月时间戳变的,举个手。玩一下,释放压力 +9 archvillain 2026-08-04 11/550 2026-08-05 20:06 by wlwhappy
[基金申请] 好消息?这个有何含义??? +8 Tide man 2026-08-05 10/500 2026-08-05 16:14 by xmuxiaoyu
[考博] 【2027博士申请】纳米药物递送方向 20+3 13586093586 2026-08-03 4/200 2026-08-05 09:59 by lfy8008
[基金申请] 有没有H口的?有收到消息的吗? +3 超级海虾 2026-08-04 3/150 2026-08-04 17:26 by 学教育滴
[基金申请] 纯娱乐,不喜欢勿喷 +7 Tide man 2026-08-04 10/500 2026-08-04 15:10 by loufangrui
[基金申请] 面上提前没消息,有中的吗 +14 archvillain 2026-08-02 18/900 2026-08-04 14:42 by archvillain
[基金申请] 娱乐 +4 Tide man 2026-08-03 4/200 2026-08-04 11:51 by wgch518
[基金申请] 什么时候能放榜呀? +3 Jacob678 2026-08-03 3/150 2026-08-03 16:14 by gltch
信息提示
请填处理意见