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

using UDF

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2007, 10:40
Default using UDF
  #1
lurk
Guest
 
Posts: n/a
I have not used Fluent a lot, so i am realy fresh in CFD. My problem is that want to use user defined functions to make a dynamic mesh to simulate a stirling engine. I tried to do the tutorial in Dynamic mesh but i could not get the UDF's compiled. can anybody help me?
  Reply With Quote

Old   December 7, 2007, 06:41
Default Re: using UDF
  #2
manjit m.khade
Guest
 
Posts: n/a
I have not used Fluent a lot, so i am realy fresh in CFD. My problem is that want to use user defined functions to make a dynamic mesh to simulate a hydarulic ram pump run on water hammer principle. I tried to do the tutorial in Dynamic mesh but i could not get the UDF's compiled. can anybody help me?

--------------------------------------------------------------------------------

  Reply With Quote

Old   December 10, 2007, 10:39
Default Re: using UDF
  #3
Leverkin
Guest
 
Posts: n/a
In order to compile your UDFs you must have Microsoft Visual Studio. You must run FLUENT throught Visual Studio's command prompt. Then do what user's quide say.

  Reply With Quote

Old   December 11, 2007, 09:34
Default Re: using UDF
  #4
lurk
Guest
 
Posts: n/a
Thank you very much! but how do i run fluent through visual studio? you se i'am like in the beginner phase of programing -lurk
  Reply With Quote

Old   December 11, 2007, 11:35
Default Re: using UDF
  #5
Leverkin
Guest
 
Posts: n/a
Hello there,

Just do:

Start -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt.

And in the command prompt window just write: fluent. In the end it will look like that:

c:\Program Files\Microsoft Visual Studio 8\VC > fluent

Don't worry it will run!

  Reply With Quote

Old   December 11, 2007, 16:08
Default Re: using UDF
  #6
lurk
Guest
 
Posts: n/a
thank you very much! this spring i'll gonna simulate a bubbeling fluidized bed reactor. It's gonna be cool! thanks again -lurk
  Reply With Quote

Old   December 12, 2007, 02:00
Default Re: using UDF
  #7
lurk
Guest
 
Posts: n/a
sorry to bother you again but it's not working properly. i use the VS 2008 cause i have a 64 bit OS. i also use the 6.3 verson of fluent. when i am compiling the dynamic mesh UDF i get some syntax errors regards -lurk
  Reply With Quote

Old   December 12, 2007, 05:10
Default Re: Using Visual Studio
  #8
szz
Guest
 
Posts: n/a
Dear Leverkin,

may I ask you to explain why you are insisting on using Visual Studio? Is there an advantage to it (which perhaps might help others as well)? As I have experienced so far, Fluent compiles on its own just about anything written in proper C. Looking forward to your response,

Regards

szz
  Reply With Quote

Old   December 12, 2007, 10:45
Default Re: Using Visual Studio
  #9
lurk
Guest
 
Posts: n/a
if you use the compiler in fluent you can not use dynamic mesh. and some other things. it's decribed in the UDF manual. if that is what you asked for -lurk
  Reply With Quote

Old   December 14, 2007, 06:23
Default Re: Using Visual Studio
  #10
Leverkin
Guest
 
Posts: n/a
As lurk said you cannot compile your codes if you dont' have VS or a compiler of C with a command prompt.(If you are working in Linux is different!)

Compiling is more usefull if you want to run your programms parallel and have many advantages because you create libraries which makes your codes ease to transfer.

You can find usefull informations in UDF Manual -> Chapter 5: Compiling UDFs about compiling.

I hope i have answered your question!
  Reply With Quote

Old   August 31, 2011, 02:01
Default 3d udf help
  #11
Member
 
Nirav
Join Date: Jul 2011
Posts: 43
Rep Power: 14
niravtm007 is on a distinguished road
Send a message via Skype™ to niravtm007
hii friends. i have worked out with 2d udf for parabolic velocity inlet.
please help me how this code will change with 3d. i wanna know how will be the equation considering 3rd dimmension.
as in 2d we have V(x)=Vmax- y^2/(disatnce from centre in y direction )^2 * Vmax.
please help me.
also give suggestion how to work out on sinusoidal inlet udf.
thanks in advance
niravtm007 is offline   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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 22:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


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