CFD Online Logo CFD Online URL
Home > Forums > FLUENT

parse error in DEFINE_DPM_BODY_FORCE

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

LinkBack Thread Tools Display Modes
Old   October 24, 2012, 02:38
Default parse error in DEFINE_DPM_BODY_FORCE
New Member
Join Date: Oct 2012
Posts: 14
Rep Power: 7
89566008 is on a distinguished road
Hey guys,
when I try to interprete the following udf, I always get 4 errors :
line 13: parse error.
line 14: parse error.
line 15: parse error.
line 16: subscripted expression is not an array or pointer: double.

here is my udf :

#include "udf.h"
#include "dpm.h"
#include "math.h"
#include "mem.h"
#define Pia 3.14
#define epsilon_0 8.85e-12
#define epsilon_r 1.000590
#define K_ion 0.00022
real bforce=0,Qd,Q,t, t_half;
real x;
cell_t c = RP_CELL(&(p->cCell));
Thread *t = RP_THREAD( &(p->cCell) );
return (bforce/P_MASS(p));

what is wrong ?
please help me
89566008 is offline   Reply With Quote


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
parse error , please help 89566008 Fluent UDF and Scheme Programming 2 October 22, 2012 11:59
parse error in transient udf spring FLUENT 1 July 6, 2010 06:26
Parse Error Message While interpreting UDF in FLUENT dhimans Fluent UDF and Scheme Programming 1 July 10, 2009 06:29
PARSE ERROR Message when interpreting UDF in FLUENT dhimans FLUENT 0 May 24, 2009 11:40
Parse Error Vamsee FLUENT 0 March 16, 2009 16:03

All times are GMT -4. The time now is 07:22.