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

invalid argument--why?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2006, 01: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


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
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM install on Ubuntu Natty 11.04 bkubicek OpenFOAM 13 May 26, 2011 05:48
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 14:37
Error: GENERAL-CAR-CDR: invalid argument [1]: impr raffaele FLUENT 0 December 15, 2006 04:53
error: CDR: invalid argument [1]: wrong type Marc FLUENT 0 July 24, 2006 05:59


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