|
[Sponsors] | |||||
|
|
|
#1 |
|
Guest
Posts: n/a
|
Hello,
I've tried to interpret a simple "DEFINE_SOURCE" udf in Fluent, but I always get the message "line 2: syntax error". I've checked my source code (below) and found no problem with it. Can anyone advice me on this? Thank you. #include "udf.h" DEFINE_SOURCE(mass_sink,c,t,dS,1) { real sink; sink=-0.4; dS[1]=0; return sink; } |
|
|
||
|
|
|
#2 |
|
Guest
Posts: n/a
|
try this:
#include "udf.h" DEFINE_SOURCE(mass_sink,c,t,dS,eqn) { real sink; sink=-0.4; dS[eqn]=0; return sink; } |
|
|
||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
| checking the system setup and Qt version | vivek070176 | OpenFOAM Installation | 22 | June 1, 2010 13:34 |
| error while running paraFoam! | padmanathan | OpenFOAM | 9 | October 13, 2009 06:17 |
| Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |
| Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 18:38 |