CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Coupling Gambit, Fluent and FORTRAN

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 26, 2015, 07:16
Default Coupling Gambit, Fluent and FORTRAN
  #1
New Member
 
Join Date: Mar 2014
Posts: 9
Rep Power: 12
phdcandidate is on a distinguished road
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
Attached Files
File Type: zip Journal files.zip (1.4 KB, 21 views)
phdcandidate is offline   Reply With Quote

Old   January 29, 2015, 05:08
Default
  #2
New Member
 
Join Date: Oct 2014
Posts: 3
Rep Power: 11
udcbr is on a distinguished road
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.
udcbr is offline   Reply With Quote

Old   January 29, 2015, 05:12
Default
  #3
New Member
 
Join Date: Mar 2014
Posts: 9
Rep Power: 12
phdcandidate is on a distinguished road
Quote:
Originally Posted by udcbr View Post
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.
Thanks a lot. I managed to do this work properly
phdcandidate is offline   Reply With Quote

Old   February 12, 2015, 07:55
Question Coupling Gambit, Fluent and FORTRAN
  #4
New Member
 
Join Date: Mar 2014
Posts: 9
Rep Power: 12
phdcandidate is on a distinguished road
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
phdcandidate is offline   Reply With Quote

Old   February 16, 2015, 01:16
Default Problem solved
  #5
New Member
 
Join Date: Mar 2014
Posts: 9
Rep Power: 12
phdcandidate is on a distinguished road
Quote:
Originally Posted by phdcandidate View Post
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
My problem solved when I installed Gambit 2.4.6 instead of 2.2.30
phdcandidate is offline   Reply With Quote

Old   February 16, 2015, 01:27
Question I still have a problem
  #6
New Member
 
Join Date: Mar 2014
Posts: 9
Rep Power: 12
phdcandidate is on a distinguished road
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.
phdcandidate is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fluent and fortran marye FLUENT 6 January 5, 2013 03:18
Fortran Program with FLUENT UDFs gautamcfd FLUENT 0 August 17, 2010 05:39
Load a gambit file in visual fortran mohsen.kh Main CFD Forum 0 June 10, 2009 08:15
fluent and fortran yinyue FLUENT 1 October 25, 2004 22:27
Absoft Pro Fortran 7.5 in Fluent 4.5 Thitikorn FLUENT 0 July 5, 2002 06:41


All times are GMT -4. The time now is 12:25.