Parabolic Inlet velocity UDF parse error
I am trying to create a udf for an inlet parabolic velocity profile however I am receving a parse error message in line 3. However I cannot see my mistake. Kindly help me.Line 3 is the bold line.
# include “udf.h”
DEFINE_PROFILE( y_velocity, thread, nv)
float x; /* array for the coordinates */
face_t f; /* f is a thread face index */
F_CENTROID (x, f,thread);
x = y ;
F_PROFILE ( f,thread nv)
= .88*(1.-y*y/(.15*.15) );
It sometimes gives error in wrong line so I believe the problem is this line F_PROFILE ( f,thread nv) you should add a comma "," between thread and nv.
|All times are GMT -4. The time now is 05:27.|