|
[Sponsors] | |||||
|
|
|
#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; } |
|
|
||
|
|
|
#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 |
|
|
||
|
|
|
#3 |
|
Guest
Posts: n/a
|
|
|
|
||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |