CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   fluent udf, getting fluid density (

mohsen zendehbad January 24, 2010 03:36

fluent udf, getting fluid density
how can we get fluid properties, density and viscocity of the fluid in a udf file?

vandadt January 26, 2010 22:17

Hi Mohsen
Are you doing time-dependent simulation? I think I can help you by sending you the C++ udf that I have written for my simulation and explain you how to change it regarding your targets. That will be easy. If you are interested just let me know.

mohsen zendehbad January 27, 2010 00:47

Dear Vandad:
it will be kind of you if you do that. my simulation is both steady and unsteady. I need some short words like C_U or C_V which will return the density or viscosity of fluid in that cell.


vandadt January 27, 2010 13:13

pass me your email.

DoHander January 27, 2010 16:56

C_R(c,t) - access cell density
C_MU_L(c,t) - laminar viscosity
C_MU_T(c,t) - turbulent viscosity

For more macros read the Fluent UDF manual.


mariachi January 29, 2010 13:26

Hey mohsen, can i have ur email???

i am also facing similar problem and would really appreciate ur help if ur problem is solved...


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