CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   fluent and fortran (https://www.cfd-online.com/Forums/fluent/75871-fluent-fortran.html)

marye May 7, 2010 09:53

fluent and fortran
 
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!

DoHander May 7, 2010 11:30

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

marye May 10, 2010 05:44

thank you! I will try!

maryam.s December 1, 2012 16:29

how execute fluent with fortran?
 
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:(

DoHander January 3, 2013 13:42

Quote:

Originally Posted by maryam.s (Post 395202)
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'

beer January 4, 2013 04:14

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.

msaeedsadeghi January 5, 2013 04:18

I think the problem is with the fortran command. try to correct it


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