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

fluent and fortran

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 7, 2010, 08:53
Default fluent and fortran
  #1
New Member
 
marie
Join Date: May 2010
Posts: 21
Rep Power: 6
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, 10:30
Default
  #2
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 9
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, 04:44
Default
  #3
New Member
 
marie
Join Date: May 2010
Posts: 21
Rep Power: 6
marye is on a distinguished road
thank you! I will try!
marye is offline   Reply With Quote

Old   December 1, 2012, 15:29
Default how execute fluent with fortran?
  #4
New Member
 
maryam
Join Date: Dec 2012
Location: isfahan
Posts: 3
Rep Power: 3
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, 12:42
Default
  #5
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 9
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, 03:14
Default
  #6
Member
 
Marcus
Join Date: Dec 2012
Posts: 61
Rep Power: 3
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, 03:18
Default
  #7
Senior Member
 
Saeed Sadeghi
Join Date: Oct 2012
Location: Denmark
Posts: 227
Rep Power: 4
msaeedsadeghi is on a distinguished road
I think the problem is with the fortran command. try to correct it
__________________
Regards,
Saeed Sadeghi
Ansys Fluent CFD Consultant
msaeedsadeghi is offline   Reply With Quote

Reply

Tags
fluent, fortran

Thread Tools
Display Modes

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 On
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 15:33
Fluent problem Z FLUENT 1 April 8, 2005 04:22
fluent and fortran yinyue FLUENT 1 October 25, 2004 22:27
How to free memory after running Fluent ? David FLUENT 1 February 27, 2004 03:59
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 17:44.