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

C_H_G problem!

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 19, 2009, 23:11
Default C_H_G problem!
  #1
New Member
 
Join Date: Oct 2009
Posts: 6
Rep Power: 16
chuanyue is on a distinguished road
Hi there,

I include the macro C_H_G in my energy source term,then fluent show me the error:
Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: ()

my source term:
DEFINE_SOURCE(energy_source,c,t,dS,eqn)
{
real x[ND_ND];
real source;
real jr,jx;
C_CENTROID(x,c,t);
jr=-b*C_UDSI_G(c,t,0)[1];
jx=-b*C_UDSI_G(c,t,0)[0];
source=(pow(jx,2)+pow(jr,2))/b
+(2.5*kB/e)*((jx*C_H_G(c,t)[0]+jr*C_H_G(c,t)[1])/C_CP(c,t))
-sr;
dS[eqn]=0;
return source;
}

I have displaced variables in my source term by constants one by one, and fluent can run except MACRO C_H_G, how can I use the macro?

Please help me!!!
chuanyue is offline   Reply With Quote

 


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



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