CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF value error when i calculate a log function (http://www.cfd-online.com/Forums/fluent-udf/117523-udf-value-error-when-i-calculate-log-function.html)

neangiee May 9, 2013 22:39

UDF value error when i calculate a log function
 
HI,

I want to calculate a log function.

Here is my UDF file.

(simply example.)

DEFINE_PROPERTY(cell_viscosity, cell, thread)
{
real mu_lam;
real AA;
real defRateMag = C_STRAIN_RATE_MAG(cell, thread);

AA = log(defRateMag);
mu_lam = AA;

return mu_lam;
}

In solution initialization step, i initialize standard and hybrid.

And then, i check the properties -> Molecular Viscosity

That value is 1.#Je+00

I think AA = log(defRateMag) is not calculate.

Someone help me!

Thanks a lot!


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