Properties UDF error
Below is my code
"#include "udf.h" DEFINE_PROPERTY(water_density,cell,thread) { double rho,temp1; temp1 = C_T(cell, thread); rho = 1000*0.3471*pow(0.2741,(-1+(temp1/647.13)*0.28571)); return rho; } DEFINE_PROPERTY(water_thermalconductivity,cell,thr ead) { double k,temp1; temp1 = C_T(cell, thread); k = (-0.2758)+(0.004612*temp1)-(0.000005539*pow(temp1,2)); return k; } DEFINE_PROPERTY(water_viscosity,cell,thread) { double mu,temp1; temp1 = C_T(cell, thread); mu=(1+(-0.02550*(temp1))+(0.0006*pow(temp1,2))+(-0.000009*pow(temp1,3)))*0.0009; return mu; } DEFINE_PROPERTY(oil_density,cell,thread) { double rho,temp1; temp1 = C_T(cell, thread); rho = (-0.4307*temp1) + 880.79 ; return rho; } DEFINE_PROPERTY(oil_thermalconductivity,cell,threa d) { double k,temp1; temp1 = C_T(cell, thread); k = (7E-05*temp1) + 0.1344; return k; } DEFINE_PROPERTY(oil_viscosity,cell,thread) { double mu,temp1; temp1 = C_T(cell, thread); mu = 0.0238*exp(-0.0344*(temp1-298)); return mu; } DEFINE_PROPERTY(surface_tension,cell,thread) { double sigma,temp1; temp1 = C_T(cell, thread); sigma=0.00365*exp(-0.0144(temp1-298)); return sigma; } " but when i interpret my code i received error "received a fatal signal (segmentation fault)" Thanks in advance |
All times are GMT -4. The time now is 11:19. |