CFD Online Discussion Forums

CFD Online Discussion Forums (
-   ANSYS (
-   -   UDF for calculating mean temperature (

avanti December 21, 2011 13:00

UDF for calculating mean temperature
I am learning ANSYS/ Fluent. I need some help with writing and running UDF to calculate mean temperature. I am analyzing turbulent and laminar flows in a pipe. I know these are very simple problem, but I am still having difficulties creating macros and running UDF.

Any help is appreciated.

Sixkillers December 21, 2011 16:57

I think that all you need to do is loop over all cells in domain by using begin_c_loop_all and obtain temperature of each cell by function C_T. You might want to look at ANSYS FLUENT UDF Manual (release 13) page 47 for a very simple problem similar to yours.

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