CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

vulometric heat source fore tunnel fire

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   September 20, 2010, 12:50
Unhappy vulometric heat source fore tunnel fire
New Member
Join Date: Sep 2010
Posts: 3
Rep Power: 9
behzadniknam is on a distinguished road
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: ()
behzadniknam is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Heat source in a particular region inside the fluid domain robingilbert OpenFOAM 7 September 2, 2010 14:39
how to load the heat source to wall david yang Main CFD Forum 1 October 12, 2009 13:34
how to add heat source with constant temp and heat generation rate leila FLUENT 1 August 19, 2009 00:55
Compiling gmshFoam with OpenFOAM-1.5 BlGene Open Source Meshers: Gmsh, Netgen, CGNS, ... 10 August 6, 2009 04:26
oscillatory heat source Mehdi FLUENT 2 April 7, 2008 17:12

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