CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   How to write UDF for Dynamic Viscosity (https://www.cfd-online.com/Forums/main/205387-how-write-udf-dynamic-viscosity.html)

ramakant August 16, 2018 22:05

How to write UDF for Dynamic Viscosity
 
1 Attachment(s)
Dear All

I need your comments and suggestions for the given equation. Please find the attached file herewith.

Thank you

Ramakant

amod_kumar August 18, 2018 11:33

How to write UDF for Dynamic Viscosity
 
You can find an example in UDF manual, following should work.

DEFINE_PROPERTY(visc_T, c, Tp) {
real mu; real a = C_T(c,t);
mu = 2.414e-05 * pow(10, 247.8/(Tp - 140));
return mu;
}

The linkhttp://cfdyna.com/CFDHT/scriptsMacros.html#UDF might help you understand how UDFs are written.

ramakant August 19, 2018 00:04

Thank you very much...

dsub5 May 10, 2019 06:44

hello everyone. i have to create udf for dynamic viscosity and thermal conductivity coefficient. but have no idea about codes.

here is the formulas. if anyone can help me, i wii be glad.



mu=(3.4*10^-7*T^2)-(2.3*10^-4*T)+(3.9*10^-2)

k=0.004961*T-0.8078


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