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

Reg. Parse error in line 3

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2008, 06:33
Default Reg. Parse error in line 3
  #1
Arun
Guest
 
Posts: n/a
this is the program

#include "udf.h" #include "random.h" DEFINE_DPM_INJECTION_UNIT(init_random_diameter,I) { particle *p; CX_Message("Initializing Injection: %s with random diameter\n", I->name; loop(p,I->p) { p->flow_rate = 1.e-4; P_DIAM(p) = 1.e-5+fabs(cheap_gauss_random())*1.e-3; P_RHO(p)=1.0; P_MASS(p)=P_RHO(p)*M_PI*pow(P_DIAM(p),3.0)/6.0; } }

when i try to interpret this udf in fluent, it is giving error as parse error in line 3... can anybody please clear the doubt thanks in advance
  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
UDF line 1 parse error Dimitrios Fluent UDF and Scheme Programming 24 March 18, 2015 22:53
UDF:line 6: parse error. Jiying Liu FLUENT 4 July 6, 2008 21:24
line 91 parse error brusly FLUENT 1 January 29, 2007 05:54
UDF Parse Error Line 1 Brian FLUENT 1 October 29, 2005 12:12
UDF: Parse error line 3 CJ FLUENT 2 March 1, 2005 10:12


All times are GMT -4. The time now is 06:03.