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

heat flux in a solid slab

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2009, 16: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 13:30.
achauha1 is offline   Reply With Quote

Old   June 22, 2009, 16: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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sign of Heat Flux at wall Kyung FLUENT 2 February 26, 2016 17:25
Heat Flux Wall Boundary Confusion. Joee FLUENT 1 August 21, 2010 13:20
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 09:22
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19


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