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/)
-   -   How to pull dynamic viscosity from a face? (https://www.cfd-online.com/Forums/fluent-udf/163904-how-pull-dynamic-viscosity-face.html)

RTN3000 December 7, 2015 16:17

How to pull dynamic viscosity from a face?
 
Writing a UDF in which I need to get viscosity values of the flow for use.

Similar to using F_R(f, t) for the density on that face, or F_T(f,t) for the temperature, is there a macro to pull viscosity?

RTN3000 December 8, 2015 15:02

Was able to figure this one out. There are many more property macros are based on cells than what's stored on the faces, so C_MU_L(c,t) worked for my case.

I just had to get the adjacent cell and thread using:
Code:

c = F_C0(f, t);
t = F_C0_THREAD(f, t);



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