CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   HELP! how to use C_R_G(c,t,) correctly? (

wicwawa April 15, 2006 11:09

HELP! how to use C_R_G(c,t,) correctly?
Hi, here is my UDF codes for a source. I am using Fluent to simulate PEM fuel cell.

I use the density gradient(y direction) to calculate the Net water transfer coefficient. But when i initialize it, error occur: access violation.



real source7,nd;




return source7;


I also experiment simple source item using C_R_G(c,t)[1],but the same error appear.

When delete the C_R_G(c,t)[1], it will be ok.

Can everybody know what's wrong with my code. How to use C_R_G(c,t)?

THX in advance

All times are GMT -4. The time now is 03:59.