CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   C_H_G problem! (https://www.cfd-online.com/Forums/fluent/69327-c_h_g-problem.html)

chuanyue October 19, 2009 23:11

C_H_G problem!
 
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!!!

t.krishnamohan October 26, 2009 07:13

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,


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