CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Fortran UDF (https://www.cfd-online.com/Forums/fluent/42270-fortran-udf.html)

fullmonty September 9, 2006 02:16

Fortran UDF
 
I have a fortran program to put into fluent, the best way I see thus far is as a udf.

My reading of the manual has only given me instruction for a udf programmed in C... further reading however tells me its possible to be done with a fortran code, but no "how to".

Can anyone enlighten me or point to some useful info?

jasond September 10, 2006 18:38

Re: Fortran UDF
 
There is documentation - it just it a little hard to find. You'll need to use the TUI-based compilation/loading procedure documented in Sections 8.3 and 8.4 of the UDF manual. There's a fortran example in Section 8.4. Doing this is does require some multi-language programming (which can be a real pain the neck when things don't work - name mangling is loads of fun, as is the whole array thing), but as long as you have the right compilers it shouldn't be too bad.

Good luck.

Jason

jasond September 10, 2006 18:43

Re: Fortran UDF
 
I forgot to add in my post that if you get it to work, it would be great if you added to the Fluent FAQ section on this - it is a common misconception that UDF's are C only (that is what I was originally told).

Jason


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