|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Join Date: Mar 2014
Posts: 9
Rep Power: 13 ![]() |
Hi everybody
I need to make an automatic process during which a FORTRAN program first calls or uses a Gambit journal file to produce a geometry along with its mesh and then uses a Fluent journal file to simulate fluid flow inside the geometry already produced. I know I can open or execute any program using FORTRAN with commands like: CALL SYSTEM('C:\Fluent.Inc\ntbin\ntx86\fluent.exe 2ddp') but I do not know how to use journal file to produce an automatic process among FORTRAN, Gambit and Fluent. I also attached my journal files for Gambit and Fluent to this post. I will be really grateful if somebody give me some help and advice in this regard. Thanks in advance |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Oct 2014
Posts: 3
Rep Power: 13 ![]() |
Searched in google for something like "fluent open journal command line", and found on http://www.arc.vt.edu/ansys_help/flu...up_option.html
-i journal In your case this should translate to: C:\Fluent.Inc\ntbin\ntx86\fluent.exe 2ddp -i Fluent.jou And it would automatically read the journal. You could test this command by executing it directly in your shell/command line. You also might to write in your journal to close your fluent application in the end. |
|
|
|
|
|
|
|
|
#3 | |
|
New Member
Join Date: Mar 2014
Posts: 9
Rep Power: 13 ![]() |
Quote:
|
||
|
|
|
||
|
|
|
#4 |
|
New Member
Join Date: Mar 2014
Posts: 9
Rep Power: 13 ![]() |
Hi Pals,
I have made a a coupling among FORTRAN, Gambit 2.2.30 and Fluent 6.3.26. To this work, I produced two journal files named Gambit.txt and Fluent.txt for Gambit and fluent respectively using FORTRAN. Then, I used the following commands to call Gambit and Fluent and make them read produced journal files: CALL SYSTEM ('C:\Fluent.Inc\ntbin\ntx86\gambit.exe -inp C:\Users\Dell\Desktop\test\Gambit.txt') CALL SYSTEM ('C:\Fluent.Inc\ntbin\ntx86\fluent.exe 2ddp -g -i C:\Users\Dell\Desktop\test\Fluent.txt') I still have a problem. Gambit can easily read its own journal file but the startup window of Gambit is not closed automatically and I should close it manually. If I do not close the startup window of Gambit manually, the next command will not execute and Fuent will not start working. What should I do to close the startup window of Gambit automatically? Any help will be appreciated. Thank you guys very much |
|
|
|
|
|
|
|
|
#5 | |
|
New Member
Join Date: Mar 2014
Posts: 9
Rep Power: 13 ![]() |
Quote:
|
||
|
|
|
||
|
|
|
#6 |
|
New Member
Join Date: Mar 2014
Posts: 9
Rep Power: 13 ![]() |
In my program, Fluent will produce some data file which will be read in my FORTRAN program. My problem is that when Fluent is in the middle of running its journal file, my FORTRAN program goes to the next command and needs to read the data of Fluent, but Fluent is still running and there is not any file to read yet. This fact causes my FORTRAN program cannot find any data because there is not any data yet.
How I can control my program in FORTRAN so that it goes to the next step right after the process of Fluent is finished. Thank you for your time and considerations to answer my question. I am looking forward to receiving your helpful comments. |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| fluent and fortran | marye | FLUENT | 6 | January 5, 2013 04:18 |
| Fortran Program with FLUENT UDFs | gautamcfd | FLUENT | 0 | August 17, 2010 06:39 |
| Load a gambit file in visual fortran | mohsen.kh | Main CFD Forum | 0 | June 10, 2009 09:15 |
| fluent and fortran | yinyue | FLUENT | 1 | October 25, 2004 23:27 |
| Absoft Pro Fortran 7.5 in Fluent 4.5 | Thitikorn | FLUENT | 0 | July 5, 2002 07:41 |