|
[Sponsors] |
January 21, 2009, 15:13 |
DEFINE_INIT in multiphase eulerian model
|
#1 |
Guest
Posts: n/a
|
Hello everybody,
I am trying this code to define as initial temperature distribution in a sphere of radius 0.5. I compiled it well but when I iterate I have a violation error. The function is: DEFINE_INIT(my_init_function, domain) { Thread *t; Thread **pt; cell_t c; Domain *pDomain = DOMAIN_SUB_DOMAIN(domain,1); real xc[ND_ND], y, x; mp_thread_loop_c (t,domain,pt) begin_c_loop_all (c,t) { C_CENTROID(xc,c,t); x=xc[0]; y=xc[1]; if ( x*x+y*y < 0.5*0.5 ) C_T(c,t)=0.1; else C_T(c,t)=1; } end_c_loop_all (c,t) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
the Eulerian multiphase model in CFX | Hossam | CFX | 0 | October 27, 2008 14:04 |
Eulerian Multiphase Model | Mahesh | FLUENT | 1 | May 10, 2003 19:24 |
enabling UDS in Eulerian-eulerian multiphase model | shao1 | FLUENT | 0 | July 14, 2002 23:23 |
Eulerian multiphase model with multicomponents? | Shankar | FLUENT | 1 | July 4, 2002 05:36 |
Problem of B.C. in Eulerian multiphase model | Derek Jing | FLUENT | 0 | May 12, 2002 12:52 |