CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

heat flux in a solid slab

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 22, 2009, 15:23
Default heat flux in a solid slab
  #1
New Member
 
Anjali
Join Date: Jun 2009
Posts: 2
Rep Power: 0
achauha1 is on a distinguished road
I have solid square slab of 12mmX 12mmX 200um. i have to divide it into four sub-volumes of equal volumes and then assign a different heat flux value to each one of them.I made the udf to do this .I can interpret and initialize it but but when i iterate, I receive following error

chip-exec: heat_flux1: wrong return type: float udf function expectedchip-exec: heat_flux1: argument 1: incorrect type (36): int 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: ()


My udf is as follows:

#include "udf.h"

DEFINE_INIT(heat_flux1,d)
{
real x[ND_ND];
real a;
cell_t c;
Thread *t;

thread_loop_c(t,d)

begin_c_loop(c,t)
{
C_CENTROID(x,c,t);
if( x[0]<=0.006)
{
if (x[2]<=0.006)
a= 1e9;
else
a= 5e8;
}
else
{
if (x[2]<=0.006)
a = 3e8;
else
a = 9e8;
}
C_T(c,t)=a;
}
end_c_loop(c,t)

}


Please, someone help me out
Thanks in advance

Last edited by achauha1; June 23, 2009 at 12:30.
achauha1 is offline   Reply With Quote

Old   June 22, 2009, 15:34
Default
  #2
New Member
 
Anjali
Join Date: Jun 2009
Posts: 2
Rep Power: 0
achauha1 is on a distinguished road
i am working on this problem since 2 days and still couldn't figure out what is going wrong. Please , help me.

thanks
achauha1 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 Flux Wall Boundary Confusion. Joee FLUENT 1 August 21, 2010 12:20
Sign of Heat Flux at wall Kyung FLUENT 1 June 3, 2005 12:35
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55
Heat conduction through solid rib in periodic duct Dieter Fauconnier FLUENT 0 October 7, 2004 08:22
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


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