CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   user defined functions (http://www.cfd-online.com/Forums/fluent-udf/62715-user-defined-functions.html)

avion March 17, 2009 19:37

user defined functions
 
Hey
im trying to create a velocity function that is dependent on time and also the inlet diameter of a tube....creating in fluent

i have no clue how to implement the diameter as a function and also how to make velocity a function of two variables...

can some one please help me out

regards

Av

technocrat.prakash March 17, 2009 19:51

Udf
 
You can do it. Its 2D or 3D.

I have explained it for 2D.

First for time, you can get the value from *time definition.

Second for knowing the diameter, just loop over the inlet wall (the diameter) cells. For each cell try to find the length of the cell and sum it to find the dia.

All the best!


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