CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   user defined functions (

avion March 17, 2009 18:37

user defined functions
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



technocrat.prakash March 17, 2009 18:51

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 19:28.