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

New with writing UDF/Need help pls

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2007, 04:44
Default New with writing UDF/Need help pls
  #1
mac
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

  Reply With Quote

Old   June 14, 2007, 04:52
Default Re: New with writing UDF/Need help pls
  #2
Susan
Guest
 
Posts: n/a
Yes, you can write it in C++ editor
  Reply With Quote

Old   June 14, 2007, 05:30
Default Re: New with writing UDF/Need help pls
  #3
Tomasz Bednarz
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
  Reply With Quote

Old   June 14, 2007, 05:46
Default Re: New with writing UDF/Need help pls
  #4
mac
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

  Reply With Quote

Old   June 14, 2007, 06:19
Default Re: New with writing UDF/Need help pls
  #5
Tomasz Bednarz
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

  Reply With Quote

Old   June 14, 2007, 07:02
Default Re: New with writing UDF/Need help pls
  #6
mac
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

  Reply With Quote

Old   June 14, 2007, 07:11
Default Re: New with writing UDF/Need help pls
  #7
Tomasz Bednarz
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

  Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 08:00.