|
[Sponsors] |
June 14, 2007, 04:44 |
New with writing UDF/Need help pls
|
#1 |
Guest
Posts: n/a
|
Hi to all I am new with UDF I need to know if I want to write a UDF should I write it in C++ editor or it is possible to write it in another editor else?
Thanks for your reply mac |
|
June 14, 2007, 04:52 |
Re: New with writing UDF/Need help pls
|
#2 |
Guest
Posts: n/a
|
Yes, you can write it in C++ editor
|
|
June 14, 2007, 05:30 |
Re: New with writing UDF/Need help pls
|
#3 |
Guest
Posts: n/a
|
C++ is not editor, C++ is a programing language, but you can use any editor to write your code - the essence is to have compiler binaries in paths so the Fluent could compile your source I'm using personally Editor in FAR MANAGER + COLORER plugin... kindest regards, Tomash
|
|
June 14, 2007, 05:46 |
Re: New with writing UDF/Need help pls
|
#4 |
Guest
Posts: n/a
|
Thanks to the reply I mean can I write it in fortran 90 (usually with using C++ terms not fortran 90 terms) and use it in fluent? And if that possible which extension should i use for the file to call it in fluent?
Thanks so much mac |
|
June 14, 2007, 06:19 |
Re: New with writing UDF/Need help pls
|
#5 |
Guest
Posts: n/a
|
mac, all Fluent source file are prepare to work with c, look at /Fluent.Inc/fluent6.3.26/src, where you have all standard header files... why should you use Fortran? There are no impossible things on this world - most probably you could try to link fortran libs with c++ libs, however try to use c, it's really not that difficult as you could feel at the begining... good luck, tomash
|
|
June 14, 2007, 07:02 |
Re: New with writing UDF/Need help pls
|
#6 |
Guest
Posts: n/a
|
ok tomasz thanks to the answer what did you think if i use C all what I need only to write the file (udf file) and save it hence it become ready to use in fluent? I am actually not use c plus before this time anymore.
mac |
|
June 14, 2007, 07:11 |
Re: New with writing UDF/Need help pls
|
#7 |
Guest
Posts: n/a
|
mac, just create your .c file in the folder where you store case file. then the only thing you need to do is to compile it using interpreted or defined-user function... (check Define->User Defined->Functions->...). also try to study UDF user manual where you have all necessary information about creating, compiling and handling your mac-defined-functions good luck
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
solid to fluid heattransfer with chtMultiRegionFoam | nakor | OpenFOAM | 11 | March 21, 2011 09:28 |
help me understand porous media in fluent~ pls pls.. :( | naftalena | FLUENT | 0 | February 28, 2010 13:20 |
i need help following problem pls pls help | gmani | CFX | 4 | March 31, 2009 10:39 |
Fatal error error writing to tmp No space left on device | maka | OpenFOAM Installation | 2 | April 3, 2006 09:48 |
multi phase flows....pls help... | karthik | FLUENT | 0 | November 16, 2005 10:15 |