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/)
-   -   "CX_Message" not found error (https://www.cfd-online.com/Forums/fluent-udf/175675-cx_message-not-found-error.html)

kasrakrd August 3, 2016 04:50

"CX_Message" not found error
 
hi guys , may i have your help on this code ?
i run my udf and i face these errors :

line 50: function "CX_Message" not found (pc=24).
line 50: function "CX_Message" not found (pc=124).
line 50: function "CX_Message" not found (pc=190).
line 50: function "CX_Message" not found (pc=335).
line 50: function "CX_Message" not found (pc=394).
line 50: function "CX_Message" not found (pc=451).
line 50: function "CX_Message" not found (pc=488).

there's no line 50 !
here is my code :

#include "udf.h"

DEFINE_PROPERTY(cell_viscositynano,c,t)
{
real mu;
double h = C_T(c,t);
Message ("1");

mu = (-0.155 -19.582/h +0.794*0.09 +2094.47/pow(h,2) -0.192*pow(0.09,2) -8.11*0.09/h -27463.863/pow(h,3) +0.0127*pow(0.09,3) +1.6044*pow(0.09,2)/h +2.1754*0.09/pow(h,2))/1000;
Message ("2");

return mu;
}

DEFINE_PROPERTY(thermal,c,t)
{
real k;
double mu_lam , Pr ,Re ;
double z = C_T(c,t)-273;
double a , b , c , d , f ,aa ,bb, cc, dd ,ee;
//double mu_lam;
double t = z + 273;
Message ("3");
// u water
a = 98.75*log(z);
b = (-45.23)*log(z)*log(z);
c = (9.71)*log(z)*log(z)*log(z);
d = (-0.946)*log(z)*log(z)*log(z)*log(z);
f = (0.03)*log(z)*log(z)*log(z)*log(z)*log(z);
mu_lam = (-81.1+a+b+c+d+f)/1000;
Message ("4");

Re = (997.1*1.3807*pow(10,-23)*t)/(3*3.14* mu_lam * mu_lam * 0.17 * pow(10,-9)) ;
Pr = mu_lam / (997.1 * 1.47*pow(10,-7));
Message ("5");

aa = pow(0.09,0.7640); // volume fraction
bb = pow((0.384/47),0.369);
cc = pow((0.613/25),0.7476) ;
dd = pow(Pr,0.9955);
ee = pow(Re,1.2321);
Message ("6");

k = ( 1 + 64.7*aa*bb*cc*dd*ee)*0.613;
Message ("k = %g\n",k);


return (float)k;
}
i'll waiting for your answers guys
thank you all


All times are GMT -4. The time now is 09:44.