|
[Sponsors] |
February 2, 2006, 12:20 |
Check this UDF,please.
|
#1 |
Guest
Posts: n/a
|
Can anyone check what's wrong with this UDF. When I interpreted it with FLUENT, a syntax error was reported in the third line.
#include "udf.h" #define QM 5e-6 DEFINE_SOURCE(charge_density,c,t,dS,eqn) { real charge_density; cell_t c; charge_density=C_R(c,t)*QM; return charge-density; } |
|
February 2, 2006, 14:42 |
Re: Check this UDF,please.
|
#2 |
Guest
Posts: n/a
|
Hi Josh
You don't have to declare cell_t c explicitly in your udf as it is already passed to DEFINE_SOURCE. Maybe this redefinition causes the problem. Max |
|
February 2, 2006, 15:02 |
Thank you. *NM*
|
#3 |
Guest
Posts: n/a
|
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
Cell check and Boundary check errors | AB | Siemens | 4 | October 28, 2004 14:04 |
3-D Mesh Check in Gambit..... | SHR | FLUENT | 4 | March 25, 2003 04:10 |