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

HELP! how to use C_R_G(c,t,) correctly?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2006, 12:09
Default HELP! how to use C_R_G(c,t,) correctly?
  #1
wicwawa
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

  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 10:39.