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

Why my UDF doesn't work when I activate the non-premixed combustion species model?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2013, 15:09
Question Why my UDF doesn't work when I activate the non-premixed combustion species model?
  #1
New Member
 
Tiago Morgado
Join Date: Dec 2012
Posts: 8
Rep Power: 14
TMorgado is on a distinguished road
I have a furnace with two slabs in it and I wrote an UDF with the purpose of changing the temperature of the slabs ( interior cells and walls).
If I setup my problem without activating any type of species model, my udf works fine, but when I activate the non-premixed combustion model, only the temperature of the walls change.
Can anyone provide an explanation for this strange event?

#include "udf.h"

DEFINE_ON_DEMAND(my_init)
{
Domain *d= Get_Domain(1);
int i,j, Temp=400;
cell_t c;
face_t f;
Thread *t;

int zone_ID[3][2]={{7,6},
{5,4},
{18,10}};
i=0;
j=0;

for (j=0; j<=2; j++)
{
for ( i=0; i<=1; i++ )
{
if(I_AM_NODE_ZERO_P)
{
if (j==0)
{

t = Lookup_Thread(d,zone_ID[j][i]);
begin_c_loop(c,t)
{
C_T(c,t)=Temp;
}
end_c_loop(c,t)
}
else
{
t = Lookup_Thread(d,zone_ID[j][i]);
begin_f_loop(f,t)
{
F_T(f,t)=Temp;
}
end_f_loop(f,t)
}
}
if(I_AM_NODE_ONE_P)
{
if (j==0)
{

t = Lookup_Thread(d,zone_ID[j][i]);
begin_c_loop(c,t)
{
C_T(c,t)=Temp;
}
end_c_loop(c,t)
}
else
{

t = Lookup_Thread(d,zone_ID[j][i]);
begin_f_loop(f,t)
{
F_T(f,t)=Temp;
}
end_f_loop(f,t)
}
}
}
}
}
TMorgado is offline   Reply With Quote

Reply

Tags
udf non-premixed


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
The problem of UDF in Non premixed combustion model zhangyuan Main CFD Forum 0 May 25, 2009 10:41
Help about premixed combustion with BVM model Nena CFX 1 September 8, 2007 11:15
How can I model H2-AIR combustion popi CFX 8 August 16, 2007 06:32
Does EDC Combustion Model Work? A. FLUENT 0 September 15, 2005 05:43
UDF of Zimont model in fluent Z Main CFD Forum 0 February 17, 2005 04:07


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