|
[Sponsors] |
March 13, 2006, 02:19 |
invalid argument--why?
|
#1 |
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 ? |
|
|
|
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 19: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 |