|
[Sponsors] |
May 10, 2010, 05:46 |
Execute a Fortran program with Fluent
|
#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! |
|
May 10, 2010, 09:16 |
|
#2 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
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 |
|
May 10, 2010, 09:47 |
|
#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? |
|
May 10, 2010, 11:30 |
|
#4 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
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 |
|
May 11, 2010, 04:32 |
|
#5 |
New Member
marie
Join Date: May 2010
Posts: 21
Rep Power: 16 |
ok, thanks, I will try...
|
|
December 1, 2012, 16:25 |
how execute fluent with fortran?
|
#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 |
|
December 9, 2019, 19:53 |
Hi maryam
|
#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 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Comparison between C/C++ and Fortran? | rick | Main CFD Forum | 45 | September 6, 2011 01:52 |
fortran program code | jangolobow | Main CFD Forum | 0 | July 11, 2009 06:28 |
Fluent connection with simulink by TCP/IP | Tanktruck | Fluent UDF and Scheme Programming | 1 | June 28, 2009 13:56 |
Absoft Pro Fortran 7.5 in Fluent 4.5 | Thitikorn | FLUENT | 0 | July 5, 2002 07:41 |
Any numerical triple integration program is available in Fortran? | Radhakrishnan | Main CFD Forum | 3 | March 4, 1999 02:03 |