|
[Sponsors] |
April 15, 2006, 12:09 |
HELP! how to use C_R_G(c,t,) correctly?
|
#1 |
Guest
Posts: n/a
|
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. DEFINE_SOURCE(H2O_A,c,t,dS,eqn { real source7,nd; nd=2.5*16.8/22; source7=nd*5.5E-11*(C_YI_G(c,t,2)[1]*C_R(c,t)/M_h2o+C_R_G(c,t)[1]*C_YI(c,t,2)/M_h2o); dS[eqn]=0; 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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use dynSmagorinsky model correctly ? | panda60 | OpenFOAM | 121 | July 14, 2016 14:09 |
[ICEM] Procedure : how to mesh correctly two semicircles in an air flow ? | eeesprit | ANSYS Meshing & Geometry | 2 | April 10, 2011 16:14 |
How to correctly set the mass flow rate of solid paricles ? | sankarv | OpenFOAM Running, Solving & CFD | 0 | April 18, 2010 19:04 |
Can C_VOLUME return value correctly? | blueberry | FLUENT | 6 | May 8, 2007 02:30 |
how correctly set up BC for compressible flows.... | yann | Phoenics | 5 | October 13, 2003 04:35 |