CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

vulometric heat source fore tunnel fire

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

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

Reply

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 06:10.