|
[Sponsors] |
November 23, 2002, 03:21 |
help!!about udf,fortran and C!
|
#1 |
Guest
Posts: n/a
|
cause i have to use UDF and i have only the Fortran editon code, i wonder whether in fluent the udf can be in fortran? if not, can i using a simple c code inside which the fortran code is used?? please give me some advice!!! i am a newer here!!
|
|
November 23, 2002, 13:06 |
Re: help!!about udf,fortran and C!
|
#2 |
Guest
Posts: n/a
|
the code can be written in Fortran as well according to UDF user guide. try a simple code in Fortran to see if it works. and then paste your entire code.
|
|
November 24, 2002, 09:26 |
Re: help!!about udf,fortran and C!
|
#3 |
Guest
Posts: n/a
|
but the help says that the udf can only be written in C !!help!!!
|
|
November 25, 2002, 01:03 |
Re: help!!about udf,fortran and C!
|
#4 |
Guest
Posts: n/a
|
For version 5 and above you'll need to use C, as per the manual. You may still be able to link some Fortran code if you want, but at least the code that interfaces with Fluent will need to be in C.
For versions 4 you need to use Fortran, but can link some C code into the executable. Greg |
|
November 27, 2002, 11:17 |
Re: help!!about udf,fortran and C!
|
#5 |
Guest
Posts: n/a
|
You can link Fortran into Fluent 5 and 6 UDF. I have done that several times. The current appliation has ~10 000 lines of Fortran. You have to do some machine dependent modifications to makefile and write the interface in C, since you can not use the UDF macros in Fortran. There are a few things to note when linking C and fortran. E.g. array indices and parameter types.
Joakim |
|
December 1, 2002, 04:42 |
Re: help!!about udf,fortran and C!
|
#6 |
Guest
Posts: n/a
|
can you give me some details about it??thanks!!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HELP!about XY plot curve length | leungzhang | FLUENT | 2 | July 11, 2012 00:36 |
Help:about the use of NOx model | bright181 | FLUENT | 2 | July 6, 2011 03:45 |
Help:about the EDC model | bright181 | FLUENT | 0 | April 24, 2011 03:51 |
Need help:about energy equation in CFX | Stein | CFX | 4 | July 2, 2009 22:31 |
HELP!!!about species transfer | Bo | FLUENT | 0 | January 15, 2009 06:54 |