CFD Online Discussion Forums

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

avion March 17, 2009 17: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 17: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 18:13.