|
[Sponsors] |
June 28, 2012, 20:42 |
DEFINE_INIT problem
|
#1 |
Member
Join Date: Feb 2011
Posts: 62
Rep Power: 15 |
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) } } } |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |