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

DEFINE_INIT in multiphase eulerian model

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2009, 14:13
Default DEFINE_INIT in multiphase eulerian model
  #1
isabel
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)

}

  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
the Eulerian multiphase model in CFX Hossam CFX 0 October 27, 2008 13:04
Eulerian Multiphase Model Mahesh FLUENT 1 May 10, 2003 18:24
enabling UDS in Eulerian-eulerian multiphase model shao1 FLUENT 0 July 14, 2002 22:23
Eulerian multiphase model with multicomponents? Shankar FLUENT 1 July 4, 2002 04:36
Problem of B.C. in Eulerian multiphase model Derek Jing FLUENT 0 May 12, 2002 11:52


All times are GMT -4. The time now is 11:35.