CFD Online Discussion Forums

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

lurk December 6, 2007 09:40

using UDF
 
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?

manjit m.khade December 7, 2007 05:41

Re: using UDF
 
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?

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


Leverkin December 10, 2007 09:39

Re: using UDF
 
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.


lurk December 11, 2007 08:34

Re: using UDF
 
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

Leverkin December 11, 2007 10:35

Re: using UDF
 
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!


lurk December 11, 2007 15:08

Re: using UDF
 
thank you very much! this spring i'll gonna simulate a bubbeling fluidized bed reactor. It's gonna be cool! thanks again -lurk

lurk December 12, 2007 01:00

Re: using UDF
 
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

szz December 12, 2007 04:10

Re: Using Visual Studio
 
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

lurk December 12, 2007 09:45

Re: Using Visual Studio
 
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

Leverkin December 14, 2007 05:23

Re: Using Visual Studio
 
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! :)

niravtm007 August 31, 2011 01:01

3d udf help
 
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


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