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/)
-   -   vulometric heat source fore tunnel fire (https://www.cfd-online.com/Forums/fluent-udf/80239-vulometric-heat-source-fore-tunnel-fire.html)

behzadniknam September 20, 2010 13:50

vulometric heat source fore tunnel fire
 
would like to modell fire in tunnel .i write this udf but fluet show this erorr how i can solve this erorr or how i can modell fire with 5*5*2.5 dimention and 20 mw size with .5m cells pls help me my yahoo id behzadniknam@yahoo.com
#include "udf.h"
#include "defines.h"
#define Q 20000000
#define H 5// flame hight above floor
#define D .5//cell size
#define DX D
#define DY D
#define DZ D
DEFINE_SOURCE(heat_source, c, t, dS, eqn)
{
real x[ND_ND];
real V=DX*DY*DZ;
C_CENTROID(x,c,t);
if (fabs(x[0])<DX/2 && fabs(x[2])<DZ/2 && fabs(x[1]+DY)<H){
return Q/V;
}
else {
return 0.0;
}
}
************************************************** **
*************************************************
error
************************************************** *******
chip-exec: heat_source: wrong return type: void udf function expected
Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: ()


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