CFD Online URL
[Sponsors]
Home > Forums > FLUENT

UDF Interpret - Syntax Error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 22, 2005, 06:23
Default UDF Interpret - Syntax Error
  #1
Leonard
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; }
  Reply With Quote

Old   October 22, 2005, 11:06
Default Re: UDF Interpret - Syntax Error
  #2
Alec Eiffel
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; }
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 08:24.