CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   vulometric heat source fore tunnel fire (

behzadniknam September 20, 2010 12: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
#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;
if (fabs(x[0])<DX/2 && fabs(x[2])<DZ/2 && fabs(x[1]+DY)<H){
return Q/V;
else {
return 0.0;
************************************************** **
************************************************** *******
chip-exec: heat_source: wrong return type: void udf function expected
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 18:55.