|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
marie
Join Date: May 2010
Posts: 21
Rep Power: 16 ![]() |
Hi,
I'd like to know how to execute a Fortran program with Fluent Thank you! ![]() |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 19 ![]() |
Please give me more details if you want a more practical answer. Do you want to call a Fortran program from Fluent ? Or do you want to call Fluent from your Fortran program ?
What exactly are you trying to do ? If you want to execute a Fortran code from Fluent you will use a UDF function in which you can use the C "system" command, I've never tried but it is your best guess. You must use a compiled UDF for having access at the entire C syntax. Do |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
marie
Join Date: May 2010
Posts: 21
Rep Power: 16 ![]() |
Hi,
First thank you for your answer! Basically, I have an algorithm written in Fortran. This algorithm has already been used to work with Marc Mentat and now I have to use it with Fluent. But I don't know how to execute a Fortran program with Fluent and also I don't know how to call Fluent in my algorithm. is it clearier? |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 19 ![]() |
I see two solutions:
1. Send data back and forth using text files, for example Fluent writes the data your Fortran algorithm needs in a file and starts the Fortran code, which will save his results in a new file. When the Fortran code has finished, Fluent reads the data file written by Fortran and so on ... This is a simple hack and not an elegant solution but it will usually work. 2. Reimplement your Fortran code in C as a UDF function, this will be directly accessible in Fluent. Probably this is the recommended solution for your problem. (If your Fortran code is Fortran 77 you can automatically translate parts of it using f2c - a program for Fortran to C conversion). I would recommend however a manual translation from Fortran to C. In any case you will need a solid background of Fortran and C. Do |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
marie
Join Date: May 2010
Posts: 21
Rep Power: 16 ![]() |
ok, thanks, I will try...
|
|
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
maryam
Join Date: Dec 2012
Location: isfahan
Posts: 3
Rep Power: 13 ![]() |
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 ![]() |
|
![]() |
![]() |
![]() |
![]() |
#7 |
New Member
aounallah
Join Date: Jan 2012
Posts: 7
Rep Power: 14 ![]() |
Hi,
I hope that you have resolved your pb a long time ago, here I'm confronted to the same pb? Please if you could gives the key if you have it, thankful in advance |
|
![]() |
![]() |
![]() |
Tags |
fluent, fortran |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Comparison between C/C++ and Fortran? | rick | Main CFD Forum | 45 | September 6, 2011 00:52 |
fortran program code | jangolobow | Main CFD Forum | 0 | July 11, 2009 05:28 |
Fluent connection with simulink by TCP/IP | Tanktruck | Fluent UDF and Scheme Programming | 1 | June 28, 2009 12:56 |
Absoft Pro Fortran 7.5 in Fluent 4.5 | Thitikorn | FLUENT | 0 | July 5, 2002 06:41 |
Any numerical triple integration program is available in Fortran? | Radhakrishnan | Main CFD Forum | 3 | March 4, 1999 01:03 |