CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF Interpret - Syntax Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2005, 05: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, 10: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


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 Off
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 06:25
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 12:34
error while running paraFoam! padmanathan OpenFOAM 9 October 13, 2009 05:17
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38


All times are GMT -4. The time now is 14:47.