CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Need a help for velocity calculation (http://www.cfd-online.com/Forums/fluent/42238-need-help-velocity-calculation.html)

Le September 6, 2006 00:57

Need a help for velocity calculation
 
I would like to write a UDF function to calculate the average velocity in x direction like that: V = (v1+v2+v3...+vn)/n (for x direction) with each vi is the velocity of a each cell in x direction. Could anybody give me a clue to write this (you would be highly appriciated if write some statements by using C code for the calculation).

Thank you very much,



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