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

DEFINE_INIT problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2012, 20:42
Default DEFINE_INIT problem
  #1
Member
 
Join Date: Feb 2011
Posts: 62
Rep Power: 15
highhopes is on a distinguished road
Dear Fluent users,

I have a very frustrating problem. Basically, I cannot apply DEFINE_INIT function on only one of the interior zones. The last method I have used is as you can see below. See I have been trying to assign 0.9 to the mass fraction of species 1 in one region, again 0.9 to the mass fraction of species 2 in the other region. I have prepared the grid in icem cfd. The geometry is divided into 2 volumes.

Thank you in advance

DEFINE_INIT(get_initialized,d)
{
Thread *t, *t_1, *t_2;
cell_t c;
t_1=Lookup_Thread(d, 14);
t_2=Lookup_Thread(d, 15);

thread_loop_c(t,d)
{
if(THREAD_ID(t)==THREAD_ID(t_1))
{
begin_c_loop(c,t)
{
C_YI(c,t,0)=0.9;
}
end_c_loop(c,t)
}
if(THREAD_ID(t)==THREAD_ID(t_2))
{
begin_c_loop(c,t)
{
C_YI(c,t,1)=0.9;
}
end_c_loop(c,t)
}
}


}
highhopes is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


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