|
[Sponsors] |
August 3, 2016, 05:50 |
"CX_Message" not found error
|
#1 |
New Member
KasrA
Join Date: Jun 2016
Posts: 5
Rep Power: 10 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile calcMassFlowC | aurore | OpenFOAM Programming & Development | 13 | March 23, 2018 08:43 |
Undeclared Identifier Errof UDF | SteveGoat | Fluent UDF and Scheme Programming | 7 | October 15, 2014 08:11 |
Errors in UDF | shashank312 | Fluent UDF and Scheme Programming | 6 | May 30, 2013 21:30 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |