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

fluent and fortran

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2010, 09:53
Default fluent and fortran
  #1
New Member
 
marie
Join Date: May 2010
Posts: 21
Rep Power: 16
marye is on a distinguished road
Hi,

During my internship I have to use Fluent but I don't know it.
That is why I'd like to know if it is possible
- to run automatically Fluent
- to create an output file
and to call Fluent in a Fortran program??

Thank you very much!
marye is offline   Reply With Quote

Old   May 7, 2010, 11:30
Default
  #2
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 20
DoHander is on a distinguished road
Hello,

you can call an external program from Fortran by using a variant of the "system" command, if you have Fluent in your path you can start it from Fortran with:

System("fluent 2ddp")

for example. It is also possible to record a list of Fluent commands in a separate file and run Fluent in batch mode, you can use your Fortran program to automatically modify this file and start Fluent with it.

In principle you can do any automatization you can think of, Fluent was designed to allow the user interaction from any environment.

Hope this will help,

Do
DoHander is offline   Reply With Quote

Old   May 10, 2010, 05:44
Default
  #3
New Member
 
marie
Join Date: May 2010
Posts: 21
Rep Power: 16
marye is on a distinguished road
thank you! I will try!
marye is offline   Reply With Quote

Old   December 1, 2012, 16:29
Default how execute fluent with fortran?
  #4
New Member
 
maryam
Join Date: Dec 2012
Location: isfahan
Posts: 3
Rep Power: 14
maryam.s is on a distinguished road
hi,
I want to call Fluent in my Fortran program,i need to run journal file of fluent for several times in fortran loop ,i use command system:

CALL SYSTEM("E:/program files/Fluent.Inc/ntbin/ntx86/fluent.exe 2ddp")
but program shows this error:
'E program' is not recognized as an internal or external command,operable program or batch file.
please help me
maryam.s is offline   Reply With Quote

Old   January 3, 2013, 13:42
Default
  #5
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 20
DoHander is on a distinguished road
Quote:
Originally Posted by maryam.s View Post
hi,
I want to call Fluent in my Fortran program,i need to run journal file of fluent for several times in fortran loop ,i use command system:

CALL SYSTEM("E:/program files/Fluent.Inc/ntbin/ntx86/fluent.exe 2ddp")
but program shows this error:
'E program' is not recognized as an internal or external command,operable program or batch file.
please help me
Try using single quotes:

'E:/program files/Fluent.Inc/ntbin/ntx86/fluent.exe 2ddp'
DoHander is offline   Reply With Quote

Old   January 4, 2013, 04:14
Default
  #6
Member
 
Join Date: Dec 2012
Posts: 92
Rep Power: 14
beer is on a distinguished road
I think the program can't read "program files", because there is a space character in it. I had the same problem with an UDF. Try a path without space characters.
beer is offline   Reply With Quote

Old   January 5, 2013, 04:18
Default
  #7
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 15
msaeedsadeghi is on a distinguished road
I think the problem is with the fortran command. try to correct it
msaeedsadeghi is offline   Reply With Quote

Reply

Tags
fluent, fortran


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
How to call FLUENT in my Fortran source? Sandia FLUENT 2 December 1, 2012 16:33
Fluent problem Z FLUENT 1 April 8, 2005 05:22
fluent and fortran yinyue FLUENT 1 October 25, 2004 23:27
How to free memory after running Fluent ? David FLUENT 1 February 27, 2004 04:59
Absoft Pro Fortran 7.5 in Fluent 4.5 Thitikorn FLUENT 0 July 5, 2002 07:41


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