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

help!!about udf,fortran and C!

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2002, 03:21
Default help!!about udf,fortran and C!
  #1
winall
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!!
  Reply With Quote

Old   November 23, 2002, 13:06
Default Re: help!!about udf,fortran and C!
  #2
ravi varma
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.
  Reply With Quote

Old   November 24, 2002, 09:26
Default Re: help!!about udf,fortran and C!
  #3
winall
Guest
 
Posts: n/a
but the help says that the udf can only be written in C !!help!!!
  Reply With Quote

Old   November 25, 2002, 01:03
Default Re: help!!about udf,fortran and C!
  #4
Greg Perkins
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
  Reply With Quote

Old   November 27, 2002, 11:17
Default Re: help!!about udf,fortran and C!
  #5
Joakim Majander
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
  Reply With Quote

Old   December 1, 2002, 04:42
Default Re: help!!about udf,fortran and C!
  #6
winall
Guest
 
Posts: n/a
can you give me some details about it??thanks!!
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 21:14.