user defined function
hi guys,
I am facing an error called no function prototype. can you guys please help me with that. my code is #include "udf.h" DEFINE_PROFILE(heatflux,thread,nv) { int p=110.111; int i; int h[6]={123800,3033966,6067932,788100,62205,45600}; float n[0]; int num=6; face_t f; begin_f_loop(f,thread); { F_CENTROID(n,f,thread); for(i=1;i<num;i++); { F_PROFILE(f, thread, nv) = h(i) + ((h(i+1)-h(i))*(p-n(i)))/(n(i+1)-n(i)); } /*return 1;*/ } end_f_loop(f,thread); } I am trying to do piecewise linear approximation for heat flux variation along the length of the rocket nozzle. |
Code:
DEFINE_PROFILE(heatflux,thread,nv) |
Thank you @Alexanderz
|
All times are GMT -4. The time now is 06:20. |