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

need some basic help with fluent udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2008, 13:08
Default need some basic help with fluent udf
  #1
aarti sekaran
Guest
 
Posts: n/a
hi everyone..well i'm just starting off with fluent and seem to be getting stuck at this point over and over again. i have a udf(a .c file) and a .msh file and i am having trouble getting fluent to run from the visual studio prompt.i realise that i need 2 have fluent running from the visual studio prompt to complie my function and use it. each time i type "fluent 2d" i get an error saying fluent is not a recognised command ,no matter what directory i'm working from. would be of gr8 help if someone could guide me on how 2 proceed. thanks!!
  Reply With Quote

Old   January 20, 2008, 14:01
Default Re: need some basic help with fluent udf
  #2
Krishna C Ravi
Guest
 
Posts: n/a
Hi,

You can not run programs ,etc at the visual studio propmt like you are using the command prompt.

To use a UDf open the fluent load the mesh first and add udf in the interpreted or compiled udf and then compile the udf.

To know more about u can look into the udf help in fluent which gives all the steps in proper steps

happy programming in udf
  Reply With Quote

Old   January 20, 2008, 17:25
Default Re: need some basic help with fluent udf
  #3
aarti sekaran
Guest
 
Posts: n/a
hi! thanks for the help! i do however still have a question... can i still compile the udf if i dont run it from the visual studio prompt? the reason i'm asking is cause i read somewhere that i would have 2 start fluent from the prompt to do anything..thanks again!!
  Reply With Quote

Old   January 20, 2008, 23:29
Default Re: need some basic help with fluent udf
  #4
Krishna C Ravi
Guest
 
Posts: n/a
Hi,

I didnt get your question completely.But what i use to do was write the udf in visual studio and import the same in fluent.Then during importing i use to compile the udf in fluent not in visual studio.

If u need anything please provide some more clarity.....

Bye
  Reply With Quote

Old   January 21, 2008, 13:28
Default Re: need some basic help with fluent udf
  #5
aarti sekaran
Guest
 
Posts: n/a
hi! well, the thing is i already have the udf as a .c file. i just wanted to know if i could just run it from fluent (directly compiling it in fluent itself) or is there something else i have to do;because when i try compiling it in fluent, i keep getting an error saying nmake is not a recognised command.. thanks again for your time...
  Reply With Quote

Old   January 22, 2008, 23:44
Default Re: need some basic help with fluent udf
  #6
shehab abdelrahman
Guest
 
Posts: n/a
there are two ways to compile UDF. one of them is interpreted, is used for the simple UDFs and only need to compile it inside the fluent using the following:

define --> user-defined --> functions --> interpreted.

but if the UDF needs extra memory to use during the calculation then you must used visual studio to compile it first outside Fluent and then be sure to open the fluent through the visual studio command prompt then use:

define --> user-defined --> functions --> compiled and follow instructions in the UDF manual. the question is HOW to get the fluent opened from the visual studio prompt command ? thats I don't know and need to know too cause i'm in the same problem too....hope that help, and need another one to help us both...
  Reply With Quote

Old   January 24, 2008, 19:23
Default Re: need some basic help with fluent udf
  #7
aarti
Guest
 
Posts: n/a
hey! well i was able to get some help on opening fluent from the vs prompt. the main thing that needs to be done is that the path for fluent needs to be set. this is bascially how you do it - if u are using xp, go to control panel -> system->advanced->environment variables->system varibles->path. here click on edit path and then add a semicolon at the end and then the location for ur fluent exe. what this does is basically sets fluent as a command so that u can run it from the VS prompt. now if u rerun the vs prompt and say 'fluent' from any dir, it shud work.. hope this helps! thanks everyone!!
  Reply With Quote

Old   January 25, 2008, 06:50
Default Re: need some basic help with fluent udf
  #8
Ramesh. K
Guest
 
Posts: n/a
Hi For adding path in fluent u have followed a path which is long enough else in windows u can just go to the folder where fluent is placed using ur start menu and just click the set environment variable icon it does of its own

bye
  Reply With Quote

Old   February 12, 2008, 01:57
Default Re: need some basic help with fluent udf
  #9
Debamoy
Guest
 
Posts: n/a
your Environment is not set. Keep .msh file and .c file in working folder. From start prompt go to \programs\fluent inc and set environment. then go to Microsoft visual studio .net command prompt.. cd to the working directory...type fluent

and bingo!!!!!!!!!!!!! ur done

  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
fluent udf, saving data in udf mohsen zendehbad Fluent UDF and Scheme Programming 15 June 14, 2017 00:23
solving a conduction problem in FLUENT using UDF Avin2407 Fluent UDF and Scheme Programming 1 March 13, 2015 03:02
UDF for Viscoelastic Fow in Fluent skris2009 FLUENT 2 September 20, 2011 00:59
fluent UDF external library lapack problem Rick FLUENT 0 May 7, 2008 11:16
Can somebody send me a Fluent 6 UDF manual?? KKLAU FLUENT 4 April 14, 2004 17:37


All times are GMT -4. The time now is 06:37.