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

C_H_G problem!

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 19, 2009, 23:11
Default C_H_G problem!
  #1
New Member
 
Join Date: Oct 2009
Posts: 6
Rep Power: 7
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

Old   October 26, 2009, 08:13
Default
  #2
Member
 
Krishna
Join Date: Oct 2009
Posts: 34
Rep Power: 7
t.krishnamohan is on a distinguished road
Hi,
As a thumb rule you can assume that if combustion is occuring, energy equation in the form of enthalpy is solved else energy equation in form of temperature is used.
Can you please describe your problem?
Rgds,
t.krishnamohan is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 04:19.