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

invalid argument--why?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 13, 2006, 02:19
Default invalid argument--why?
  #1
wanghong
Guest
 
Posts: n/a
my code of energy source is following:

#include "udf.h"

#define CON 1850.0

real m[ND_ND];

DEFINE_SOURCE(energy_source, c, t, dS, eqn)

{

real source,r,r0,CON1,volume;

C_VOLUME(c,t);

volume += C_V(c, t);

CON1=CON/volume;

r=sqrt(m[0]*m[0]+m[1]*m[1]);

begin_c_loop(c, t)

{

r0=5.0e-4+4.0e-2*m[2];

if (r0<=r&&-2.5e-3<=m[2]<=0.)

{source=CON1*exp(-(m[0]*m[0]+m[1]*m[1])/r0*r0);

dS[eqn]=0.;

}

else

source=0.;

}

end_c_loop(c, t)

return source;

}

After it is Interpreted and linked to energy source, FLUENT appears following information: Error: GENERAL-CAR-CDR: invalid argument [1]: improper list Error Object: #f. why ?
  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


Similar Threads
Thread Thread Starter Forum Replies Last Post
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 300 October 29, 2014 20:00
OpenFOAM install on Ubuntu Natty 11.04 bkubicek OpenFOAM 13 May 26, 2011 06:48
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37
Error: GENERAL-CAR-CDR: invalid argument [1]: impr raffaele FLUENT 0 December 15, 2006 05:53
error: CDR: invalid argument [1]: wrong type Marc FLUENT 0 July 24, 2006 06:59


All times are GMT -4. The time now is 17:07.